Discovery-Piscine Day 3

Discovery-Piscine Day 3

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

cp1Gr9Adv

cp1Gr9Adv

9th Grade

10 Qs

python modules

python modules

11th Grade

20 Qs

JavaScript Control Structures

JavaScript Control Structures

9th - 12th Grade

20 Qs

Chapter 5 loops structure

Chapter 5 loops structure

10th Grade

20 Qs

Python For And While Loop

Python For And While Loop

9th Grade - University

20 Qs

For and While Loops in Python

For and While Loops in Python

9th - 12th Grade

16 Qs

Objects

Objects

8th - 12th Grade

16 Qs

Loops

Loops

10th Grade

10 Qs

Discovery-Piscine Day 3

Discovery-Piscine Day 3

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Quiz Master

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?