Python Exam

Python Exam

7th Grade

10 Qs

quiz-placeholder

Similar activities

SoloLearn Intro to Python Course

SoloLearn Intro to Python Course

6th - 8th Grade

15 Qs

Python Test

Python Test

6th - 12th Grade

9 Qs

Python

Python

6th - 12th Grade

9 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Introduction to Python Turtle

Introduction to Python Turtle

7th - 8th Grade

10 Qs

Python

Python

7th - 8th Grade

10 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Lesson 1 Python I Review

Lesson 1 Python I Review

6th - 8th Grade

10 Qs

Python Exam

Python Exam

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Alejandra Vargas

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 1: What will the following code display?

firstName = "John"

print("Hello " + firstName)

Hello firstName

firstName

Hello John

Hello

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 2: What will the following code display?

firstName = "John"

surname = "Doe"

print("Hello " + firstName + " " + surname)

Hello John

Hello John Doe

Hello Doe

John Doe

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 3: What will the following code display?

age = 15

print("I am " + age + " years old")

I am 15 years old

I am age years old

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 4: What will the following code display?

age = 15

print("I am ", age, " years old")

I am 15 years old

I am age years old

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 5: Which code will display the joke on one line?

print("What do you call a bear with no teeth?\nA gummy bear!")

print("What do you call a bear with no teeth?")

print("A gummy bear!")

print("What do you call a bear with no teeth? A gummy bear!")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 6: What will the following code display?

num1 = 10

num2 = 5

print("The total is ", num1 + num2)

The total is 10 + 5

The total is 15

10 + 5 = 15

Total is 15

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Challenge 7: What will the following code display?

num1 = 2

num2 = 3

num3 = 4

answer = (num1 + num2) * num3

print("The answer is ", answer)

The answer is 14

The answer is 24

The answer is 2 + 3 * 4

The answer is 20

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?