NEW
Font size
WorksheetsCBSE Class 12 Computer Science Quiz
Total questions: 10
Worksheet time: 5mins
What error occurs when you execute the following Python code snippet? apple = mango
NameError
TypeError
SyntaxError
ValueError
Which of the following can be used as valid variable identifier(s) in Python?
Que$tion
Salute
global
total
Which of the following forces an expression to be converted into a specific type?
Immutable type casting
Implicit type casting
Mutable type casting
Explicit type casting
If l=[11,22,33,44], then the output of print(len(l)) will be
4
3
6
8
In Python function, the function calling another function is known as ___________ and the function being called is known as ____________
caller, called
main, keyword
executer, execute
called, caller
pow( ) function belongs to which library?
maths
random
string
math
Identify the module to which the following function load() belongs to?
math
random
pickle
sys
Which of the following is a valid function name?
All of the above
start-game()
start game()
Start_game()
The variable declared inside the function is called a variable
local
external
global
none of the above
To read the entire remaining contents of the file as a string from a file object myfile, we use
myfile.readlines()
myfile.readline()
myfile.read(2)
myfile.read()
