MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following expressions is an example of type conversion? |
| A. | 4.0 + float(3) |
| B. | 5.3 + 6.3 |
| C. | 5.0 + 3 |
| D. | 3 + 7 |
| Answer» B. 5.3 + 6.3 | |
| 2. |
Which among the following list of operators has the highest precedence? |
| A. | <<, >> |
| B. | ** |
| C. | | |
| D. | %View Answer |
| Answer» C. | | |
| 3. |
Which of the following expressions involves coercion when evaluated in Python? |
| A. | 4.7 – 1.5 |
| B. | 7.9 * 6.3 |
| C. | 1.7 % 2 |
| D. | 3.4 + 4.6 |
| Answer» D. 3.4 + 4.6 | |
| 4. |
What will be the value of X in the following Python expression? |
| A. | 30 |
| B. | 30.8 |
| C. | 28.4 |
| D. | 27.2View Answer |
| Answer» E. | |