Exam Study Guide Version 2
Questions with Correct Answers
loop - ANSWERSa section of code that will iterate or repeat over and over again.
control variable - ANSWERSwhat helps to "control" the entire while loop.
count variable - ANSWERSVariable used to control how many times a loop runs or
keep track of something in our loops.
sum variable - ANSWERSVariable that keeps track of things each time through the
loop, and can be used to add up a set of numbers.
range() function - ANSWERScreates a sequence of numbers based on a set of
parameters.
for loop - ANSWERSa replacement for a while loop that uses a count variable.
simplegui - ANSWERSlets you create programs with graphical user interface
RGB - ANSWERSthe RGB color model uses varying intensities of (R)ed, (G)reen, and
(B)lue light are added together in to reproduce a broad array of colors.
hexadecimal - ANSWERSA base-16 number system that uses sixteen distinct symbols
0-9 and A-F to represent numbers from 0 to 15.
draw_text - ANSWERSa method that will allow us to write text on our frame that we
generate.
draw_line - ANSWERSFunction that draws a line on the canvas. canvas.draw_line((x1,
y1), (x2, y2), size, color)
draw_polygon - ANSWERScanvas.draw_polygon([(100, 200), (200, 0), (300, 100)], 2,
"blue") Function that draws a polygon on the canvas.
draw_circle - ANSWERSFunction that draws a circle on the screen.
Domain Name System (DNS) - ANSWERSThe system by which internet domain names
and addresses are tracked and regulated.