Search Header Logo

Python Quiz 2

Authored by Aditi Pokale

Other

University

Used 3+ times

Python Quiz 2
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

30 sec • 1 pt

What is the answer to this expression, 22 % 3 is?

7

1

0

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mathematical operations can be performed on a string.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression Int(x) implies that the variable x is converted to integer.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these in not a core data type?

a) Lists

b) Dictionary

c) Tuples

d) Class

Lists

Dictionary

Tuples

Class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In order to store values in terms of key and value we use what core data type.

list

tuple

class

dictionary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword would you use to add an alternative condition to an if statement?

else if

elseif

elif

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will check if a is equal to b?

A. if a = b:

B. if a == b:

C. if a === c:

D. if a == b

if a = b:

if a == b:

if a === c:

if a == b

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?