End Semester Examination On 13/01/2022: Name of The Student
End Semester Examination On 13/01/2022: Name of The Student
Draft saved
* Required
Dipanjan Dhar
Section *
Roll No. *
09
Enrollment No. *
12021002029078
Contact No *
9903153787
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 1/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
Email Id *
float
str
int
bool
Clear selection
true
bool
false
str
Clear selection
34
1007
1173
Nome of these
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 2/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
10101110
10101111
10010000
None of these
Clear selection
101
011
110
111
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 3/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
Clear selection
0111101
0111001
01100001
1001001
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 4/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
8)What will be the output of the following Python statement? >>>"Welcome to "+"
UEMK"
Welcome to UEMK
WelcometoUEMK
Welcome toUEMK
None of these
Clear selection
PYTHON PROGRAMMING
NONE OF THESE
Clear selection
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 5/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
11) What will be the output of the following Python code snippet? >>>d =
{"john":40, "peter":45} >>>print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
Clear selection
10
Clear selection
13) If List=[10,20,30,40,50] then after executing List[2]=35 the List will result as
____________
[35,10,20,30,40,50]
[10,20,30,40,50,35]
[10,20,35,40,50]
[10,35,30,40,50]
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 6/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
[32,17,23,41,10]
[17,23,41,10,32]
[10,17,23,32,41]
[41,32,23,17,10]
Clear selection
A list is mutable
A tuple is immutable.
Clear selection
LIFE
str1
STR1
None of these
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 7/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
String is immutable.
capitalize() function in string is used to return a string by converting the whole given
string into uppercase.
lower() function in string is used to return a string by converting the whole given
string into lowercase.
None of these.
Clear selection
18) If str1="Stack of books" , What will be the output of the code print(len(str1))
13
15
14
16
Clear selection
Luck
15
Error
16
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 8/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
Error
None of These
Clear selection
21)S = [1, 23, 'hello', 1], State the data type of this
list
dictionary
array
tuple
Clear selection
27
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 9/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
abcd
aBCD
ABCD
abcD
Clear selection
3.56
4.46
4.57
None of these
Clear selection
False
True
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 10/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
129
11
Clear selection
int , int
str, str
int, str
str, int
Clear selection
WelcomeWelcome
Welcome Welcome
Error
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 11/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
[2,2,3]
(2,2,3)
(1,2,3)
Error
Clear selection
Pointer
Loop
Dynamic typing
Above all
Clear selection
define
fun
def
function
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 12/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
32) Which of the following items are present in the function header? *
function name
parameter list
return value
33) If return statement is not used inside the function, the function will return: *
None
Null
Arbitrary value
C) Both A and B
D) None
Both A and B
None
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 13/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
def fun(a = 2, b = 3, c)
def fun(a = 2, b, c = 3)
def fun(a, b = 2, c = 3)
def fun(a, b, c = 3, d)
37) In which part of memory does the system stores the parameter and local
variables of function call? *
heap
stack
def function_name():
declare function_name():
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 14/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
39) You can also create your own functions, these functions are called? *
built-in functions
user-defined functions
py function
::
Required arguments
Keyword arguments
Default arguments
Variable-length arguments
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 15/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
4 is maximum
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 16/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
for loop
while loop
do-while loop
Dictionary
Tuple
Structure
List
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 17/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
Key
Brackets
Indentation
Space
49. Which of the following Python statements will result in the output: 6? *
A[2][1]
A[1][2]
A[3][2]
A[2][3]
{1, 2, 3}
{}
[1, 2, 3]
(1, 2, 3)
This form was created inside of University of Engineering & Management, Jaipur. Report Abuse
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 18/19
1/13/22, 10:57 AM End Semester Examination on 13/01/2022
Forms
https://docs.google.com/forms/d/e/1FAIpQLSfhj2SwyVnLU7QJnllSuQYMzy0T2Y4aMjyiU9WdxDMuS4-pbg/viewform 19/19