
CodeAcademy Python Test
Authored by Pham Phuc
Instructional Technology
5th Grade
Used 2+ times

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 • 10 pts
What programming language is popular in 2024?
Python
Scratch
C++
C#
HTML
2.
FILL IN THE BLANKS QUESTION
1 min • 10 pts
C++ is a...
(a)
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How can we talk in Python?
print ("Hello")
printf("Hello)
print("Hello")
print <fuction> sp"
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following Python code?
x = 5
y = 3
print(x + y)
8
15
53
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which data type is used to store a single character in Python?
int
char
string
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the correct way to comment a single line in Python?
// This is a comment
/* This is a comment */
# This is a comment
%% This is a comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the correct way to define a function in Python?
def my_function():
function my_function():
define my_function():
function = my_function():
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?