wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python - Module 1 Quiz

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Creator of Python

a)

James Gosling

b)

Guido Van Rossum

c)

Dennis Ritchie

d)

Bjarne Stroustrup

2.

Variables in python are case-sensitive

a)

True

b)

False

3.

Which among these has the highest precedence

a)

Addition

b)

Subtraction

c)

Exponentiation

d)

Negation

4.

Identify the function that builds a string from the user's keystrokes and return it to the program

a)

int

b)

float

c)

input

d)

string

5.

Find the escape sequence that is used to escape special characters

a)

\

b)

\b

c)

\n

d)

\\

6.

Loop header ends with

a)

:

b)

;

c)

'

d)

"

7.

The loop that performs the action until the program determines that it needs to stop

a)

Definite Iteration

b)

Indefinite Iteration

8.

Which one is referred as Conditional iteration.

a)

For loop

b)

while loop

c)

If else

d)

If elif else