NEW
Font size
WorksheetsTech Quiz - TECHNOHOLICS2K21
Total questions: 20
Worksheet time: 10mins
Which keyword is use for function in python?
define
fun
def
function
In which part of python memory does the system stores the parameter and local variables of function call?
heap
stack
Uninitialized data segment
none of the above
What is the output of this python code?
a, b=1,0
a=a^b
b=a^b
a=a^b
print(a)
0
1
2
runtime error
What is the maximum possible length of an identifier in python?
16
32
64
none of the above
To shuffle the list (say list1) what function do we use in python?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
What will be the output of the following Python code? A=(1,2,3,4) del(a[2])
(1,2,4)
(1,3,4)
(3,4)
error as tuple is immutable
Given a python function that does not return any value, what value is thrown by default when executed in shell.
int
bool
void
none of the above
What will be the output of the following Python statement?
>>>"abcd"[2:]
a
ab
cd
dc
What arithmetic operators cannot be used with strings in python?
+
*
-
all the above
Which of the following python functions does not necessarily accept only iterables as arguments?
all()
max()
chr()
enumerate()
Iam is an open platform for developing, shipping, and running applications. I enable you to separate your applications from your infrastructure with Containers so you can deliver software quickly. Who Am I?
Hypervisor
Docker
Apache Mesos
Hadoop
The Term Block Chain Working Design is based on a Data structure with same Design. Who Am I?
Stack
Queue
Double Linked List
Hashing
I save your computer's state to the hard drive, and shuts down completely. Who am I?
Sleep
Shutdown
Hibernate
Virtualization
Which device has the limitation that we can only read it but cannot modify or erase it?
Floppy Disk
Compact Disk
Hard Disk
Tape Drive
I have a Pen drive size of 64gb (Free space), I tried to copy 13gb file but it shows “Error This file is too large “This is because of?
Pen drive format is “exFAT”
Pen drive format is “FAT32”
Pen drive format is “NTFS”
Pen drive format is “NULL”
Formula of Tower of Hanoi?
n +1
2^n -1
2n-i
n-1
A ___________ doesn't have room for any more nodes—unless we increase the tree's height.
Complete Binary Tree
Full Binary Tree
Balanced Binary Tree
Perfect Binary Tree
