Search Header Logo

Python If statement

Authored by Geeta Gupta

Computers

University

Used 7+ times

Python If statement
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Is Python case sensitive?

Yes

No

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the correct extension of the Python file?

.python

.pl

.py

.p

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

7

2

4

1

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to define a block of code in Python language?

Indentation

Key

Brackets

All of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true for variable names in Python?

underscore and ampersand are the only two special characters allowed

unlimited length

all private members must have leading and trailing underscores

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What will be the output of the following statement?

print(2**3 + (5 + 6)**(1 + 1))

128

121

129

28

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code ?

print(type(5 / 2))

print(type(5 // 2))

int

int

int

float

float

int

float

float

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?

Discover more resources for Computers