Search Header Logo

Quiz#2

Authored by Eman Shatnawe

Computers

6th - 8th Grade

Used 1+ times

Quiz#2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Python use to define blocks of code (e.g., in loops, functions, etc.)?

Semicolons ;

Curly braces {}

Indentation

D) Parentheses ()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

<!-- This is a comment -->

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python used for?

To create functions

To store data

To print messages on the screen

To create loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1stVariable

my-variable

my_variable

my variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use to store the value 3.14?

int

str

bool

float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Boolean value in Python?

Yes

1

True

"True"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

10

"55"

5

Error

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?