Python Test 1

Python Test 1

University

27 Qs

quiz-placeholder

Similar activities

Java Array

Java Array

University

23 Qs

PYTHON CONTERST 3

PYTHON CONTERST 3

University

25 Qs

SE  - Test for Reporting Team

SE - Test for Reporting Team

University

22 Qs

SE Test for Reporting Team

SE Test for Reporting Team

University

22 Qs

Python

Python

University

24 Qs

DEBUGGING

DEBUGGING

University

26 Qs

Python Programming Revision

Python Programming Revision

University

23 Qs

UAS DASPRO

UAS DASPRO

University

25 Qs

Python Test 1

Python Test 1

Assessment

Quiz

Computers

University

Medium

Created by

Peter Parfenov

Used 5+ times

FREE Resource

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

fruits = ['apple', 'orange', 'cherry']

lst = ['apple' for x in fruits]

What will be the value of lst?

['apple', 'apple', 'apple']

['apple']

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

fruits = ['apple', 'banana', 'cherry']

What is a correct syntax for looping through the fruits?

print(x) for x in fruits

for x in fruits print(x)

[print(x) for x in fruits]

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Insert the missing part (___) of the while loop below:

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the result of the following syntax:

x = 8

x += 2

print(x)

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The statement below would print a Boolean value, which one?

print(bool("letter"))

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The statement below would print a Boolean value, which one?

print(10 == 9)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following syntax:

print(5 > 3)?

True

False

5 > 3

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?