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 functions returns a value in degrees, counterclockwise from the horizontal right? |
| A. | heading() |
| B. | degrees() |
| C. | position() |
| D. | window_height() |
| Answer» B. degrees() | |
| 2. |
The command used to set only the x coordinate of the turtle at 45 units is: |
| A. | reset(45) |
| B. | setx(45) |
| C. | xset(45) |
| D. | xreset(45) |
| Answer» C. xset(45) | |
| 3. |
In which direction is the turtle pointed by default? |
| A. | North |
| B. | South |
| C. | East |
| D. | West |
| Answer» D. West | |
| 4. |
Which of the following functions can be used to make the arrow black? |
| A. | turtle.color(0,1,0) |
| B. | turtle.color(1,0,0) |
| C. | turtle.color(0,0,1) |
| D. | turtle.color(0,0,0) |
| Answer» E. | |