wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PL101 MIDTERM Long Quiz

Total questions: 35

Worksheet time: 23mins

Name
Class
Date
1.

It is a cross-platform programming language that can run on multiple platforms like Windows, macOS, and Linux.

a)

C

b)

C++

c)

Python

d)

None of the choices

2.

Python is _____.

a)

free and open-source

b)

free and available online

c)

multi languages and open-source

d)

None of the choices

3.

____ are the reserved words in Python.

a)

Method

b)

Keywords

c)

Module

d)

None of the choices

4.

In Python, keywords are _____.

a)

uppercase

b)

lowercase

c)

case-sensitive

d)

None of the choices

5.

All the keywords except True, False and None are in _____ and they must be written as they are

a)

uppercase

b)

lowercase

c)

case-sensitive

d)

None of the choices

6.

_____ is a name given to entities like class, functions, variables, etc.

a)

Identifier

b)

Module

c)

Keywords

d)

None of the choices

7.

An identifier cannot start with a _____. 

a)

uppercase letter

b)

lowercase letter

c)

digit

d)

None of the choices

8.

An identifier cannot start with a _____. 

a)

uppercase letter

b)

lowercase letter

c)

digit

d)

None of the choices

9.

Always give the identifiers a name that _____.

a)

make values

b)

makes sense

c)

make variable

d)

None of the choices

10.

In creating multiple words identifier it can be separated using an _____, like this_is_a_long_variable.

a)

space

b)

underscore

c)

symbols

d)

None of the choices

11.

Instructions that a Python interpreter can execute are called (a)   .

12.

To define a block of code in Python we uses (a)   .

13.

(a)   describe what is going on inside a program.

14.

A (a)   is a named location used to store data in the memory.

15.

A (a)   is a type of variable whose value cannot be changed.

16.

(a)   is a raw data given in a variable or constant.

17.

A (a)   is a sequence of characters surrounded by quotes.

18.

A (a)   literal can have any of the two values: True or False.

19.

We can use the  (a)    function to know which class a variable or a value belongs to.

20.

(a)   can be of any length, it is only limited by the memory available.

21.

In _____ type conversion, Python automatically converts one data type to another data type.

a)

Explicit

b)

implicit

c)

conversion

d)

None of the choices

22.

In _____Type Conversion, users convert the data type of an object to the required data type.

a)

Explicit

b)

implicit

c)

conversion

d)

None of the choices

23.

In _____Type Conversion, users convert the data type of an object to the required data type.

a)

Explicit

b)

implicit

c)

conversion

d)

None of the choices

24.

In Python, we can simply use the _____ function to print output.

a)

printf()

b)

print()

c)

printing()

d)

None of the choices

25.

To take the input from the user in Python, we can use the _____ function.

a)

get()

b)

scanf()

c)

input()

d)

None of the choices

26.

a = 5 b =2 ; print (a < b)   

a)

True

b)

False

27.

a = 5 b =2 ; print(a != b)  

a)

True

b)

False

28.

a = 10 b =4 ; print(a >= b)

a)

True

b)

False

29.

a = 10 b =10 ; print(a <= b)

a)

True

b)

False

30.

a = 5 b =6 ; print((a > 2) and (b >= 6))   

a)

True

b)

False

31.

a = 2 b =3 ; print((a > 2) and (b >= 6))   

a)

True

b)

False

32.

print(not True)         

a)

True

b)

False

33.

a = 1 b =3 ; print((a > 2) or (b >= 6))   

a)

True

b)

False

34.

a = 6 b =2 ; print((a > 2) or (b >= 6))   

a)

True

b)

False

35.

num1 = 6 num2 =6 ; print(num1 is not num2) 

a)

True

b)

False