Search Header Logo

Python Baseline Quiz for Y11 Students

Authored by Paul Shaddick

Computers

10th Grade

Used 2+ times

Python Baseline Quiz for Y11 Students
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to declare a variable called `age` and assign it the value 15 in Python?

age == 15

age = 15

int age = 15

15 = age

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What data type will the variable `name` have after the following code is executed? name = "Alice"

int

float

string

bool

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a simple data type in Python?

int

float

string

list

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code? print(7.5)

7,5

"7.5"

7.5

75

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you get input from a user and store it in a variable called `user_input`?

user_input = input()

input(user_input)

user_input == input()

user_input = get.input()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code? print("Hello, World!")

Hello, World!

"Hello, World!"

print("Hello, World!")

Hello World

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to use a for loop to print numbers from 1 to 10 (inclusive)?

for i in range(1, 11): print(i)

for i in range(1, 10): print(i)

for i in range(0, 10): print(i)

for i in range(1, 12): print(i)

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?