Python Beginner Midterm

Python Beginner Midterm

Assessment

Flashcard

•

Computers

•

9th Grade

•

Practice Problem

•

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

56 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which symbol is used to add comments in Python?

Back

#

2.

FLASHCARD QUESTION

Front

Which of the following is a valid variable declaration in Python?
Options: var name = "John", name: "John", name = "John", string name = "John"

Back

name = "John"

3.

FLASHCARD QUESTION

Front

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

Back

Hello, World!

4.

FLASHCARD QUESTION

Front

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

Back

Syntax Error

5.

FLASHCARD QUESTION

Front

What is the result of 10 / 2?

Back

5.0

6.

FLASHCARD QUESTION

Front

What is the result of 3 ** 2?

Back

9

7.

FLASHCARD QUESTION

Front

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

Back

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?