➤ 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) In the Python statement x = a + 3 – b:
a and b are ____.
a + 3 – b is ____.
a) operators, a statement
b) operands, an equation
c) operands, an expression
d) terms, a group
View Answer
Answer:- c) operands, an expressionQ2) Which of the following operators has the highest precedence?
a) +
b) *
c) &
d) not
View Answer
Answer:- b) *Q3) Which is the correct operator for power(XY)?
a) X^Y
b) X^^Y
c) X**Y
d) None of the mentioned
View Answer
Answer:- c) X**YQ4) What is the output of this expression, 53 * 2?
a) 45
b) 30
c) 16
d) None of these
View Answer
Answer:- a) 45Q5) The expression Int(x) implies that the variable x is converted to an integer.
a) True
b) False
View Answer
Answer:- a) TrueQ6) Mathematical operations can be performed on a string.
a) True
b) False
View Answer
Answer:- b) FalseQ7) Bitwise shift operators (<<, >>) have higher precedence than the Bitwise And(&) operator.
a) False
b) True
View Answer
Answer:- b) TrueQ8) What is the value of the expression 50/5?
a) 5
b) 5.0
c) Error
View Answer
Answer:- b) 5.0Q9) What is the output of the given below program?
x = 5
y = x -= 3
print(y)
a) 8
b) 2
c) None
d) Error
View Answer
Answer:- d) ErrorQ10) What is the output of the given below program?
a = 25
b = 20
print(a and b)
a) 25
b) 20
c) 45
d) Error
View Answer
Answer:- b) 20Also See:- Python String MCQ