My Report

Python Basic Online Test – 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which one of the following has the highest precedence in the expression?

2. Which is the correct operator for power(xy)?

3. What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction

4. What is the answer to this expression, 22 % 3 is?

5. The expression Int(x) implies that the variable x is converted to integer.

6. What is the output of this expression, 3*1**3?

7. Mathematical operations can be performed on a string.

8. Which one of the following has the same precedence level?

9. Operators with the same precedence are evaluated in which manner?

10. Which one of these is floor division?


 

Start practicing “1000 MCQs on Python”, and once you are ready, you can take tests on all topics by attempting our “Python Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.