Python Assessment

Python Assessment

15 Qs

quiz-placeholder

Similar activities

DSD QUIZZ 2 2023 Batch

DSD QUIZZ 2 2023 Batch

KG - University

10 Qs

Brainwave Blazers

Brainwave Blazers

KG - University

20 Qs

Vocabulary Comprehension

Vocabulary Comprehension

12th Grade

10 Qs

Grammar test 2024 ชุดที่ 3

Grammar test 2024 ชุดที่ 3

University

10 Qs

Revision #2

Revision #2

KG - University

10 Qs

Simple Present #2

Simple Present #2

KG - University

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