Search Header Logo

Mid-Quiz

Authored by Grace Mutinda

Instructional Technology

9th - 12th Grade

Used 1+ times

Mid-Quiz
AI

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

  1. 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

  1. 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

  1. 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

  1. 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

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?