NEW
Font size
WorksheetsQuiz 1
Total questions: 10
Worksheet time: 5mins
Which of the following represents a distinctly identifiable entity in the real world?
A class
An Object
A method
A data field
Which of the following represents a template, blueprint, or contract that defines objects of the same type?
A class
An object
A method
A data field
Which of the following is an invalid statement?
abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000
Which of the following statements is most accurate for the declaration x = Circle()?
x contains an int value.
x contains an object of the Circle type.
x contains a reference to a Circle object.
You can assign an int value to x.
What is the maximum possible length of an identifier?
32 characters
64 characters
128 characters
None of the above
Which statement is correct....?
List is mutable && Tuple is immutable
List is immutable && Tuple is mutable
Both immutable
Both mutable
What is the output of the given python code?
<class 'int'>
<class 'complex'>
<class 'float'>
<class 'None'>
Find the Output
>>> print(chr(ord('b')+1))
a+b
b+1
c
99
Find the Output
s = "\t\tWelcome\n"
print(s.strip())
\t\tWelcome\n
\t\tWelcome
Welcome
None
The format function, when applied on a string returns
list
bool
int
str
