wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CO - 1 Quiz - 1-DB_Python Basic

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Who developed the Python language

a)

Zim Den

b)

Guido van Rossum

c)

Niene Stom

d)

Wick van Rossum

2.

In which year was the Python language developed

a)

1995

b)

1972

c)

1981

d)

1989

3.

In which language is Python written?

a)

PHP

b)

Java

c)

C

d)

Python

4.

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

a)

.py

b)

.python

c)

.pt

d)

.obj

5.

In which year was the Python 3.0 version developed?

a)

2007

b)

2008

c)

2009

d)

2010

6.

What do we use to define a block of code in Python language

a)

Key

b)

Brackets

c)

Space

d)

Indentation

7.

Which character is used in Python to make a single line comment

a)

/

b)

*/

c)

#

d)

//

8.

Which of the following statements is correct for variable names in Python language

a)

All variable names must begin with an underscore.

b)

The variable name length is a maximum of 2.

c)

Unlimited length

d)

All of the above

9.

Which of the following declarations is incorrect in python language?

a)

xyzp = 5,000,000

b)

x,y,z,p = 5000, 6000, 7000, 8000

c)

x y z p = 5000 6000 7000 8000

d)

x_y_z_p = 5,000,000

10.

Which one of the following has the same precedence level?

a)

Power and Division

b)

Division, Power, Multiplication, Addition and Subtraction

c)

Subtraction and Division

d)

Division and Multiplication

11.

Which one of the following has the highest precedence in the expression?

a)

Division

b)

Parentheses

c)

Addition

d)

Subtraction

12.

Which of the following functions is a built-in function in python language.

a)

val()

b)

printf()

c)

print()

d)

scan()

13.

What is the first step in write a program

a)

Run Code

b)

Write Code

c)

Edit Code

d)

Check Code

14.

Python is a/an _____ language

a)

Logical Programming

b)

Interpreted Programming

c)

Compiled Programming

d)

Complex Programming

15.

An input that you take in python is of_____ data type.

a)

int

b)

float

c)

str

d)

char