WorksheetsPython Programming - Test 1
Total questions: 20
Worksheet time: 10mins
Which of the following character is used to give comments in Python?
//
#
!
/
What will be the output?
name = 'Python'
print (type(name))
char
'Python'
str
Error
What will be the output?
str1 = "SGBIT"
print (str1 [2])
S
G
B
I
What will be the output?
d = 10 < 11
print (d)
10
11
True
False
Identify the arithmetic operator which is used to calculate exponential.
*
%
!
**
List is declared using _______.
{ }
[ ]
( )
< >
What will be the output?
print (13/6)?
2
2.1666
2.5
Error
What will be the output?
str1 = "Deep Learning"
print (len(str1))
11
12
13
Out of Range Error
What will be the output?
a = 25
b = 4
print (a%b)
1
6
6.2
1.5
Unsupervised Learning deals with ---------
Labelled Data
Unlabelled Data
Feedbacks
Mistakes
Which of the following features are related to Python programming?
1. Dynamically typed
2. Python works only on Windows
3. Portable
1 and 2
2 and 3
1 and 3
All
IDE stands for ---------------------------
(a)
_________ algorithm try to find the best ways to earn the greatest reward.
Supervised Learning
Unsupervised Learning
Reinforcement
Learning
Both Supervised Learning and Unsupervised Learning
What will be the output ?
print (type(5 // 2))
int
float
2
2.5
What will be the output ?
a1 = 15
b1 = 0
print (a1 ** b1)
15
150
0
1
OpenCV stands for
Open Computer Voltage
Open Code Via
Open Source Computer Vision
Open Code Vibration
Python programs written in Jupyter Notebook are saved with ------- extenstion.
.python
.ipynb
.pynb
.nb
What will be the output ?
s1 = "Hi"
s2 = "Rajesh"
print (s1 + s2)
Hi Rajesh
Hi
Rajesh
HiRajesh
Error
What will be the output ?
a1 = 15
b1 = 3
print (a1 % b1)
5
45
0
18
What will be the output ?
a1 = 26
b1 = 62
print (a1 != b1)
1
0
True
False
