
Tech Quiz - TECHNOHOLICS2K21
Authored by Arvapally Saatvik
Other
University
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is use for function in python?
define
fun
def
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum possible length of an identifier in python?
16
32
64
none of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To shuffle the list (say list1) what function do we use in python?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?