Search Header Logo

Selection

Authored by Tezel Asena

KG - Professional Development

Used 446+ times

Selection
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is selection?

Selecting a random variable in python

Also called a decision, one of the three basic logic structures in programming. If statements

Iteration, repeating a line of code within a loop

Casting

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol must you place at the end of an if statement?

)

:

;

}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an indentation in Python?

A line of code that returns a value

A subroutine

A block of code that creates a variable

A code block (body of a function, loop etc.) starts with indentation and ends with the first unintended line.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1==0

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5 >= 5

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code display?

a = 6

if a => 6:

print("pass")

else:

print("fail")

pass

fail

nothing because there will be an error

passfail

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of a logical operator

and

else

there

if

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?