Search Header Logo

Python Basics Quiz

Authored by Nana Amoah

Other

University

Used 3+ times

Python Basics 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

20 sec • 1 pt

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

1_variable

my-variable

my_variable

if

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of print(5 + 3 * 2)?

16

11

13

10

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. Which operator is used to get the remainder of a division in Python?

/

%

//

**

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will print(type(10.5)) output?

<class 'int'>

<class 'float'>

<class 'double'>

<class 'str'>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(10 // 3)?

3

3.33

3.0

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a numeric data type in Python?

int

float

complex

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(not (5 > 3))

False

Error

None

True

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?