Search Header Logo

Discovery-Piscine Day 3

Authored by Quiz Master

Computers

9th - 12th Grade

Used 4+ times

Discovery-Piscine Day 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if a number entered by a user is exactly zero?

if num == 0:

if num == 0

check num = 0

if num = 0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following conditions would return True only if a number is negative?

number > 0

num = negative

number < 0

num == negative

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the break keyword in a loop?

Ends the program

Restarts the loop

Stops the loop early

Skips an iteration

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the final value of count after this loop runs?

5

6

4

Infinite

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code print?

Access Granted

Access Denied

Error

Welcome

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed by the following code?

0

a*b

4

40

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If input is 3, what will this piece of code do?

Prints 3 only

Prints numbers 3 to 5

Infinite loop

Syntax error

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?