Search Header Logo

Programming Quiz

Authored by Jeremy Beck

Computers

7th Grade

Used 6+ times

Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if score > 75??? print("Good job!")

=

:

>

variable_name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

username ??? "Alex"

==

:

=

+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in ???(5): print(i)

range

loop

if

int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, what symbol should replace the question marks to complete the while loop condition? while count ??? 10: print(count) count = count + 1

=

:

<

if

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator should replace the question marks to correctly calculate the average of two scores? average = (score1 + score2) ??? 2

%

/

=

:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator should replace the question marks to correctly compare if is_active is True? is_active ??? True

==

:

=

+

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, what operator should replace the question marks to check if user_name is "Sam"? if user_name ??? "Sam": print("Hello, Sam!")

=

==

:

+

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?