
Robotic Placement Test
Authored by Huda Learns
Information Technology (IT)
9th - 12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct file extension for Python files?
Answer explanation
Python source files use the .py extension.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code print? print("Hello, world!")
Answer explanation
The print function outputs the exact string provided.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is NOT a valid Python variable name?
Answer explanation
Variable names cannot start with a digit.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax to create a single-line comment in Python?
Answer explanation
Python uses the # symbol for single-line comments.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type would the value 3.14 be in Python?
Answer explanation
Numbers with a decimal point are floats.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of 5 ** 2 in Python?
Answer explanation
** is the exponentiation operator (5 squared = 25).
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to define a function in Python?
Answer explanation
Functions begin with the def keyword.
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?