ch01

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

The computer's main memory is commonly known as ________. A) random-access memory (RAM) B) direct-access memory (DAM) C) read only memory (ROM) D) secondary storage E) None of the above

A

The purpose of a memory address is ________. A) to identify the location of a memory cell. B) to allow multitasking. C) to prevent multitasking. D) to locate a program. E) None of the above.

A

________ is/are used in a C++ program to mark the beginning or ending of a statement, or to separate items in a list. A) Separators B) Punctuation C) Operators D) Key words E) None of the above

B

Words with a special meaning that may be used only for their intended purpose are known as ________. A) low-level language B) programmer-defined identifiers C) key words D) syntax words E) None of the above

C

________ is an example of volatile memory, used for temporary storage while a program is running. A) A flash drive B) The ALU C) RAM D) The CPU E) A hard disk

C

The statements written by a programmer are called ________. A) syntax B) object code C) source code D) language elements E) None of the above

C Chapter 1, Test 2

True/False: Executable code is computer code that contains no errors.

FALSE

True/False: Most modern computers can understand and execute pseudocode.

FALSE

True/False: Once a value has been stored in a variable it cannot be changed.

FALSE

True/False: The purpose of the compiler is to convert object code into source code.

FALSE

True/False: If a new value is stored in a variable, it replaces whatever value was previously there.

TRUE

True/False: Most of the lines in a program contain something meaningful; however, some of the lines may contain nothing at all.

TRUE

True/False: Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.

TRUE

True/False: Syntax involves rules that must be followed when writing a program.

TRUE

List five elements that are common to all programming languages.

key words, programmer-defined symbols, operators, punctuation, and syntax

C++ is an example of ________. A) a low-level programming language B) a high-level programming language C) a pseudocode logic language D) machine language E) None of the above

B

A storage location in the computer's memory that can hold a piece of data is called a(n) ________. A) variable B) number C) data cell D) storage box E) address

A

A variable definition always specifies the name of a variable and tells ________. A) what type of data it can hold B) how many times it will be used in the program C) the part of the code where it will be used D) what its starting value is E) All of the above

A

Even when there is no power to the computer, data can be held in ________. A) a secondary storage device B) RAM C) variables D) a computer program E) any of the above

A

In the C++ statement pay = rate * hours; the * symbol is an example of ________. A) an operator B) an operand C) a variable separator D) syntax E) None of the above

A

Memory locations that can hold data are called ________. A) operators B) variables C) syntax D) operands E) None of the above

B

Mistakes that allow a program to run, but cause it to produce erroneous results are called ________. A) syntax errors B) logic errors C) compiler errors D) linker errors E) None of the above

B

The term hardware refers to ________. A) the difficulty of programming B) the physical components that make up a computer C) the way a computer's storage space is organized D) the fixed order of a program's instructions E) None of the above

B

A ________ is a complete instruction that causes the computer to perform some action. A) line B) line number C) statement D) processing unit E) All of the above

C

A(n) ________ is a set of instructions that tells the computer how to solve a problem. A) compiler B) linker C) program D) operator E) variable

C

Characters or symbols that perform operations on one or more operands are ________. A) syntax B) op codes C) operators D) program ops E) None of the above

C

Creating a program requires many steps. Three of these are ________. A) input, processing, and output B) key words, operators, and punctuation C) program design, writing source code, and testing D) syntax, logic, and error handling E) None of the above

C

Internally, the central processing unit (CPU) consists of two parts ________. A) input devices and output devices B) software and hardware C) the arithmetic and logic unit (ALU) and the control unit D) single-task devices and multi-task devices E) the compiler and the linker

C

Three primary activities of a program are ________. A) creating variables, operators, and key words B) executing lines, statements, and key words C) input, processing, and output D) reading, writing, and arithmetic E) compiling, linking, and debugging

C

A set of well-defined steps for performing a task or solving a problem is known as ________. A) a hierarchy chart B) a flowchart C) a solution engine D) an algorithm E) software engineering

D

An integrated development environment (IDE) normally includes ________. A) a text editor B) a compiler C) a debugger D) All of the above E) None of the above

D

At the heart of a computer is its central processing unit. The CPU's job is to ________. A) fetch instructions B) carry out the operations commanded by the instructions C) produce some result D) do all of the above E) do none of the above

D

IDE stands for ________. A) internal direct execution B) internal data engine C) initial development error D) integrated development environment E) None of the above

D

The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components. A) arithmetic unit B) logic unit C) arithmetic and logic unit (ALU) D) control unit E) operating system

D

A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called ________. A) a low-level programming language B) a high-level programming language C) a software utility package (SUP) D) an operating system E) None of the above

E

The programmer usually enters source code into a computer using ________. A) a preprocessor B) a compiler C) a linker D) a debugger E) None of the above

E

Two examples of high-level programming languages are ________. A) C++ and Java B) C++ and JavaScript C) C++ and C# D) C++ and Visual Basic E) All of the above

E

Which of the following is an example of a secondary storage device? A) a hard disk drive B) a USB flash drive C) a CD D) a DVD E) All of the above

E

Although an object file contains machine language instructions, it is not a complete program. Why?

Prewritten code from the run-time libraries must be added to the object code by the linker, and then an executable file is created.

What are some of the tools used in the craft of software engineering?

program specifications, charts and diagrams of screen output, hierarchy charts, pseudocode, examples of expected input and desired output, and special testing software


Kaugnay na mga set ng pag-aaral

Chapter 2: Administration of Drugs - PrepU

View Set

Chapter 16 The Health Care System Financing, Issues and Trends

View Set

Chapter 10 DNA: The Chemical Nature of the Gene

View Set

LifePac Grade 12, Government Test 1202

View Set

Reading Development: Comprehension

View Set

Biology Semester 2 Exam (chapter 18&19)

View Set