PYTHON CONDITIONALS Q3

PYTHON CONDITIONALS Q3

University

18 Qs

quiz-placeholder

Similar activities

Common errors in C programming

Common errors in C programming

University

15 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

SS JainCollege

SS JainCollege

University

20 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

CO - 2_ Quiz 1_Python Conditionals

CO - 2_ Quiz 1_Python Conditionals

10th Grade - University

15 Qs

1st Year quiz

1st Year quiz

University

20 Qs

ITIPT01 Quiz No 1

ITIPT01 Quiz No 1

University

20 Qs

Output Quiz-9

Output Quiz-9

University

20 Qs

PYTHON CONDITIONALS Q3

PYTHON CONDITIONALS Q3

Assessment

Quiz

Computers

University

Medium

Created by

Darwin Vargas

Used 11+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to write a nested if statement?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

True

False

Error

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code output if a = 3 and b = 5?

a is greater

a is equal to b

a is smaller

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

True

False

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code output if 'y = 0'?

True

False

Error

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output if value = 100?

Non-zero value

Zero value

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output if num = 5?

Less than 10

Greater than 0

Less than 10 and Greater than 0

10 or more

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?