Search Header Logo

Python quiz

Authored by SHREYA AGARWAL Chandra

Information Technology (IT)

University

Used 2+ times

Python quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression: 2 + 3 * 4 ** 2 - 1?

20
15
10

49

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the expression (a + b) * c, what happens first?

The addition (a + b) happens first.
The expression is evaluated from right to left.
The multiplication (c) happens first.
The addition and multiplication happen simultaneously.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 15 // 4?

5
2
4
3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator has higher precedence?

+

//

* *

*

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

In Python, a library such as pandas is commonly used to handle (a)   .

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a decision structure, the code inside an if block will only execute if the condition is __________.

true
undefined
false
null

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a variable in Python?

var x = 10

let x = 10

x := 10

x = 10

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?