Python If statement

Python If statement

University

11 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

University

10 Qs

Python modules, operators and random

Python modules, operators and random

University

15 Qs

Python

Python

University

15 Qs

Round 1

Round 1

University

15 Qs

Functions in Python

Functions in Python

University

10 Qs

Module in Python

Module in Python

University

15 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Python_Variables

Python_Variables

University

9 Qs

Python If statement

Python If statement

Assessment

Quiz

Computers

University

Medium

Created by

Geeta Gupta

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?