Search Header Logo

Lesson 3: Conditional Statements Y7

Authored by jasroop ict

Other

6th Grade

Used 11+ times

Lesson 3: Conditional Statements Y7
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 will the following code print?

x = 10 y = 5 print(x + y)

105

15

Error

10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What is a string?

Text in quotes "hello"

2.2

4

"hello" 2.2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What is the output of this code?

a = True b = False

print(a + b)

True False 

False

Error

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an integer? 

4.0

4

"4"

Number with a decimal point

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 How would you define a variable that holds the number 3.14 in Python?

x = 3.14

x = 3.14f

x = "3.14"

x = 3.14.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a conditional statement? 

Ture and false 

If it is hot wear sunglasses, if it is cold wear a hat. 

 Error

 Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an input statement look like in Python?

input()

int()

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?