
Python Test 1
Authored by Peter Parfenov
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
Algorithms are not magic - AQA A Level Computer Science
Quiz
•
8th Grade - University
23 questions
Hardware in Multimedia
Quiz
•
University
23 questions
IAW_2AS3_PHP_1
Quiz
•
1st Grade - University
24 questions
2B. Active Reconnaissance - Enumeration
Quiz
•
University
25 questions
Atividade sobre Modelos de Processo de Software
Quiz
•
University
25 questions
Struktur Data
Quiz
•
University
25 questions
Module 3 - Security Architecture
Quiz
•
University
25 questions
UAS - Kecerdasan Komputasional
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade