wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Bridge Course - Screening Test

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which type of Programming does Python support?

a)

Object Oriented Programming

b)

Structured Programming

c)

Functional Programming

d)

All of the above

2.

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

a)

.python

b)

.pl

c)

.py

d)

.pic

3.

Is Python code compiled or interpreted?

a)

Python code is both compiled and interpreted

b)

Python code is neither compiled nor interpreted

c)

Python code is only compiled

d)

Python code is only interpreted

4.

What will be the value of the following Python expression?

4 + 3 % 5

a)

7

b)

2

c)

4

d)

1

5.

Which keyword is used for function in Python language?

a)

fun

b)

def

c)

function

d)

define

6.

Which of the following character is used to give single-line comments in Python?

a)

//

b)

#

c)

!

d)

/*

7.

What is the order of precedence in python?

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

8.

What are the values of the following Python expressions?

2**(3**2)

(2**3)**2

2**3**2

a)

512, 64, 512

b)

512, 512, 512

c)

64, 512, 64

d)

64, 64, 64

9.

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

a)

factorial()

b)

print()

c)

seed()

d)

sqrt()

10.

What will be the output of the following Python function?

min(max(False,-3,-4), 2,7)

a)

-4

b)

-3

c)

2

d)

False

11.

Which of the following is not a core data type in Python programming?

a)

Tuples

b)

Lists

c)

Class

d)

Dictionary

12.

What will be the output of the following Python expression if x=56.236?

print("%.2f"%x)

a)

56.236

b)

56.23

c)

56.0000

d)

56.24

13.

What will be the output of the following Python function?

len(["hello",2, 4, 6])

a)

Error

b)

6

c)

4

d)

3

14.

The value of the Python expression given below would be:

4+2**5//10

a)

77

b)

0

c)

3

d)

7

15.

Which arithmetic operators can we NOT use with strings?

a)

-

b)

+

c)

*

d)

All the Above

16.

Is this code valid in Python?

>>> m=6,7,8,9

>>> m

a)

No, many values will unpack

b)

Yes, 6 will be printed

c)

Yes, (6,7,8,9) will be printed

d)

Yes, [6,7,8,9] will be printed

17.

Find the invalid variable among the following:

a)

1st_string

b)

my_string_1

c)

_

d)

foo

18.

Which one of these is incorrect?

a)

float(‘nan’)

b)

float(7.00)

c)

float(’12+34′)

d)

float(’56’+’78’)

19.

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

a)

Key

b)

Brackets

c)

Indentation

d)

None of these

20.

Which of the following operators is the correct option for power(ab)?

a)

a^b

b)

a**b

c)

a^^b

d)

a^*b

21.

All keywords in Python are in _________

a)

Capitalized

b)

Uppercase

c)

Lower case

d)

Either capitalized or lower case

22.

What will be the output of the following Python statement?

"a"+"bc"

a)

bc

b)

abc

c)

a

d)

bca

23.

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

24.

19%2 in python

a)

2

b)

17

c)

1

d)

0

25.

What will be the output?s='cppbuzz chicago'

print(s[3:5])

a)

buzzc

b)

pbuzz

c)

bu

d)

chicago

26.

a, b = 12, 5

if a + b: print('True')

else: print('False')

a)

True

b)

False

27.

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

a)

Web development

b)

Game Development

c)

AI & ML

d)

All of the above

28.

What is the output of the below program?print(02+0.4==0.6)

a)

True

b)

False

c)

Error

d)

Depends

29.

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

a)

Command Language

b)

High-Level Language

c)

Assembly Language

d)

Machine Language

30.

What is the output?

a)

yes

b)

no

c)

YES

d)

NO