Search Header Logo

Statement IF (Python)

Authored by Cinthya Tobon

Computers

6th Grade

Used 6+ times

Statement IF (Python)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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

Already have an account?