
Understanding Python Program Basics
Quiz
•
Computers
•
4th Grade
•
Practice Problem
•
Hard
Jacqueline Edwards
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to start a comment in Python?
#
//
%
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to print "Hello, World!" in Python?
echo "Hello, World!"
printf("Hello, World!")
print("Hello, World!")
System.out.println("Hello, World!")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create a variable named `age` and assign it the value 10 in Python?
int age = 10
age = 10
var age = 10
age := 10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Python list?
[1, 2, 3, 4]
{1, 2, 3, 4}
(1, 2, 3, 4)
<1, 2, 3, 4>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: `print(2 + 3 * 4)`?
20
14
24
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a control structure used for decision making in Python?
if
loop
repeat
switch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a `for` loop in Python to iterate over a list named `numbers`?
for i in numbers:
for (i in numbers)
foreach i in numbers
for i: numbers
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
13 questions
Introduction to Power Point
Quiz
•
4th Grade
14 questions
Private vs Personal Info
Quiz
•
2nd - 4th Grade
15 questions
6th Grade Media Quiz
Quiz
•
KG - University
10 questions
Quiz
Quiz
•
4th - 6th Grade
10 questions
Productivity Tools
Quiz
•
3rd - 6th Grade
10 questions
GENDER EQUALITY
Quiz
•
2nd - 5th Grade
10 questions
UTK - test
Quiz
•
KG - University
13 questions
Practice Computer Test 1
Quiz
•
3rd - 5th Grade
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
