stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Science Quiz 5 - Unit 6 Flashcards | StudBud
Explore
/
Computer Science Quiz 5 - Unit 6
Computer Science Quiz 5 - Unit 6
15 terms
·
StudBud Administration
·
25 plays
Introduction to Programming with Python Unit 6, Quiz 5
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
A docstring must start: 1) First line after a function definition OR 2)???
First line after the start of the program
First line after a variable definition
Last line of the program
First line after a function call
2
This is a clickable graphical object that makes something happen when you left click it ...
Focus window
Button
Key
Mouse icon
3
Which code makes the turtle follow the motion of the mouse pointer when the user drags it?
drag(onclick)
onclick(drag)
ondrag(goto)
goto(ondrag)
4
Code that runs when a specific event happens...
GUI
Callback function
Codec
Click event
5
When you use onclick(), it will automatically target this object unless told otherwise ...
The background of the turtle graphics window
The unnamed turtle
All instances of the Turtle class()
The command prompt
6
What does the event handler do?
Waits for an event and then acts in response to it
Makes shortcut names for files
Organizes files in the directory
Makes the user create click events?
7
What are shortcuts used for?
Printing software documentation
Giving text-based commands to a computer
Making is easier and quicker to open a file
Making a computer more interactive
8
Windows operating systems use what character to separate folder and file names ...
Forward slash /
Ampersand &
Backslash \
Quotation mark "
9
What are keywords?
Concepts about programming in Python
Programs that can be imported into Python
File paths that allow you to find a file
Programming terms with meanings in Python
10
What makes docstrings different from regular comments?
They are longer
They can be accessed through the help feature
They are required for every function definition
They are run like code
11
In the code onkey(draw_7, "r"), what will happen when a lowercase "r" is typed on the keyboard?
The integer 7 will appear on the screen
The letter "s" will appear on the screen
The turtle will become clickable
The draw_7 function will be called
12
Which code would print the docstring for the range() function?
print(range.""doc"")
print("range.doc")
print(range.__doc__)
print(docstring_range)
13
What does usability measure?
How often something is used
The skill level of the programmer
How complicated the code is
How easy something is to use
14
What is a common feature of a GUI?
Microphone
Pointing device
Speakers
Webcam
15
Which of the following is a folder inside of another folder?
Parent folder
Subdirectory
String
Directory