COSC 1315 Exam 1 (Chapters 1-3) – Flashcards
Unlock all answers in this set
Unlock answersquestion
The term used for a set of rules that must be strictly followed when writing a program is ________.
answer
syntax
question
The following is an example of an instruction written in which computer language? 10110000
answer
Machine language
question
Which of the following is not a microprocessor manufacturing company?
answer
Dell
question
True/False: Assembly language is referred to as a low-level language because it is close to the C++ language.
answer
FALSE
question
True/False: The term "software" refers to all the physical devices, or components, that a computer is made of.
answer
FALSE
question
USB drives store data in a special type of memory known as ________.
answer
flash memory
question
True/False: Each instruction written in a high-level programming language is called a statement.
answer
TRUE
question
________ software packages usually consist of a text editor, a compiler or interpreter, and tools for testing programs and locating errors.
answer
Integrated Development Environment
question
The term ________ stands for a binary digit.
answer
bit
question
The process known as the ________ cycle is used by the CPU to execute instructions in a program.
answer
Fetch-decode-execute
question
Computers can do such a wide variety of things because they can be ________.
answer
programmed
question
In ________, all numeric values are written as a sequence of 1s and 0s.
answer
binary
question
Which of the following is not an example of operating system software?
answer
Microsoft Word
question
What is the encoding technique called that is used to store negative numbers in the computer's memory?
answer
Twos Complement
question
True/False: The CPU understands instructions in machine language, which are written in binary.
answer
True
question
________ was the first high-level programming language designed that could perform complex mathematical calculations.
answer
FORTRAN
question
Programs that make a computer useful for everyday tasks are known as ________.
answer
Application Software
question
True/False: Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.
answer
Answer: False
question
The ________ is used to encode real numbers to store them in the computer's memory.
answer
Floating-point notation
question
A(n) ________ is a list of instructions that cause the central processing unit to perform operations to complete a task.
answer
program
question
A program cannot be translated if it has ________ errors.
answer
syntax
question
What function(s) does an interpreter perform with the instructions in a high-level programming language?
answer
Translates and Execute
question
True/False: Computers are designed to do just one job.
answer
False
question
True/False: RAM is a volatile memory used for temporary storage while a program is running.
answer
True
question
The disk drive is a secondary storage device that stores data by ________ encoding it onto circular disks.
answer
magnetically
question
The ________ is an extensive encoding scheme that is compatible with ASCII and can represent the characters of all the languages in the world.
answer
Answer: Unicode
question
True/False: A bit that is turned off is represented by the value -1.
answer
False
question
A(n) ________ is a person with the training and skill needed to design, create, and test computer programs.
answer
programmer
question
The smallest storage location in a computer's memory is known as a ________.
answer
bit
question
True/False: A computer is not a single device, but a system of devices that work together to manipulate data according to the instructions provided.
answer
True
question
Data is not recorded magnetically on a(n) ________, but is encoded as a series of pits on the disk surface.
answer
optical disk
question
A computer system consists of all of the following, except ________.
answer
Operating System
question
Which of the following devices is a computer?
answer
All of the above
question
True/False: The instruction set for a microprocessor is unique and is typically understood only by the microprocessors of the same brand.
answer
True
question
A(n) ________ language allows the programmer to create very powerful and complex programs without knowing how the CPU works.
answer
high-level
question
A(n) ________ is used to translate Assembly language programs to machine language to be executed by the CPU.
answer
assembler
question
The ________ coding scheme contains a set of 128 numeric codes that are used to represent characters in a computer's memory.
answer
ASCII
question
A(n) ________ is a program that translates a high-level language program into a separate machine language program.
answer
compiler
question
The main memory is called ________ because the CPU is able to quickly access data stored at any random location.
answer
RAM
question
The entire set of instructions that a central processing unit can execute is known as the ________.
answer
instruction set
question
The ________ is an extensive encoding scheme that is compatible with ASCII and can represent the characters of all the languages in the world.
answer
Unicode
question
The ________ is the most important component in a computer because without it, the computer could not run software.
answer
CPU
question
The statements that a programmer writes in a high-level language are called ________.
answer
source code
question
What term can be used to describe anything that uses binary numbers?
answer
digital
question
What is the largest value that can be stored in one byte?
answer
255
question
Which computer language uses short words known as mnemonics for writing programs?
answer
Assembly
question
________ is the term used to refer to all the physical devices that make up a computer.
answer
Hardware
question
True/False: The main reason for using secondary storage is to hold data for long periods of time, even when the power to the computer is turned off.
answer
True
question
True/False: Most programs written in a high-level language need to be translated into machine language.
answer
False
question
________ software is characterized by programs whose clear displays and understandable prompts are easy to use.
answer
User-friendly
question
The process where the programmer steps through each of the program's statements one by one is called ________.
answer
Hand tracing
question
A(n) ________ is a set of well-defined logical steps that must be taken to perform a task.
answer
algorithm
question
Programmers use operators to create ________ expressions to perform calculations and return a value.
answer
mathematical
question
True/False: Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
answer
True
question
True/False: A named constant can be assigned a value using a Set statement.
answer
False
question
True/False: If you mistakenly write pseudocode into an editor for an actual programming language, such as Python or Visual Basic, errors will result.
answer
True
question
Which of the following is not an actual programming language?
answer
Pseudocode
question
The ________ process occurs when the programmer finds and corrects the code that is causing the error(s).
answer
debugging
question
Which of the following is not a variable data type?
answer
Number
question
A ________ is a list of requirements created after studying the information gathered from interviews with the customer.
answer
software requirement
question
The program development cycle is made up of ________ steps that are repeated until no errors can be found in the program.
answer
Five
question
The ________ operator performs division and returns the remainder.
answer
modulus
question
________ comments take up several lines and are used when lengthy explanations are required in the program.
answer
Block
question
In the expression 57 6, the values 57 and 6, which are on the left and right of the symbol, respectively, are called ________.
answer
operands
question
A(n) ________ statement specifies the variable's name and the variable's data type.
answer
variable declaration
question
Computer programs perform a ________ - step process.
answer
three
question
The value of the expression 12 - 4 * 3 / 2 + 9 is ________.
answer
15
question
The comments the programmer places in the code explaining how different parts of the program work are known as ________ documentation.
answer
internal
question
To determine a program's ________ requirements, you must determine the pieces of data required for the program to complete its task.
answer
input
question
________ documentation is a reference guide that describes the features of the program, designed for the user.
answer
External
question
A program's ________ will typically be the result of the process or processes that it has performed.
answer
output
question
What is another term used for "desk checking"?
answer
Hand tracing
question
A(n) ________ is a name that represents a value that cannot be changed during the program's execution.
answer
Named constant
question
The word ________ is used to declare a named constant.
answer
constant
question
A ________ structure is a set of statements that execute in the order they appear.
answer
Sequence
question
Which error produces incorrect results but does not prevent the program from running?
answer
logic
question
True/False: The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letters and then to capitalize the first character of the second and subsequent words.
answer
True
question
True/False: Programmers start writing code as the first step when they begin a new project.
answer
False
question
True/False: A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.
answer
True
question
Which symbol is used for an assignment statement in a flowchart?
answer
Processing
question
What term is used for a string that appears in the actual code of a program?
answer
String literal
question
What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?
answer
Pseudocode
question
What is the first step of the program development cycle?
answer
Design the program
question
True/False: Programmers use pseudocode to create "mock-ups" of programs because they do not have to worry about syntax rules.
answer
True
question
What symbol is used to mark the beginning and end of a string?
answer
Quotation
question
True/False: The expressions (a + b) / c and a + b / c will always yield identical results.
answer
False
question
Which mathematical operator is used to raise five to the second power?
answer
^
question
True/False: A sequence of characters that is used as data is called a string in programming.
answer
True
question
The ________ symbol is used to represent the inputs and outputs in the steps of the program.
answer
parallelogram
question
In many programming languages, ________ variables hold unpredictable values, but in other languages, a default value is assigned to such variables.
answer
uninitialized
question
True/False: Ovals are used as terminal symbols marking the starting and end of the pseudocode.
answer
False
question
The ________ is a diagram that graphically depicts the steps that take place in a program.
answer
Flowchart
question
A(n) ________ statement can be used to initialize multiple variables.
answer
declaration
question
When a mathematical calculation is performed, you typically want to store the result of that calculation in a(n) ________.
answer
variable
question
True/False: An uninitialized variable is a variable that has been declared and automatically initialized to zero.
answer
False
question
A(n) ________ is a group of statements that performs a specific task which is resident within the program.
answer
module
question
The ending terminal symbol for modules reads ________ because it marks the point where the computer returns to the part of the program that called the module.
answer
Return
question
Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
answer
Global
question
What phrase is placed in the starting terminal symbol of a module in a flowchart?
answer
Name of the module
question
The module definition comprises the module header and the module ________.
answer
Body
question
The technique used by programmers to break down an algorithm into modules is called ________.
answer
top-down design
question
True/False: The scope of the parameter variables is the entire program and it is visible to any statement in the program.
answer
False
question
Function is another name for ________.
answer
Module
question
True/False: A pass by reference argument establishes a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.
answer
False
question
True/False: The top-down design process is sometimes called stepwise refinement.
answer
True
question
The ________ of the module is a list of statements that belong to the module.
answer
body
question
Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.
answer
value
question
True/False: The arguments in a module call and the parameters listed in the module header must be of compatible data types.
answer
True
question
True/False: The scope of a variable is the segment of the program in which the variable can be accessed.
answer
True
question
What is the term used for the variable that receives an argument that passed into a module?
answer
Parameter
question
The ________ of the program transfers to a module when the module call is made from the program.
answer
control
question
Programmers use ________ to graphically depict the flow of logic inside a module.
answer
flowcharts
question
Modules are commonly called what?
answer
All of the above
question
Structure charts are also known as ________.
answer
Hierarchy charts
question
True/False: Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.
answer
True
question
A(n) ________ constant is a named constant that is available to every module in the program.
answer
global
question
True/False: In most languages a module definition has three parts: a header, body, and footer.
answer
False
question
True/False: An attempt to pass a non-variable argument into a reference variable parameter will cause an error.
answer
True
question
Any piece of data that is passed into a module when a module is executed is called an ________.
answer
argument
question
Which of the following is not a benefit of using modules?
answer
None of the above
question
________ variables are useful for establishing two-way communication between modules.
answer
Reference
question
Modules that use global variables cannot be used in a different ________ unless they are redesigned.
answer
program
question
True/False: Modules make it impossible for programmers to work in teams.
answer
False
question
Because modules perform actions, most programmers prefer to use ________ in module names.
answer
verbs
question
What is the term used for the memory address of the location of the statement immediately after the module call?
answer
Return point
question
Programming languages provide ________ different ways to pass arguments to modules.
answer
two
question
In a flowchart, the module call is represented by a ________ symbol with vertical bars at each side.
answer
Rectangle
question
To execute a module, we must ________ it.
answer
Call
question
The scope of a(n) ________ variable begins at the variable's declaration and ends at the end of the module in which the variable is declared.
answer
local
question
What tool would a programmer use to visualize the relationship between modules?
answer
Hierarchy charts
question
To create a module you write its ________.
answer
Definition
question
A(n) ________ variable acts as an alias for the variable that was passed into the module through an argument.
answer
reference
question
The following is an example of a module ________. Call showNetPay( )
answer
Execution
question
It is common practice in most programming languages to put a set of ________ after a module name.
answer
parentheses
question
Which type of variable is visible to every module and the entire program?
answer
Global
question
The term ________ is used when a large task is divided into several smaller tasks that are easily performed.
answer
divide and conquer
question
True/False: A module can have two variables of the same name because they are within the same scope.
answer
False
question
A pass by ________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.
answer
Reference
question
True/False: When an argument is passed by value, the communication channel works only in one direction.
answer
True
question
When an argument is passed by ________, it is not affected by a change of the content of the parameter variable.
answer
Value