Python Assessment

Python Assessment

15 Qs

quiz-placeholder

Similar activities

Python

Python

KG - University

15 Qs

1.3 Rescue Mission

1.3 Rescue Mission

KG - University

13 Qs

Internet Safety Terms #1

Internet Safety Terms #1

6th Grade

10 Qs

Synergy quiz

Synergy quiz

KG - University

13 Qs

Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

KG - University

15 Qs

Nonfiction Text Features Task Cards

Nonfiction Text Features Task Cards

KG - University

19 Qs

Vocab List 5: Spec

Vocab List 5: Spec

6th Grade

10 Qs

Y9 Autumn 1 EOU Assessment

Y9 Autumn 1 EOU Assessment

KG - University

19 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?