JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Python Programming Basics : Quiz3
Sign in to Google
to save your progress.
Learn more
* Indicates required question
1. What will be the output of 64%5 ?
*
1 point
4
0
3
2
2. Which one of the following is correct way of declaring and initializing a variable, z with value 2?
1 point
int z ,z=2
int z=2
Declare z=2
z=2
Clear selection
3. What will be the value of the average for the following python code?
g1=70
g2=80
average=(g1+g2)/2
1 point
75
75.0
75.1
75.2
Clear selection
4. What will be the output of statement 2**2**2**2 ?
1 point
16
65536
32768
256
Clear selection
5. Which of the following do not belong to python numbers?
1 point
Decimal
Integer
Float
Complex Number
Clear selection
6. Which of the following is an incorrect variable name?
1 point
sum
SUM
2SUM
_sum
Clear selection
7.
What will be the output of the following expression?
5*1**5
1 point
25
20
5
10
Clear selection
8. Which of the following is an invalid statement?
1 point
xyz = 5,000
x,y,z = 5000,6000,7000
x y z = 5000
x_y_z= 5000
Clear selection
9. Which symbol is used to give comments in Python?
1 point
#
^
?
&
Clear selection
10. Which of these in not a core python data type?
1 point
Lists
Dictionary
Tuples
Class
Clear selection
1 point
Option 1
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms