NEW
Font size
WorksheetsBridge Course - Screening Test
Total questions: 30
Worksheet time: 15mins
Which type of Programming does Python support?
Object Oriented Programming
Structured Programming
Functional Programming
All of the above
Which of the following is the correct extension of the Python file?
.python
.pl
.py
.pic
Is Python code compiled or interpreted?
Python code is both compiled and interpreted
Python code is neither compiled nor interpreted
Python code is only compiled
Python code is only interpreted
What will be the value of the following Python expression?
4 + 3 % 5
7
2
4
1
Which keyword is used for function in Python language?
fun
def
function
define
Which of the following character is used to give single-line comments in Python?
//
#
!
/*
What is the order of precedence in python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
512, 64, 512
512, 512, 512
64, 512, 64
64, 64, 64
Which of the following functions is a built-in function in python?
factorial()
print()
seed()
sqrt()
What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
-4
-3
2
False
Which of the following is not a core data type in Python programming?
Tuples
Lists
Class
Dictionary
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
56.236
56.23
56.0000
56.24
What will be the output of the following Python function?
len(["hello",2, 4, 6])
Error
6
4
3
The value of the Python expression given below would be:
4+2**5//10
77
0
3
7
Which arithmetic operators can we NOT use with strings?
-
+
*
All the Above
Is this code valid in Python?
>>> m=6,7,8,9
>>> m
No, many values will unpack
Yes, 6 will be printed
Yes, (6,7,8,9) will be printed
Yes, [6,7,8,9] will be printed
Find the invalid variable among the following:
1st_string
my_string_1
_
foo
Which one of these is incorrect?
float(‘nan’)
float(7.00)
float(’12+34′)
float(’56’+’78’)
What do we use to define a block of code in Python language?
Key
Brackets
Indentation
None of these
Which of the following operators is the correct option for power(ab)?
a^b
a**b
a^^b
a^*b
All keywords in Python are in _________
Capitalized
Uppercase
Lower case
Either capitalized or lower case
What will be the output of the following Python statement?
"a"+"bc"
bc
abc
a
bca
What will be the output of the following Python code?print("abc.DEF". capitalize())
Abc.def
abc.def
ABC.DEF
Abc.Def
19%2 in python
2
17
1
0
What will be the output?s='cppbuzz chicago'
print(s[3:5])
buzzc
pbuzz
bu
chicago
a, b = 12, 5
if a + b: print('True')
else: print('False')
True
False
Amongst which of the following is / are the application areas of Python programming?
Web development
Game Development
AI & ML
All of the above
What is the output of the below program?print(02+0.4==0.6)
True
False
Error
Depends
The language understood by a computer with out translation is called :
Command Language
High-Level Language
Assembly Language
Machine Language
What is the output?
yes
no
YES
NO
