Search Header Logo

Python Beginner Midterm

Authored by Strem Coaches

Computers

9th Grade

Used 1+ times

Python Beginner Midterm
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

56 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to add comments in Python?

//

#

%

@

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

var name = "John"

name: "John"

name = "John"

string name = "John"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print("Hello, World!")

Hello World

"Hello, World!"

Hello, World!

print("Hello, World!")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of error is present in the following line of code? print("Hello, World!)

Syntax Error

Runtime Error

Logical Error

Name Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 / 2?

6

5.0

10

10.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 3 ** 2?

6

9

8

27

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print("Hello" + " " + "World")

HelloWorld

Hello World

"Hello World"

"Hello" + " " + "World"

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?