Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP SCI TEST EXAM QUESTIONS AND ANSWERS LATEST UPDATE

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
02-12-2024
Written in
2024/2025

COMP SCI TEST EXAM QUESTIONS AND ANSWERS LATEST UPDATE When using the circle() command, what value do we put inside the parentheses? The radius of the circle When Tracy is facing right, from what location does she start drawing her circle? the bottom of the circle Where does Tracy always start in the grid world? At the (0,0) coordinate in the middle of the canvas What are the dimensions of Tracy's world? 400 pixels x 400 pixels Which commands would move Tracy forward 100 pixels?A. forward(100)B. backward(-100)C. forward(-100) A and B How far does Tracy need to move from the starting position to reach the right side of the canvas? 200 pixels If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write penup() forward(100) Tracy always starts facing which direction? East If Tracy is facing right, which of the following commands can be used to turn her to face up?A. left(90)B. turn(up)C. right(-90)D. setposition(90) A and C If Tracy started facing right, which direction would she be facing after we ran the following code? up Which of the following is NOT a reason for loops are useful when writing code? Loops let us make shapes of multiple sizes The following loop draws 3 circles on the screen. If I wanted to alter this loop to draw 10 circles, how many lines would my code be? for i in range(3): circle(25) forward(50) 3 lines If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas? 8 times Which lines of the code below will be repeated 4 times?

Show more Read less
Institution
Course

Content preview

COMP SCI TEST EXAM QUESTIONS AND ANSWERS
LATEST UPDATE

When using the circle() command, what value do we put inside the parentheses?
The radius of the circle
When Tracy is facing right, from what location does she start drawing her circle?
the bottom of the circle
Where does Tracy always start in the grid world?
At the (0,0) coordinate in the middle of the canvas
What are the dimensions of Tracy's world?
400 pixels x 400 pixels
Which commands would move Tracy forward 100 pixels?A. forward(100)B.
backward(-100)C. forward(-100)
A and B
How far does Tracy need to move from the starting position to reach the right
side of the canvas?
200 pixels
If you want Tracy to move forward 100 pixels without making a line, what set of
commands should you write
penup() forward(100)
Tracy always starts facing which direction?
East
If Tracy is facing right, which of the following commands can be used to turn her
to face up?A. left(90)B. turn(up)C. right(-90)D. setposition(90)
A and C
If Tracy started facing right, which direction would she be facing after we ran the
following code?
up
Which of the following is NOT a reason for loops are useful when writing code?
Loops let us make shapes of multiple sizes
The following loop draws 3 circles on the screen. If I wanted to alter this loop to
draw 10 circles, how many lines would my code be?

for i in range(3):
circle(25)
forward(50)
3 lines
If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how
many times will this code need to be repeated to have Tracy reach the right edge
of the canvas?
8 times
Which lines of the code below will be repeated 4 times?

, penup()
for i in range(4):
pendown()
circle(25)
forward(50)
backward(200)
3, 4, and 5
Why do certain words change color in Python?
To show that they are recognized as key words
If I use the command right(180), which way will Tracy turn?
She will turn around
The setposition() command moves Tracy to a coordinate and:
does not turn her
If you wanted Tracy to complete her command immediately, which speed value
would you use?
0
If you want three circles to be drawn next to each other (as seen in the image
below), after drawing the first circle, how far would you need to move Tracy
before drawing the next circle?
The circle's diameter
Answered
Comments are:
Written for humans to read and understand
What symbol is used at the beginning of an in-line comment?
#
What punctuation is needed to begin a multi-line comment?
"""
Which of the names below follow all naming rules?
make_square
If I am creating a function that is going to draw 2 squares, which of the following
would be the best name option?
draw_squares
Which of the following is NOT a way functions make our code more readable?
Each function only contains one command
What two things must be included in your function definition?
A function name and commands to be performed
Which is the proper way to call the function three_circles?
three_circles()
How would I change Tracy's trail to a yellow line with a thickness of 10 pixels?
color("yellow") pensize(10)
What is true of Tracy's color command?
The color name must be in quotation marks
What is the correct way to draw a circle that is filled in?
begin_fill()
circle(20)
end_fill()

Written for

Course

Document information

Uploaded on
December 2, 2024
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TopGradeSolutions Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
92
Member since
2 year
Number of followers
9
Documents
13175
Last sold
2 days ago
TOPGRADESOLUTIONS

Here we offer revised study materials to elevate your educational outcomes. We have verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. We are dedicated to offering you the best services and you are encouraged to inquire further assistance from our end if need be. Having a wide knowledge in Nursing, trust us to take care of your Academic materials and your remaining duty will just be to Excel. Remember to give us a review, it is key for us to understand our clients satisfaction. We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
4.9

171 reviews

5
159
4
7
3
4
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions