wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming - Screening Test

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

A sequence of instructions in a computer language to get the desired result is known as :

a)

An algorithm

b)

A decision table

c)

A program

d)

None of the above

2.

The language understood by a computer with out translation is called :

a)

Command Language

b)

High-level language

c)

Assembly language

d)

Machine Language

3.

What is the result? 4+3%5

a)

7

b)

3

c)

2

d)

1

4.

Order of precedence

a)

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b)

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c)

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d)

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

5.

All keywords in Python are in _________

a)

Capitalized

b)

Lower case

c)

Uppercase

d)

Either capitalized or lower case

6.

What will be the output of the following Python statement?

"a"+"bc"

a)

bc

b)

abc

c)

a

d)

bca

7.

What will be the output of the following Python code?

print("abc.DEF". capitalize())

a)

Abc.def

b)

abc.def

c)

Abc.Def

d)

ABC.DEF

8.

What is output of print(math.pow(3, 2))?

a)

9.0

b)

9

c)

None

d)

Error

9.

What is the average value of the following Python code snippet?

a)

85.0

b)

85.1

c)

95.0

d)

95.1

10.

19%2 in python

a)

2

b)

17

c)

1

d)

0

11.

What will be the output?

s='cppbuzz chicago'

print(s[3:5])

a)

buzzc

b)

pbuzz

c)

bu

d)

chicago

12.

Amongst which of the following is / are the application areas of Python programming?

a)

Web development

b)

Game Development

c)

Artificial Intelligence & Machine Learning

d)

All the above mentioned

13.

a, b = 12, 5

if a + b: print('True')

else: print('False')

a)

True

b)

False

14.

What will be the output?

a)

You rock

b)

Not interested

c)

blue black

d)

None

15.

What is the output of the below program?

print(02+0.4==0.6)

a)

True

b)

False

c)

Error

d)

Depends