PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
Python-practice-set-4
13
Python Practice Set 4
Python Practice Set 1
Python Practice Set 2
Python Practice Set 3
Python Practice Set 4
Python Practice Set 5
Python Practice Set 6
Python Practice Set 7
Python Practice Set 8
Python Practice Set 9
Python Practice Set 4
1.
How can we change the size of Numpy array in python?
Shape()
reshape()
ord()
change()
2.
True = False, what will be the output if the value of True is printed?
False
True = False
SyntaxError: cannot assign to True
None of These
3.
The examination of step by step program is called Stepping?
True
False
4.
The keys of the dictionary can be accessed using values?
True
False
5.
What is data type (1)?
Tuple
Integer
List
Both tuple and integer
6.
Docstring is a string literal which is represented by triple quotes to provide the specification of some program element?
True
False
7.
Which function is used to convert integer value to string?
intTostr()
IntToString()
str()
string()
8.
What is the function of PIP in python?
Helps to run code
Manages the library
converts code into bytecode
takes input from console
9.
Correct output statement. if print(100/0)
10
100
ZeroDivisionError
infinite
10.
Which function is used to get the ASCII value of a character?
ord()
getAscii()
chr()
getAsc()
11.
Which function is used to convert a valid ASCII number to a character?
ord()
getChar()
getCharacter()
chr()
12.
What is the equality operator in python?
===
==
!=
Both b and c
13.
When a function is defined inside a class, it is called an object.
True
False
14.
zeros() method creates an array and by default fills all values with 1?
True
False
15.
eye() method is available in __________?
django
numpy
A और B
flask
16.
The numpy library was created in the year _________?
2001
2003
2005
2000
17.
When a function returns multiple values, it is in the form of____________
tuple
array
set
list
18.
A package is a __________, which contains multiple _________?
none of the below
library, namespace
module, namespace
namespace, module
19.
[::-1] reverses array or sequence?
True
False
20.
Can we use return keyword with lamda() function?
True
False
21.
To create a class in python, _______ keyword is used?
createClass
Class
New
None of the above
22.
Does _________ overload the + operator?
__add()__
__sum()__
_add()_
_sum()_
23.
A namespace is a container where the object is mapped to ________?
variable
class
name
function
24.
The seek() method returns the current position of the file object.
True
False
25.
________ is a NULL statement in Python?
eval
assert
pass
Null statement
Submitting..
Welcome To PrimeGyan
Start test
Download