Test

Test

7th Grade

13 Qs

quiz-placeholder

Similar activities

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

FOR LOOPS and Angles with Tracy (PYTHON)

FOR LOOPS and Angles with Tracy (PYTHON)

7th - 8th Grade

10 Qs

Coding 300: JavaScript/Python Vocab

Coding 300: JavaScript/Python Vocab

7th - 8th Grade

10 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

MYP2

MYP2

7th Grade

18 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Wiz 3 Assessment Python

Wiz 3 Assessment Python

6th - 8th Grade

10 Qs

Python

Python

7th Grade

10 Qs

Test

Test

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Jeremy Talbot

Used 4+ times

FREE Resource

13 questions

Show all answers

1.

MATCH QUESTION

3 mins • 2 pts

Match the following

Used to get input from the user.

  1. input()

Used to display output

#

Data type for whole numbers

"Hello World"

Indicates a comment

print()

String of text

int

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 = 0

while count < 10:

print(count)

count = count + 1

print("Lift Off")

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the output of the following code be?:

10

7

5

25

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?