Search Header Logo

Python Quiz1

Authored by Abdullah Ansari

Computers

6th - 8th Grade

Used 2+ times

Python Quiz1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the truncation division operator in Python?

|

//

/

%

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python function?

min(max(False,-3,-4), 2,7)

-4

-3

2

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression if x=56.236?

print("%.2f"%x)

56.236

56.23

56.0000

56.24

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]:

print(i, end=' ')

4 3 2 1

error

1 2 3 4

None of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

1 2 3

error

1 2

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

15

0

20

None of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence in python?

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

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?