Computer Programming Python Qs (and answers)
How would I tell Tracy to move forward 100 pixels? correct answers forward(100) When Tracy is facing right, from what location does she start drawing her circle? correct answers The bottom of the circle When using the circle() command, what value do we put inside the parentheses? correct answers The radius of the circle How far does Tracy need to move from the starting position to reach the right side of the canvas? correct answers 200 pixels If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write? correct answers penup() forward(100) What are the dimensions of Tracy's world? correct answers 400 x 400 pixels Which commands would move Tracy forward 100 pixels? I. forward(100) II. backward(-100) III. forward(-100) correct answers I and II Where does Tracy always start in the grid world? correct answers At the (0,0) coordinate in the middle of the canvas If Tracy started facing right, which direction would she be facing after we ran the following code? 1 left(90) 2 left(90) 3 right(90) correct answers Up Tracy always starts facing which direction? correct answers East If Tracy is facing right, which of the following commands can be used to turn her to face up? I. left(90) II. turn(up) III. right(-90) IV. setposition(90) correct answers I and II Which lines of the code below will be repeated 4 times? 1 penup() 2 for i in range(4): 3 pendown()
Document information
- Uploaded on
- February 14, 2023
- Number of pages
- 5
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers