Python Exam

Python Exam

7th Grade

10 Qs

quiz-placeholder

Similar activities

The importance of Being Earnest

The importance of Being Earnest

KG - University

11 Qs

Key Concepts 1

Key Concepts 1

5th - 7th Grade

11 Qs

Quiz 3: Internet safety, cyber security and encryption

Quiz 3: Internet safety, cyber security and encryption

7th - 8th Grade

13 Qs

21 Things Basics

21 Things Basics

7th - 8th Grade

10 Qs

Micro:bit

Micro:bit

6th - 9th Grade

10 Qs

Coding helps to Understand

Coding helps to Understand

6th - 10th Grade

10 Qs

Ստանդարտ ֆունկցիաներ - Python

Ստանդարտ ֆունկցիաներ - Python

7th Grade

10 Qs

Tinker Cad - Quiz 2

Tinker Cad - Quiz 2

3rd - 11th 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

Create a free account and access millions of resources

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?

Discover more resources for Computers