Worksheetspython daily 10 questions 30 seconds
Total questions: 10
Worksheet time: 5mins
In which year was the Python language developed?
1995
1972
1981
1989
Which one of the following is the correct extension of the Python file?
.py
.python
.p
None of these
Which character is used in Python to make a single line comment?
/
//
#
!
What is the method inside the class in python language?
Object
Function
Attribute
Argument
Why does the name of local variables start with an underscore discouraged?
To identify the variable
It confuses the interpreter
It indicates a private variable of a class
None of these
Which of the following is not a keyword in Python language?
val
raise
try
with
Which of the following statements is correct for variable names in Python language?
All variable names must begin with an underscore.
Unlimited length
The variable name length is a maximum of 2.
All of the above
Which of the following declarations is incorrect in python language?
xyzp = 5,000,000
x y z p = 5000 6000 7000 8000
x,y,z,p = 5000, 6000, 7000, 8000
x_y_z_p = 5,000,000
Which of the following precedence order is correct in Python?
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Which one of the following has the highest precedence in the expression?
Division
Subtraction
Power
Parentheses
