PT1420 programming study guide – Flashcards

Unlock all answers in this set

Unlock answers
question
steps of the program development cycle
answer
Design the program Write the code Correct syntax errors Test the executable code Debug the code
question
What is a sequence
answer
default control structure; instructions are executed one after another. They might, for example, carry out a series of arithmetic operations, assigning results to variables, to find the roots of a quadratic equation ax 2 + bx + c = 0.
question
application software
answer
Programs that make a computer useful for everyday tasks
question
operating system
answer
the programs that control and manage the basic operations of the computer. It controls the internal operations of the computer's hardware, manages all of the devices connected to the computer, allows data to be saved to and retrieved from storage devices, and allows other programs to run on the computer.
question
interpreter
answer
is a program that both translates and executes the instructions in a high-level language program. As the interpreter reads each individual instruction in the pro-gram, it converts it to a machine language instruction and then immediately executes it.
question
syntax
answer
A set of rules that combine symbols and formatting to define the legal structure of a computer program. think of it as grammar most languages have their own syntax
question
machine code
answer
Assembly language uses what type of instruction
question
logical error
answer
is a mistake that does not prevent the program from running, but causes it to produce incorrect results. ( Mathematical mistakes are common causes of logic errors.)
question
flow chart
answer
The graphical representation of all activities in a process including start, input and output, process and decision
question
start or terminate
answer
oval
question
data
answer
parallelogram
question
process
answer
rectangle
question
decision
answer
triangle
question
relational operators
answer
compares values based on differences in their values. > Greater than = Greater than or equal to
question
variable
answer
Used to store a value in memory that can be used in the program
question
variable scope (local and global)
answer
a variable is only available to section of a program based on 1-where its declared 2-Its variable type
question
logical operators
answer
compares two values based on Boolean (true-false). Logical operators include AND, NOT, OR.
question
pseudo code
answer
Shorthand notation for programming which uses a combination of informal programming structures and verbal descriptions of code.
question
Assembly language
answer
Which computer language uses short words also known as mnemonics for writing programs?
question
Fetch-decode-execute
answer
cycle is used by the computer to execute instructions in a program
question
Processing symbol
answer
represents an assignment statement in a flowchart
question
Named Constant
answer
A value that cannot be changed during the programs execution is called
question
Rectangle
answer
the module call is represented by a
question
Hierarchy Chart
answer
used to visualize the relationship between modules
question
Parameter
answer
the term used for the variable that receives an argument that passes into a module.
question
Passing an argument by Value
answer
means that a copy of the argument's value is passed into the parameter variable.
question
Global
answer
type of variable is visible to every module and the entire program
question
A pass by reference argument
answer
means that the argument is passed.
question
decision
answer
diamond
question
Control
answer
structure is a logical design that controls the order in which statements executes
question
sequential data
answer
circle
question
Algorithm
answer
A set of well-defined logical steps that must be taken to perform a
question
Which operator would make the following expression true
answer
NOT false true AND false true OR false
question
local variable
answer
variable declared inside a module
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New