Search Header Logo

Python (grade 7)

Authored by Ameera Omoush

Computers

7th Grade

Used 1K+ times

Python (grade 7)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the code print?

a= 10

b= 18

if (a > b):

print("Hello")

else:

print("Bye")

18

Hello

10

Bye

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will this code print?

a = 3*2

print(a)

3

3*2

6

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will display the text 'Hello world!' on the screen?

print(Hello world!)

print=Hello world!

print ("Hello world!")

print Hello world!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this command? print ("5 + 3")

5+3

5

8

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which decision statement will be triggered if the variable x is less than 20?

if > 20:

if == 20:

if <20:

if != 20:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these tests whether the variable x is the same as 'Hello'?

x != Hello

x = "Hello"

x <> Hello

x == "Hello"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A piece of data that can change

A piece of data you cannot change

A coding technique

A special file

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?