➤ How to Code a Game
➤ Array Programs in Java
➤ Java Inline Thread Creation
➤ Java Custom Exception
➤ Hibernate vs JDBC
➤ Object Relational Mapping
➤ Check Oracle DB Size
➤ Check Oracle DB Version
➤ Generation of Computers
➤ XML Pros & Cons
➤ Git Analytics & Its Uses
➤ Top Skills for Cloud Professional
➤ How to Hire Best Candidates
➤ Scrum Master Roles & Work
➤ CyberSecurity in Python
➤ Protect from Cyber-Attack
➤ Solve App Development Challenges
➤ Top Chrome Extensions for Twitch Users
➤ Mistakes That Can Ruin Your Test Metric Program
Q1) What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
a) i,ii,iii,iv,v,vi
b) ii,i,iii,iv,v,vi
c) ii,i,iv,iii,v,vi
d) i,ii,iii,iv,vi,v
View Answer
Answer:- a) i,ii,iii,iv,v,viQ2) 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
View Answer
Answer:- a) Left to RightQ3) Which function overloads the >> operator?
a) ge()
b) gt()
c) more()
d) None of the above
View Answer
Answer:- d) None of the aboveQ4) Which one of these is floor division?
a) /
b) //
c) %
d) None of the mentioned
View Answer
Answer:- b) //Q5) Which operator is overloaded by the or() function?
a) |
b) ||
c) %
d) None of these
View Answer
Answer:- d) None of theseQ6) Which operator is overloaded by the or() function?
a) |
b) ||
c) /
d) //
View Answer
Answer:- a) |Q7) Which type of operator is not supported in python?
a) a++
b) ++a
c) a–
d) All of the above
View Answer
Answer:- d) All of the aboveQ8) Which one of the following has the highest precedence in the expression?
a) Exponential
b) Addition
c) Multiplication
d) Parentheses
View Answer
Answer:- d) ParenthesesQ9) 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
View Answer
Answer:- a) Addition and SubtractionQ10) What is the answer to this expression, 22 % 3 is?
a) 7
b) 1
c) 0
d) 5
View Answer
Answer:- b) 1Q11) Given a function that does not return any value, what value is shown when executed at the shell?
a) void
b) int
c) bool
d) None
View Answer
Answer:- d) NoneAlso See:- MCQ on Operators in Python– 2