Search Header Logo

Python Final 23

Authored by Joseph Gilliam

Specialty

9th - 12th Grade

Used 49+ times

Python Final 23
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python?

A snake

A programming language

A software

A type of food

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is used to define a block of code in Python?

Curly braces

Parentheses

Indentation

Quotation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a comment in Python?

Using the // symbol

Using the /*...*/ symbol

Using the # symbol

Using the -- symbol

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python function will you use to read input data from the user?

input()

raw_input()

read_input()

collect_input()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable "a" that is equal to 2 in Python?

int a = 2

var a = 2

a = 2

2 = a

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid Python data type?

 List

Tuple

Dictionary

Table

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list in Python?

a = (1, 2, 3)

a = [1, 2, 3]

a = {1, 2, 3}

a = '1, 2, 3'

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?