My Report

Python Programming Practice Test 1


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. What is the result of cmp(3, 1)?

2. Which of the following is incorrect?

3. What is the result of round(0.5) - round(-0.5)?

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

5. Which of the following is not a complex number?

6. Which of the following expressions can be used to multiply a given number ‘a’ by 4?

7. It is not possible for the two’s complement value to be equal to the original value in any case.

8. Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’?

9. Which of the following is invalid?

10. Which of the following is the truncation division operator?


 

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.