Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer
Q. Operators with the same precedence are evaluated in which manner?
a. left to right
b. right to left
c. can’t say
d. none of the mentioned
Q. Which one of the following has the same precedence level?
a. addition and subtraction
b. multiplication, division and addition
c. multiplication, division, addition and subtraction
d. addition and multiplication
Q. Which one of the following has the highest precedence in the expression?
a. exponential
b. addition
c. multiplication
d. parentheses
Q. Given a function that does not return any value, What value is thrown by default when executed in shell.
a. int
b. bool
c. void
d. none
Q. Which of the following will run without errors?
a. round(45.8)
b. round(6352.898,2,5)
c. round()
d. round(7463.123,2,1)
Q. >>>example("hello")
a. indentation error
b. cannot perform mathematical operation on strings
c. hello2
d. hello2hello2
Q. In order to store values in terms of key and value we use what core data type.
a. list
b. tuple
c. class
d. dictionary