Statement IF (Python)

Statement IF (Python)

6th Grade

15 Qs

quiz-placeholder

Similar activities

CS Express - Conditionals Lessons 11-15 Quiz

CS Express - Conditionals Lessons 11-15 Quiz

4th - 8th Grade

20 Qs

Sprites, syntax, variables, and conditionals

Sprites, syntax, variables, and conditionals

6th - 8th Grade

10 Qs

Code.org Express Course conditionals

Code.org Express Course conditionals

5th - 6th Grade

18 Qs

Computer Science Vocabulary Fetherland, Kaylyn

Computer Science Vocabulary Fetherland, Kaylyn

6th - 12th Grade

18 Qs

Code.org Express Course

Code.org Express Course

6th - 8th Grade

20 Qs

Micro:Bit Quiz Unit 3

Micro:Bit Quiz Unit 3

6th - 8th Grade

20 Qs

Coding Pre-quiz

Coding Pre-quiz

6th - 9th Grade

15 Qs

Hour of Code

Hour of Code

6th - 12th Grade

12 Qs

Statement IF (Python)

Statement IF (Python)

Assessment

Quiz

Computers

6th Grade

Medium

Created by

Cinthya Tobon

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data expresses a value between true and false in programming?

Decimal

Integer

Boolean

String

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operators are used to compare numbers in programming?

+, -

>, <, ==, !=

*, /

&&, ||

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What action is taken if the condition x < 5 is true?

Print 'y is greater'

Print 'x is less'

Do nothing

Print 'x is greater'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed in the console if x = 7?

'y is greater'

'x is greater'

'x is less'

Nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the if and else conditionals used for in programming?

To print messages in the console

To divide numbers

To control the flow of the program

To add numbers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function of conditionals in programming?

Draw figures

Control the flow of the code

Play music

Compare colors

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can be verified using if and else conditionals?

The speed of the internet connection

The temperature of the processor

The existence of a file

The size of the screen

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?