What will be the output of the following code?
a=((0,2,3,4)[1:-2]) print(a)
(3,)
(2, )
(1,)
(0,)
Diamond
Oval
square
Both A and B
raise
try
val
with
|
&
^
!
0.0
0
1.0
1
11
10
It is used for object serialization
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
100
-100
-101
101
dictionary()
set()
tuple()
list()
9
7
6
.mod
.module
.py
.python
Define keyword in python
Define variable in python
Define function in python
All of the above
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
None of these
What will be the output of the following Code?
def sum(x): return x*x print(sum(4))
16
4
8
64
Write
Read
Append
Read and Write Both
12.5
9.8
33
45
35
30
[4,6]
[1, 2, 3, 4]
Error in Code