wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Programming

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

Who is the father of Computer?

a)

Allen Turing

b)

Charles Babbage

c)

Simur Cray

d)

Augusta Adaming

2.

Which of the following is also known as brain of computer?

a)

Control unit

b)

Central Processing unit

c)

Arithmetic and language unit

d)

Monitor

3.

ASCII stands for

a)

American Stable Code for International Interchange

b)

American Standard Case for Institutional Interchange

c)

American Standard Code for Information Interchange

d)

American Standard Code for Interchange Information

4.

Microprocessors as switching devices are for which generation computers

a)

First Generation

b)

Second Generation

c)

Third Generation

d)

Fourth Generation

5.

Which of the following is a part of the Central Processing Unit?

a)

Printer

b)

Key board

c)

Mouse

d)

Arithmetic & Logic unit

6.

Which device is required for the Internet connection?

a)

Repeater

b)

Modem

c)

CD Drive

d)

NIC Card

7.

Which of the following is incorrect variable name in Python?

a)

variable_1

b)

variable1

c)

1variable

d)

_variable

8.

Which functions are used to accept input from the user.

a)

input()

b)

raw_input()

c)

rawinput()

d)

string()

9.

What is the data type of print(type(10))

a)

float

b)

integer

c)

int

d)

String

10.

What is the output of the following code

x = 6 y = 2

print(x ** y) print(x // y)

a)

66 0

b)

36 0

c)

66 3

d)

36 3

11.

Which of the following statement is False?

a)

They can contain both letters and numbers.

b)

Variable names can be arbitrarily long.

c)

Variable name can begin with underscore.

d)

Variable name can begin with number.

12.

Which of the following is not used as loop in Python?

a)

for loop

b)

while loop

c)

do-while loop

d)

None of the above

13.

What is NIC used for?

a)

To remotely access PC

b)

To connect computer to a network

c)

It is used in junipers routers for gateway card

d)

None

14.

. In a type of computer network, what does MAN stands for?

a)

Metropolis area network

b)

Mini area network

c)

Metropolitan area network

d)

Micro area network

15.

Which of the following is the type of the computer network?

a)

Metropolitan area network (MAN)

b)

Local area network (LAN)

c)

Wide area network (WAN)

d)

All of the above

16.

The _______ provides pictorial representation of given problem.

a)

Algorithm

b)

Flowchart

c)

Pseudocode

d)

All of these

17.

_______ is a procedure or step by step process for solving a problem.

a)

Algorithm

b)

Flowchart

c)

Pseudocode

d)

All of these

18.

The ______ symbol is used at the beginning of a flow chart.

a)

Circle

b)

Rectangle

c)

Diamond

d)

None of these

19.

What will be the output of above Python code?

str1="6/4"

print("str1")

a)

1

b)

6/4

c)

1.5

d)

str1

20.

What will following Python code return?

str1="Stack of books"

print(len(str1))

a)

13

b)

14

c)

15

d)

16

21.

Which one of the following is correct way of declaring and initializing a variable, x with value 5?

int x

a)

Int x=5

b)

int x=5

c)

x=5

d)

declare x=5

22.

All keyword in python are in

a)

Lowercase

b)

Uppercase

c)

Both uppercase & Lowercase

d)

None of the above

23.

How many keywords are there in python 3.7?

a)

32

b)

33

c)

30

d)

31

24.

In Python3, which functions are used to accept input from the user

a)

input()

b)

raw_input()

c)

rawinput()

d)

string()

25.

Who developed the Python language?

a)

Zim Den

b)

Guido van Rossum

c)

Niene Stom

d)

Wick van Rossum