Python Assessment

Python Assessment

15 Qs

quiz-placeholder

Similar activities

Iteration and Counts Activity 3.2.3

Iteration and Counts Activity 3.2.3

KG - University

10 Qs

Quiz Program Information (PI) POLY

Quiz Program Information (PI) POLY

KG - University

10 Qs

Functions

Functions

8th Grade

14 Qs

Intro to Python Assessment

Intro to Python Assessment

KG - University

20 Qs

All in - Year 5 Selection in Quizzes

All in - Year 5 Selection in Quizzes

KG - University

14 Qs

Vocab List 5: Spec

Vocab List 5: Spec

6th Grade

10 Qs

Conditional Statements in Python Quiz-9a

Conditional Statements in Python Quiz-9a

KG - University

10 Qs

Spec Vocabulary Quiz

Spec Vocabulary Quiz

6th Grade

10 Qs

Python Assessment

Python Assessment

Assessment

Quiz

others

Hard

Created by

Mr B Crampton

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Tutor Group
8.1
8.2
8.3
8.4
8.5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the python program below, When the program is executed what will be displayed on the screen?

"I live in", location

"I live in", "Leeds"

I live in location

I live in Leeds

Answer explanation

The program assigns 'Leeds' to the variable 'location'. When printed, it concatenates the string 'I live in' with the value of 'location', resulting in 'I live in Leeds', which is the correct answer.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the python program below, When the program is executed what will be displayed on the screen?

13 42

42 13

a b

There is an error in the program because variables a and b are not assigned values in the right order.

Answer explanation

The program assigns 13 to 'a' and 42 to 'b', then prints them. The output will be '13 42' as the values are displayed in the order they are assigned. Therefore, the correct answer is '13 42'.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Read the python program below, When the program is executed what will be displayed on the screen?
13 42
42 13
There is an error in the program because variables a and b are not assigned values in the right order.
There is an error in the program because when line 1 is executed, variables a and b have not been assigned values.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Read the python program below, When the program is executed what will be displayed on the screen?
13 14
13 a+1
a b
There is an error in the program because when line 3 is executed, variable a no longer has a value.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Read the python program below, When the program is executed what will be displayed on the screen, if the user enters Python at the prompt?
You should try a little Python too
Hello Pythonista
You should try a little Python too Hello Pythonista
Hello Pythonista you should try a little python too

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image
Read the python program below, When the program is executed what will be displayed on the screen, if the user enters Python at the prompt?
You should try a little Python too
Hello Pythonista
You should try a little Python too Hello Pythonista
Hello Pythonista you should try a little python too

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?