Python Test1
Python Test1 Academic Year 2019-20 Semester-3
*Note: You can give test only once. So, be careful.
Email address *
What data type is the object below ? L = [1, 23, ‘hello’, 1]
1 point
Which of these in not a core data type?
1 point
Which is the correct operator for power(X,y)?
1 point
Given the following code in IDLE, what will you see after you type a * b and press Enter? >>> a=7 >>> b=2 >>> a*b
1 point
Which one of the following have the highest precedence in the expression?
1 point
What is answer of this expression, 22 % 3 is?
1 point
Mathematical operations can be performed on a string. State whether true or false.
1 point
Which of the following is an invalid statement?
2 points
Which of the following is not a keyword?
1 point
In order to store values in terms of key and value we use what core data type.
1 point
What will you see if you type a = 3 * 6 and press Enter in IDLE?
1 point
Which of the following cannot be a variable?
1 point
Which of the following is an invalid variable?
1 point
What is the maximum possible length of an identifier?
1 point
What is the output of this expression, 3*1**3?
2 points
What error occurs when you execute? apple = mango
1 point
Operators with the same precedence are evaluated in which manner?
1 point
What is the average value of the code that is executed below ? 1.>>>g1 = 10 2.>>>g2 = 20 3.>>>average = (g1 + g2) / 2
1 point
Is Python case sensitive when dealing with identifiers?
1 point
The expression int(x) implies that the variable x is converted to integer. State whether true or false.
1 point
Which one of these is floor division?
1 point
Following set of commands are executed in shell, what will be the output? 1.>>>str="hello" 2.>>>str[:2] 3.>>>
1 point
All keywords in Python are in
1 point
Submit
reCAPTCHA
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy