CW-GR12-if conditions

CW-GR12-if conditions

8th Grade

10 Qs

quiz-placeholder

Similar activities

CodeHS APCSP Python Control Structures

CodeHS APCSP Python Control Structures

11th - 12th Grade

13 Qs

CSI U5L2 - Sequence & Selection

CSI U5L2 - Sequence & Selection

10th Grade - University

10 Qs

FOP - CHAPTER 6

FOP - CHAPTER 6

University

10 Qs

CC102 - Repetition Control Structures

CC102 - Repetition Control Structures

University

10 Qs

if/else statements quiz

if/else statements quiz

9th Grade - University

10 Qs

Python IF Statements

Python IF Statements

9th - 12th Grade

10 Qs

Nested If

Nested If

6th - 12th Grade

15 Qs

Python

Python

8th Grade

12 Qs

CW-GR12-if conditions

CW-GR12-if conditions

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Ola Ismail

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What part of an if statement should be indented?

All of it

The statements within it

the first line

the lines within the brackets

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

condition

True

Program has a syntax error.

3 > 2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

True

False

condition1

condition2

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

more than 7

more than 23

spam

7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the = = symbol mean in Python?

Equal to or shows equality

Not Equal

Code that will be skipped

End of clause

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to test more than one condition (chained condition), what do you use after if statement?

elif

else

ifif

else if

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following if statements will not execute successfully:

Media Image
Media Image
Media Image
Media Image

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?