G9, unit 2

G9, unit 2

10th Grade

13 Qs

quiz-placeholder

Similar activities

Python Conditionals

Python Conditionals

9th - 11th Grade

17 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

S1 Start if

S1 Start if

10th Grade

12 Qs

3.2 Struktur kawalan

3.2 Struktur kawalan

6th - 12th Grade

10 Qs

CMU Unit 2 Practice Test

CMU Unit 2 Practice Test

10th - 12th Grade

17 Qs

Python Programming

Python Programming

5th Grade - University

15 Qs

Управление циклом: else . 8 класс

Управление циклом: else . 8 класс

8th Grade - University

10 Qs

Python Test

Python Test

9th - 12th Grade

13 Qs

G9, unit 2

G9, unit 2

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Ahmad Abdallah

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'elif' statement stand for in Python?

Else if true

Else if false

Else if not

Else if

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which logical operator is used to connect two or more conditional statements?

NOT

AND

OR

XOR

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the program to find the largest among three numbers, which condition checks if num1 is the largest?

if (num1 == num2) and (num1 == num3)

if (num1 >= num2) and (num1 >= num3)

if (num1 > num2) and (num1 > num3)

if (num1 <= num2) and (num1 <= num3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the else statement in an if-elif-else structure?

To execute code if all previous conditions are false

To execute code if the first condition is true

To execute code if the last condition is true

To execute code if the second condition is true

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a calculator program, what will happen if the user inserts an invalid input?

The program will ask for input again

The program will crash

The program will display 'Invalid Input'

The program will return 0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the program if the user inputs 30 and 5 with the operator '/'?

6

5.0

5

6.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many conditions can be checked using if-elif-else statements?

Multiple

Two

Only one

None

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?