Font size
WorksheetsBeginners_Assessment
Total questions: 25
Worksheet time: 13mins
Following symbol is used to write the multiline comment in python...
#
//
"""
$
Variables are..
Data types
Operators
Storage devices
Constants
Which among these is not a dtype
int
complex
regex
float
Dtype of an input statement is always..
Sensor
int
str
password
** operator returns
Home
Quotient
Remainder
Exponential
Result of this mnemonic : "hello_world".islower()
Hello World
hello_world
hello world
True
What is the datatype of following?
"16"
(a)
What is the datatype of the following?
False
(a)
What is the datatype of the following?
a = "15","16"
int
double
tuple
str
Error
What is the datatype of the following
b = (16)
(a)
True or False :
We can add multiple data to a list at once
True
False
Neither True Nor False
Who cares!
True or False :
Tuple can be varied
List can be constant
True
False
I'm sleepy!!
True or False :
Set is indexed
True
set is a game
False
It doesn't matter
True or False :
Both dictionary and set has same brackets
dictionary is a book
True
False
Depends on list
The following method is used to add data to a set
append
extend
add
expand
The following method is used to add data in a particular index of list
extend
insert
append
index
The following method is used to delete data from a list
remove
del
discard
pop
One of this is not possible with if-else
if ladder
nested if-else
if-elif-else-elif
if
When multiple if conditions are true, then
Only the first if will be executed
All the if will be executed
Else will be executed
Program raises an error
True or False :
while loop should always be True to get executed
True
False
for loop is better than while loop
Maybe
When the following command is activated, program will skip the current iteration and go back to the top
(a)
True or False :
A function name can have numbers
False
A function is celebrated
True
Function means food!!
Following braces are used to access the data
()
{}
[]
||
True or False :
for loop can iterate over a string
True
False
while loop can iterate over list
range function should be used
One of the following is not a part of functions
return
parameters
kwargs
lambda
