
Understanding Python Program Basics
Authored by Jacqueline Edwards
Computers
4th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?