
Mid-Quiz
Authored by Grace Mutinda
Instructional Technology
9th - 12th Grade
Used 1+ 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 • 1 pt
Introduction to Python Programming
Which of the following is the correct way to print "Hello, World!" in Python?
Which of the following is the correct way to print "Hello, World!" in Python?
echo "Hello, World!"
print("Hello, World!")
printf("Hello, World!")
cout << "Hello, World!";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to start a comment in Python?
//
#
<!--
%
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Functions in Programming
What keyword is used to define a function in Python?
What keyword is used to define a function in Python?
def
func
function
lambda
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the function definition
def add(a, b):
return a + b
what is the output of add(2, 3)?
23
5
6
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Introduction to Robotics
Which component is essential for a robot to sense its environment?
Which component is essential for a robot to sense its environment?
Actuator
Sensor
Processor
Battery
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In robotics, what is the purpose of an actuator?
To store data
To process information
To perform physical actions
To sense the environment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops with Python
Which of the following is the correct syntax for a while loop in Python?
Which of the following is the correct syntax for a while loop in Python?
while (condition) { }
while condition:
while condition { }
while (condition):
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?