python revision

python revision

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Python Revision Tour

Python Revision Tour

12th Grade

10 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

python revision

python revision

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

G Kelly

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print("Hello" + " " + "World")?

Hello World

HelloWorld

"Hello World"

Hello + World

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 5 + 3 * 2?

16

11

13

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given name = "Alice" and age = 15, what is the output of print("My name is " + name + " and I am " + str(age) + " years old.")?

My name is Alice and I am 15 years old.

My name is "Alice" and I am "15" years old.

My name is Alice and I am "15" years old.

Error: cannot concatenate str and int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

fruits = ["apple", "banana", "cherry"]

print(fruits[1])

apple

banana

cherry

["apple", "banana", "cherry"]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len(fruits) return in the code below?

fruits = ["apple", "banana", "cherry"]

2

3

4

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output for the following code:

x = 10

if x > 5:

print("x is greater than 5")

else:

print("x is not greater than 5")

x is greater than 5

x is not greater than 5

No output

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the following code:

for i in range(3):

print("Python is fun!")

Python is fun! (printed once)

Python is fun! (printed twice)

Python is fun! (printed three times)

Error

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

print("Hello, World!"[7:])

Hello

World!

, World!

Hello World