Python Exam

Python Exam

7th Grade

10 Qs

quiz-placeholder

Similar activities

Arduino

Arduino

7th - 9th Grade

15 Qs

Lekcja14 7-8

Lekcja14 7-8

7th - 8th Grade

13 Qs

Revision Quiz 2 - Information Technology

Revision Quiz 2 - Information Technology

7th - 8th Grade

10 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

วิทยาการคำนวณหลังเรียน1

วิทยาการคำนวณหลังเรียน1

7th Grade

15 Qs

Apple quiz

Apple quiz

5th Grade - University

14 Qs

Internet and graphic Design

Internet and graphic Design

7th Grade

10 Qs

Computational Thinking - Review

Computational Thinking - Review

6th - 7th Grade

10 Qs

Python Exam

Python Exam

Assessment

Quiz

Computers

7th Grade

Practice Problem

Hard

Created by

Alejandra Vargas

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?