Programming review – Flashcards

Unlock all answers in this set

Unlock answers
question
Syntax errors
answer
______ are easy to locate and correct because the compiler or interpreter you use highlights every error.
question
Logic error
answer
If you use an otherwise correct word that doesn't make sense in the current context, then you have a _____
question
Variable
answer
_____ is a named memory location whose values can vary.
question
Logic
answer
Before a programmer plans the _____ of a program, he or she must understand the problem
question
Coding
answer
After a programmer plans the logic of a program, the next step is ______ the problem.
question
Syntax errors
answer
Typically a programmer develops a program's logic, writes the code, and compiles the program, receiving a list of______
question
Debugging
answer
The process of finding and correcting programs errors is called _____.
question
Rectangle
answer
In a flowchart, a _______ represents processing
question
Parallelogram
answer
The ____ is used to represent output in a flowchart.
question
Lozenge
answer
The ______ is the standard terminal symbol for a flowchart.
question
Loop
answer
The repetition of series of steps is called a ________.
question
Infinite loop
answer
An __________ is a repeating flow of logic with no end.
question
Diamond
answer
You represent a decision in a flowchart by drawing a decision symbol, which is shaped like a ________.
question
Promot
answer
A _______ tells the user what to enter.
question
IDE
answer
An _____ is a software package that provides an editor,a compiler, And other programming tools
question
Command Line
answer
A _______ is a location on your computer screen where you type text entries to communicate with the computers operating system.
question
GUI
answer
A _____ allows users to interact with a program in a graphical environment
question
Variables Liberals Unnamed or named constants
answer
When you write a program, you work with data in what three forms
question
Numeric constant
answer
A specific numeric value is often called a _______.
question
Floating point Variables
answer
Fractional numeric value that contains a decimal point are known as ______.
question
Declaration
answer
In most programming languages, before you use any variable, you must include a _______ for it.
question
Declaring Varaibles
answer
The process of naming programs variables and assigning a type of the is called ________.
question
Garbage
answer
A variables Unknown value is commonly called _________.
question
Initializing
answer
Declaring a starting value for a variable is known as ______ the variable.
question
=
answer
The assignment operation is the ___ sign.
question
Named constant
answer
A _________ is similar to a variable, except it can be assigned a value only once.
question
Rules of Precedence
answer
The _______ dictate the order in which operations in the same statement are carried out.
question
In scope
answer
Programmers say that variables and constants declared within a module are ______ only within that module
question
Global Variables
answer
_______ and constants are known to the entire program.
question
Increases
answer
As a programs become larger and more complicated, the need for good planning and design _____.
question
Self documenting
answer
Programmer refer to programs that contain meaningful names as ______
question
Temporary variable
answer
A ______ is not used for input or output, but instead is just a working variable that you use during a programs execution.
question
Sequence
answer
In a ________ structure, you perform an action or task, and then you perform the next action in order.
question
Sequence structure
answer
The pseudo code is an example of what : get firstNum get secondNum add firstNum and secondNum Print
question
Dual alternatives
answer
If-else examples can also be called dual-alternative because the contain the action taken when the tested condition is true and the action taken when it is false.
question
Loop Structure
answer
The pseudo code is an example of what: get Num while Num is positive add to sum get Num
question
Iteration
answer
You may hear programmers refer to looping as ____.
question
Loop body
answer
The action/actions that occur within a loop are known as a_____.
question
Nesting
answer
The pseudo code is an example of what: If condition A is true then do step E else do step B do step C do step D endif
question
Nesting structures
answer
Placing a structure within another structure is called a _______.
question
One
answer
The maximum number of entry points that any programming structure can have is ____.
question
Sequence Selection Loop
answer
A structured program includes only combinations of the basic structure. What are they?
question
Loop controlling question
answer
A loop must return a _______ at some later point in a structure.
question
Do
answer
The _____ loop is a variation of a whole loop.
question
greater than
answer
The > sign means _____.
question
Identical
answer
Usually, sting variables are not considered to be equal unless they are _______.
question
AND
answer
An _____ decision is in which two conditions must be true for an action to take place.
question
Cascading if statement
answer
A series of nested if statements are also called a ________.
question
Case structures
answer
Most languages allow you to use a variation of the decision structure called the _______ when you must nest a series of decisions about a single variable.
question
AND operator
answer
Most programming languages allow you to ask two or more questions in a single comparison by using an __________ that joins decisions in a single statement.
question
False
answer
For maximum efficiency, a good rule of thumb in an AND decision is to first ask the question That is more likely to be ____
question
Boolean value
answer
When creating a truth table, you must determine how many possible ________.
question
&&
answer
The conditional AND operators in Java is ____.
question
True
answer
In a truth table, the expression true AND true is _____.
question
Truth Tables
answer
________ are diagrams used in Mathematics and logic to help describe the truth of an entire expression beaded in the truth of its parts.
question
OR
answer
An _____ decision Is a decision in which at least one of two conditions must be true for an action to take place.
question
False
answer
In a truth table, the expression false OR false is ________.
question
True
answer
For maximum efficiency, a good rule of thumb in an OR decision is to ask the question that is more likely to be ________.
question
OR operator
answer
Java uses the || symbol as the logical ____________.
question
NOT
answer
You use the logical ____ operator to reverse the meaning of the Boolean value.
question
Range Check
answer
You can perform a _________ by making comparisons using either the lowest or highest value in the ranges of values.
question
AND
answer
When you combine AND and OR operators , the ____ operators take precedence, meaning their Boolean values are evaluated first.
question
parenthesis
answer
You can use ______ for clarity and to override the default order of operations
question
initialize
answer
The first step in a while loop is typically is to _________________ the loop control variable.
question
execute
answer
Once the logic enters the body of a structured loop, the entire loop must execute.
question
increment
answer
The last step in a while loop usually to _______ the loop control variable.
question
definite loop
answer
A ___________ executes a predetermined number of times.
question
loop controlled variables
answer
Many _____________ values are altered by incrementing, or adding to them.
question
Counter
answer
A ___________ is any numeric variable values you use to count the number of times an event has occurred.
question
Nested
answer
A loop within another in known as a __________ loop.
question
Outer Loop
answer
When one loop appears inside another, the loop that contains the other loop is called the ___________.
question
Loop control variable
answer
usually, when you create nested loops, each loop has it own _________________.
question
Outside
answer
A mistake programmers often make with loops is that they include statements inside the loop that belong __________the loop.
question
initialize
answer
A mistake programmers often make with loops is that they neglect to ________ the loop control variable prior to entering the loop body.
question
Comparison
answer
A _________ is correct only when the correct operands and operator are used.
question
Elegant
answer
Programmers use the term ________ to describe programs that are well designed and easy to understand and maintain.
question
For Loop
answer
You usually use the ___________ for definite loops.
question
for loop
answer
The________________ provides three actions in one compact statement.
question
step value
answer
The amount by which a for loop control variable changes is often called a _________________.
question
Pre-Test
answer
In a ________ loop, the loop body might never execute because the question controlling the loop might be false the first time it is asked.
question
Post-Test
answer
In a ____________ loop , the loop body executes at least one time because the loop control variable is not tested until after one iteration.
question
Validate
answer
Loops are frequently used to ___________ data ; that is to make sure it is meaningful and useful.
question
processing arrays
answer
The for loop is particularly useful when ______________.
question
Named Constants
answer
______________ hold values that do not during program's execution.
question
Understand
answer
Besides making your code easier to modify, using a named constant makes the code easier to _________________.
question
self- documenting
answer
One advantage to using a named constant is that the statement becomes _____________.
question
Boolean
answer
If you declare a ____________ variable, you can set its value to be true or false.
question
in scope
answer
Variables and constants are ____________ within, or local to, only the method in which they are declared.
question
global data item
answer
When a data item is known to all of a program's module it is known as a ____________________.
question
argument
answer
A calling method sends an _________ to a called method.
question
called method
answer
A ____________ accepts the values of an argument passed to it as its parameter.
question
signature
answer
A methods name and parameter list constitute the method's __________.
question
Parenthesis
answer
You can think or the _________________ in a method declaration as a funnel into the method.
question
Value
answer
A variable usually is passed into a method by _____________.
question
redeclared
answer
Each time a method executes , any parameter variables listed in the method header are ______________.
question
formal parameters
answer
The variables in method declaration the accepts the values from the actual parameters are ______________.
question
Void
answer
A method can return nothing, in which case the method is a _________ method.
question
parameter list
answer
When multiple parameters appear in a method header, they constitute a ______________.
question
Overload
answer
When you ______________ a method, you write multiple methods with a shared name but different parameter lists.
question
implementation hiding
answer
Using ___________ means that the interface with the method is the only part of a method with which the method's client interacts.
question
Stack
answer
Every time you call a method, the address to which the program should return at the completion of the method is stored in a memory location called the ____________.
question
Object-Oriented Programming
answer
__________________ is a style of programming that focuses on an application's data and the method you need to manipulate the data.
question
class
answer
Object Oriented Programmers sometimes say an object is one instantiation of a _____________.
question
attributes
answer
Objects both in the real world and in object- orientated programming contains ___________ and methods.
question
Attributes
answer
______ are the characteristics the define an object as part of a class.
question
object
answer
When you think in an object-oriented manner, every __________ is a member of a class.
question
reusability
answer
The concept of a class is useful because of its ______________.
question
Fields
answer
Object attributes are often called _______ to help distinguish them from other variables you might use.
question
instance variables
answer
The data components of a class that belongs to every instantiated object are the class's ____________.
question
class client
answer
A ________ is a program or class that instantiated objects of another prewritten class.
question
overloading
answer
The term ________ is applied to situations in which you define multiple methods with a single name
question
class definition
answer
A _____________ is a set f program statement that tell you the characteristics of the class' objects and the methods that can be used by its objects.
question
abstract data type
answer
The term _______________ implies that the type's data can be accessed only through methods.
question
Abstract data type
answer
An __________ is a programmer-defined type, such as a class.
question
Primitive data types
answer
In older object-oriented programming languages, simple numbers and characters are said to be ___________________.
question
class diagram
answer
A _____________________ consists of a rectangle divided into three sections.
question
Set Methods
answer
The purpose of ________________ is to set the values of data fields within a class.
question
Mutator
answer
Methods that set values are called __________ methods.
question
Get Methods
answer
The purpose of a _______ is to return a value to the world outside the class.
question
Help method
answer
A work method is also know as a _______________.
question
Access specifier
answer
An ________________ is the adjective defining the type of access (public or private)that outside classes will have to the attributes or methods.
question
This
answer
In a class method, the _______ reference can be used only with identifiers that are field names.
question
Static
answer
_____________ methods are those for which no object needs to exist.
question
Nonstatic
answer
___________ methods are methods that exist to be used with an object created from a class.
question
static class member
answer
In most programming languages, you use the word static when you want to declare a ____________.
question
non-default
answer
If a constructor requires arguments, it is a ___________ constructor.
question
signature
answer
A method's name and a list of arguments types together are its signature.
question
tilde
answer
The most common way to declare a destructor explicitly is to use an identifier that consists of a __________ followed by the class name.
question
Compiler
answer
When you purchase or download a _________ for an object-oriented programming language, it comes packages with many pre-defined , built in classes.
question
1950s;1980s
answer
From the _____ when businesses began to use computers to help them perform many jobs, through the _____, almost all interactive dialogue between people and computers took place at the command prompt.
question
Command Line
answer
The _________________ is the location on your computer screen at which you type entries to communicate with the computer's operating system.
question
Operating system
answer
The ____________ software allows you to use a mouse of other pointing device to select pictures, or icons, on the screen.
question
event
answer
Performing an operation on an icon causes an __________.
question
event-driven
answer
Within an ________________, a component from which an event is generated is the source of the event.
question
scripts
answer
In object-oriented languages, the procedural modules that depend on user-initiated events are often called________.
question
GUI
answer
______ components are excellent examples of the best principles of object-oriented programming; they represent objects with attributes and methods that operate like black boxes.
question
pixel
answer
A _________ is one of the tiny dots of light that from a grid on your screen.
question
File
answer
When you use a menu bar, it is at the top of the screen in most GUI programs, and the first menu item is almost always _________.
question
real estate
answer
GI programmers sometimes refer to screen space as real estate.
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New