Search Header Logo

Python year 9

Authored by Louise Lockwood

Computers

8th - 11th Grade

Used 203+ times

Python year 9
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

30 sec • 1 pt

To repeat a fixed number of times use a

while loop
for loop
if loop
indentation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character that must be at the end of the line for if, while, for etc.

:
;
.
,

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the answer here?

x = "hello"

print(len(x))

2

3

4

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the coder's word for converting one data type into another?

casting

throwing

catching

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a variable?


name=input("Welcome to the quiz, what is your name?")

print("Hello",name)

input

print

name

Hello

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the syntax error in this code?

Incorrect use of variable

Missing : characters at the end of the if and else statements

The code is not indented correctly

Missing brackets

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the syntax error in this code?

Incorrect use of variable

The code is not indented correctly

Missing : character at the end of the else statement

Missing brackets

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?