101 suraq. (by Dias Bolat)
Quiz
•
Education
•
University
•
Medium
Диас Болат
Used 3+ times
FREE Resource
101 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
. What is the output of the following code?
text = "Python"
for letter in text:
print(letter, end=",")
a) P,y,t,h,o,n
b) P y t h o n
c) Python
d) P,y,t,h,o,n
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `input()` function do in Python?
Prints output to the console
b) Reads input from the user
Imports modules
Performs mathematical operations
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? ```python
x = 10
while x > 0:
print(x) x -= 2
a) 10 8 6 4 2
b) 10 9 8 7 6 5 4 3 2 1
) 10 8 6 4 2 0
d) 10 8 6 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct Python syntax for an if statement?
if x = 5:
`if x == 5`
`if x equals 5:`
`if x == 5 then:`
`if x == 5:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, the break statement can only be used within loops.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `range(3, 10, 2)` function in Python represent?
A range from 3 to 10 with a step of 2
A range from 3 to 9 with a step of 2
) A range from 3 to 10 with a step of 1
A range from 3 to 11 with a step of 2
A range from 2 to 10 with a step of 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a variable in Python?
variable_name = value
value = variable_name
var = value
value = var
) All of the above
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
100 questions
UJI KOMPETENSI KS
Quiz
•
University
96 questions
SSL101c_3
Quiz
•
University
105 questions
D31 master the day
Quiz
•
University
100 questions
คำศัพท์ภาษาอังกฤษคลังสินค้าและศูนย์กระจายสินค้า
Quiz
•
University
100 questions
untitled
Quiz
•
11th Grade - Professi...
100 questions
Ujian Tengah Semester Psikologi Perkembangan Usia 4-8 Tahun
Quiz
•
University
100 questions
PRM final (FIT HANU)
Quiz
•
University
100 questions
ta cun
Quiz
•
2nd Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Education
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University