034. Extra Help

034. Extra Help

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Control Structures

Control Structures

12th Grade

10 Qs

SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

10th Grade

10 Qs

Unit 4 Code.org

Unit 4 Code.org

9th - 12th Grade

6 Qs

AP CSP Mixed Review

AP CSP Mixed Review

9th - 12th Grade

6 Qs

python String

python String

8th - 11th Grade

5 Qs

CSC70 Term 1 SBQ 2 AVI

CSC70 Term 1 SBQ 2 AVI

10th - 12th Grade

10 Qs

Programming Day 1

Programming Day 1

10th - 12th Grade

5 Qs

Python 3

Python 3

9th Grade

10 Qs

034. Extra Help

034. Extra Help

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Robert Giordano

FREE Resource

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Set up a while loop to continue while num is equal to 10

while _____________:

2.

DRAG AND DROP QUESTION

1 min • 1 pt

set up a while loop to continue while num1 is equal to num2

while ​ (a)   ​ (b)   ​ (c)   :

num1
==
num2
=
!-
!+
!=
<=
>=
<

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to generate a random number between 5 and 10 inclusive

import random

num = random.randint(______)

4.

DRAG AND DROP QUESTION

1 min • 1 pt

Media Image

Complete the if/elif/else statement to translate the numbers 1 - 3 to A - C​

conditionA: ​ (a)  

conditionB: ​ (b)  

conditionC: ​ (c)  

num == 1
num == 2
num == 3
num == 0
num == 4
num = 0
num = 1
num = 2
num = 3
num = 4

5.

DRAG AND DROP QUESTION

1 min • 1 pt

Set up a while loop that will continue while both num1 and num2 are less than 5

while ​ ​ (a)   ​ (b)   ​ ​ (c)   :

num1 < 5
and
num2 < 5
num1 <= 5
num2 <= 5
or
num1 > 5
num2 > 5
num1 >= 5
num2 >= 5