Control unit
Central Processing unit
Arithmetic and language unit
Monitor
seed()
sqrt()
factorial()
print()
ndarray
narray
nd_array
darray
Batter Programming
Optimized Coding
Systematic testing
All of the above
list(array)
list.array
array.list
None of these
A built-in Python function
A one-line anonymous function
Lambda is a function in python but user can not use it.
None of the above
closed
softspace
rename
None of the above.
It is used for object serialization
It is used for object deserialization
All of the mentioned
None of the mentioned
Python Visual Machine
Python Visual Mode
Python Virtual Machine
Python Virtual Mode
(1,3)
(2,5)
(2,1)
(4,8)
range(0,5)
range(1,5)
range(1,4)
range(0,4)
Rectangle
Oval
Parallelogram
Diamond
Yes
No
Can't say
Hello
949227
True
"2'
11
8
1
0
Comma Space Value
Comma Separated Value
Common spaced Value
Compact Structure View
Low, Enclosing, Global and Built-in
Local, Enclosing, Global and Built-in
Local, Ending, Global and Built-in
Light, Emitting, Global and Built-in
What will be the output of the following Code ?
x=10, y=3 print(divmod(x,y))
(3,1)
(4,2)
(5,7)
Return the name of the user logged in to the terminal
Return the email of the user logged in to the terminal
Return the login time when user logged in to the terminal
axes
degree
cordinate
points
What will be the output of the following code ?
st='abcdefg' print(st[2:5])
'cde'
'abc'
'efg'
Keywords
Identifires
Token
Statement
End of List
End of Line
End of Loop
End of Language
Type Casting
Data Transformation
Type Conversion
Variable Shifting
f.read(5)
f.read()=5
f.readline(5)
f.readlines(5)
15
150
200
10
float
integer
string
boolean
False Code
Representation of Code
Both A and B
Comments
Expressions
Tokens
Flow of control
find the output of following code:
def add(a,b): return(a+b) print(add(3,4))
4
7
9
import math print(math.fabs(-3.4))
-3.4
3.4
4.3
3
what will the output of following code
my_string="Hello,world" print(my_string[-6:-1])
',worl'
'worl'
'world'
'oworld'
No Operation
No Action
Null Statement
Placeholder
What will be the output of following code
import math print(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
+
-
*
( )
for
while
do while
Repeating a process in a loop
Calling a function from within itself
Using a loop to iterate over elements
Breaking down a problem into smaller subproblems
Tells you the current position within the file.
Tells the size of file you read
Tells the start position of the file.
Tells the end position of the file.
32
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a
csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
211
216
1024
512
20.0
20
40.0
40
_py_
var
_var
try
What does the following code will print ?
x=5 if x>3: print("Hello")
Hello Hello
nothing
Hello Hello Hello Hello Hello
27.2
29.0
14.9
12.3
6
4.0
8.0
What will be the output of the following ?
import math print(math.fact(5))
120
25
1,2,3,4,5
Error
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
r
rb
w
r+
The truncated decimal part of a number
The rounded integer value of a number.
The truncated integer value of a number.
The floor (largest integer less than or equal to the number).
file_object=open(file_name,mode)
open(file_object,file_name,mode)
file_open(file_object,file_name,mode)
file_object=file_open(file_name,mode)
pop()
delete()
remove_last()
delete_last()
-9
-6
What will be the output of the following Python code?
>>>max("what are you")
what
y
a
Break stops the execution of entire program
Break halts the execution and forces the control out of the loop
Break forces the control out of the loop and starts the execution of next iteration
Break halts the execution of the loop for certain time frame
White Space
,
e
S
ab
rw
w+
NASM
TASM
GAS
ASM
HTTP
urllib
socket
header
add()
rhombus()
home()
A*A=8
A*=8
A*8=A
A=*8
import numpy as np arr=np.array([1,2,3]) print(arr.shape)
(3,)
(4,)
Input/Output
Decision
Arithmetic instruction
Start/Stop
fun
function
def
define
numpy.maximum()
numpy.arraymax()
numpy.amax()
numpy.big()
100
128
256
No Limit
giga bytes
mega bytes
byte
bits
What will be the output of the following code?
list1=[2,33,222,14,25] print(list1[-1])
2
33
14
a=((0,2,3,4)[1:-2]) print(a)
(2, )
(1,)
(0,)
square
raise
val
with
|
&
^
!
0.0
1.0
It is used for object de-serialization
change the string value to number
extract the list element in simple variable
list.contains(value)
list.index(value)
value in list
Yes, list mutable and tuple immutable
No, list and tuple both are mutable
No, list and tuple both are in immutable
No, just opposite, list immutable and tuple mutable
Preferred Installer Program
Post Installer Program
Pre Installer Program
Python Installer Program
-100
-101
101
dictionary()
set()
tuple()
list()
.mod
.module
.py
.python
Define keyword in python
Define variable in python
Define function in python
sets the file's current position at the offset
sets the file's previous position at the offset
sets the file's current position within the file
What will be the output of the following Code?
def sum(x): return x*x print(sum(4))
16
64
Write
Read
Append
Read and Write Both
12.5
9.8
45
35
30
[4,6]
[1, 2, 3, 4]
Error in Code
C
C++
JAVA
PHP
False
Web development
Machine learning and scientific computing
Game development
Database management
import numpy as np
import numPy
from python import numpy
using numpy
List
Array
Matrix
Set
numpy.array(list)
numpy.array(list, dtype=float)
Both a and b
numpy.linspace()
numpy.range()
numpy.arrange()
numpy.spaceline()