Java Games: Flashcards, matching, concentration, and word search.

Computer Science--Final Test Review

Final Exam Review

AB
Modulea python program that can be imported
GUIwindows, buttons, menu items, icons and dialog boxes with which a computer interacts
forkingtaking code from a currently developed project to make a different version
methodsthe functions associated with a class
\nnewline
Which stride number should you use to reverse the order of characters in a slice-1
Constraintsomething that limits your project
proprietary softwaresoftware that hides its code
Informal development methoddoes NOT follow a predictable or planned course of action
shortcutsmake it easier and quicker to open a file
buttona clickable graphical object that makes something happen when the user clicks it
Docstrings must start on the first line after the start of a program or...the first line after the start of a function definition
bugan error in a program's code
iterationeach cycle of a loop
instancescopies of a class
"happy" + "birthday"="happybirthday"
x=2, y=x+3, x=4...what's the final value of y5
an advantage of using variables isit makes it less likely that an error will be introduced into the code
Code reuse is meant to...save time
commentsexplain what some code is doing
modulethe turtle program is an example of this
if you want to save a program so you can run it later, create the program in ...the text editor window
executeanother word for running a program
#character used to start a comment
In a function name, what should you use between words instead of whitespaces?underscore __
Variables make it easier to ...make changes in your code
Floating point number19.67
Comments should be written in what type of language?Clear & plain language
if x=2, y=x+3, x+4, then y=5
the argument for the goto() commandx and y coordinates
origin point(0,0)
(2, -18) in what direction from the origin pointto the right and down
What does a coordinate tell you?where a point is along the X and Y axis
"happy" + "birthday"=happybirthday
comments in Python are meant to....explain what code is doing
The X axisan invisible horizontal line
the Y axisan invisible vertical line
the word "fifteen" is what kind of data type?a string
45 is an example of what kind of data type?an integer
concatenationadding strings together to make a new string
charactersmallest unit in a written language
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.
A folder inside a foldersubdirectory
a code that runs when a specific event happens.callback function
make it easier to open a fileshortcuts
backslash\character used to separate folder and file names in Windows
Docstringscan be accessed through IDLE's interactive help system
common feature of GUIsa pointing device
usabilityhow easy to use something is
keywordsprogramming terms that have specific meanings in Python
automatic target of onclick() function, unless otherwise directedthe unnamed turtle
is a clickable graphical object that makes something happen when the user clicks it, usually with the left mouse button.button
makes the turtle follow the motion of the mouse pointer when the user clicks and drags the mouseondrag(goto)
event handlerWaits for an event and then do something in response to it
A docstring must start on the first line after the start of a program, orThe first line after the start of a function definition
prints the docstring for the range() functionprint(range.__doc__)
Integrated Development Environment (IDE)software program used to write code and develop programs
what shape would this make? circle(100, steps=4)square
freezingwhen a window stops responding
developeranother name for a computer programmer
Your cursor shows you...where you are about to type
what command would rotate the turtle counterclockwise in a full circle?left(360)
what command would rotate the turtle clockwise in a full circle?right(360)
The command that moves the turtle forward 100 pixelsforward(100)
Radiusdistance from center of circle to the outer line of the circle
When you use the color() command, what should you include around the color name in the argument?"" quotation marks
The Python Shell hasa command prompt >>>
To save a program you should create it inthe text editor window
Python was created to be more ___________ than other programming languageshuman readable
The turtle program is a/an ___________ that can be imported for use in Python code.Module
Where do you put an argument for a commandinside the parentheses ()
Control Floworder in which lines of a program are run
Loopcontrols the flow of a program by repeating lines of code, instead of letting the program run straight to the end.
Iterationrepetition--one cycle of a loop
for loopa loop that iterates through a block of code a specific number of times or until something specific happens in the program
range()used to set the number of times a for loop will repeat, or iterate
speed()controls the speed at which the turtle moves.
speed(1)slowest
Speed(0)is as fast as possible.
objectanything that can be used by Python to do something
bugan error in a program's code
Debuggingfixing errors in a computer program.
Syntaxset of rules for how a programming language needs to be written
Conceptual bugshe code does something different from what the programmer wants
Input bugwhen the user inputs something the programmer wasn't expecting
Logic Bugcreated by control flow techniques such as loops that control the order in which the program's code is run or if a loop cycles one too many times.
Resource Bugcan be created when a variable is used without ever having been given a value
Iterative and incremental development examplesAgile software development and extreme programming


Andreas, PA

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities