stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Science Quiz 5 Flashcards | StudBud
Explore
/
Computer Science Quiz 5
Computer Science Quiz 5
14 terms
·
StudBud Administration
·
17 plays
Review for Quiz 5
Flashcards
14 cards
F
Practice quiz
P
Host live
L
Questions
14
Answers
1
What are shortcuts useful for?
printing software documentation
Making it easier to open a file
Giving text based commands
2
Which lines of code would make the turtle follow the motion of the mouse pointer?
ondrag(goto)
goto(ondrag)
onclick(drag)
3
Most Windows operating systems use what character to separate folder and file names?
Backslash \
Forward slash /
Underscore _
4
A docstring must start on the first line after the start of a program, or what other location?
The first line after the start of a variable definition
The first line after a function call
The first line after the start of a function definition
5
A docstring needs to be surrounded by what characters?
3 quotation marks
3 question marks
3 hashtags
6
What are keywords?
Concepts about programming in Python
File paths that allow users to locate a file on a computer
Programming terms that have specific meanings in Python
7
___________ is code that runs when a specific event happens.
A click event
A GUI
A callback function
8
A program that focuses on doing one type of thing, like word processing or email is a/an
keyword
application
docstring
9
Which of the following lines of code would print the docstring for the range() function?
print(range.__doc__)
print(range.""doc"")
print("range.doc")
10
In the code onkey(draw_9, "r"), what will happen when a lowercase "r" is typed on the keyboard?
The draw_9 function will be called.
The integer 9 will appear on the screen.
The letter "r" will appear on the screen.
11
What does an event handler do?
Organize the files in a directory
Wait for an event and then do something in response to it
Encourage the user to create click events
12
Which of the following is a folder inside another folder?
Subdirectory
Directory
Parent Folder
13
The onclick() function will target which object unless you tell it otherwise?
All instances of the Turtle() class
The background of the turtle graphics window
The unnamed turtle
14
What is usability a measure of?
How important something is
How frequently something gets used
How easy to use something is