Python Assessment

Python Assessment

15 Qs

quiz-placeholder

Similar activities

Extemporary Test: Unit 1-Grammar and Vocabulary

Extemporary Test: Unit 1-Grammar and Vocabulary

KG - University

20 Qs

Pr1 U3 rozcvička What do they need?

Pr1 U3 rozcvička What do they need?

KG - University

13 Qs

Arts hahahaha

Arts hahahaha

8th Grade

12 Qs

1.3 Networks

1.3 Networks

KG - University

20 Qs

Unit 8: Political Revolutions 1750-1914

Unit 8: Political Revolutions 1750-1914

KG - University

20 Qs

Can you guess which adult chose each book?

Can you guess which adult chose each book?

1st - 5th Grade

19 Qs

Beginner Grammar 4 Entrance Test

Beginner Grammar 4 Entrance Test

KG - University

17 Qs

Baseline for Beginners

Baseline for Beginners

KG - University

19 Qs

Python Assessment

Python Assessment

Assessment

Quiz

others

Practice Problem

Hard

Created by

Mr B Crampton

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?