Search Header Logo

Test

Authored by Jeremy Talbot

Computers

7th Grade

Used 4+ times

Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MATCH QUESTION

3 mins • 2 pts

Match the following

Data type for whole numbers

int

Used to display output

"Hello World"

String of text

  1. input()

Used to get input from the user.

#

Indicates a comment

print()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code snippet?

4

"22"

22

Syntax Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to comment in Python?

//

#

/* */

<!-- -->

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you output the text "Hello World" in Python?

echo("Hello World")

write("Hello World")

print("Hello World")

printf("Hello World")

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you start writing an if statement in Python?

if x > y:

if x > y ->

if x > y then:

if (x > y)

6.

REORDER QUESTION

3 mins • 2 pts

Reorder the following lines to create a Python script that counts from 0 to 9 and then prints "Lift Off".

count = count + 1

print(count)

print("Lift Off")

while count < 10:

count = 0

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the output of the following code be?:

10

7

5

25

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?