C++ Early Objects, Ninth Edition - Chapter 1

C++ Early Objects, Ninth Edition - Chapter 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Words that have a special meaning and may be used only for their intended purpose are known as: A) Operators B) Programmer Defined Words C) Key Words D) Syntax

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (20)

Section 1

(20 cards)

Words that have a special meaning and may be used only for their intended purpose are known as: A) Operators B) Programmer Defined Words C) Key Words D) Syntax

Front

D) Key Words

Back

Mistakes that cause a running program to produce incorrect results are called: A) Syntax errors B) Logic errors C) Compiler errors D) Linker errors

Front

B) Logic errors

Back

The programmer usually enters source code into a computer using: A) Pseudocode B) A text editor C) A hierarchy chart D) A compiler

Front

B) A text editor

Back

During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal? A) fetch B) decode C) execute D) portability stage

Front

B) decode

Back

During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions? A) fetch B) decode C) execute D) portability stage

Front

A) fetch

Back

In the process of translating a source file into an executable file, which of the following is the correct sequence? A) Sourcecode, preprocessor, modified source code, linker, object code, compiler, executable code. B) Preprocessor, source code, compiler, executable code, linker, modified source code, object code. C) Source code, compiler, modified, source code, preprocessor, object code, linker, executable code. D) Source code, preoprocessor, modified source code, compiler, object code, liker, executable code. E) Source code, linker, object code, compiler, modified source code, preprocessor, executable code.

Front

D) Source code, preoprocessor, modified source code, compiler, object code, liker, executable code.

Back

Programmer-defined names of memory locations that may hold data are: A) Operators B) Variables C) Syntax D) Operands

Front

B) Variables

Back

A set of well-defined steps for performing a task or solving a problem is known as a(n): A) Hierarchy B) Algorithm C) Central Processing Unit D) Encoded instruction E) None of the above

Front

B) Algorithm

Back

A(n) ________ is a set of instructions that the computer follows to solve a problem. A) Compiler B) Linker C) Program D) Operator E) None of the above

Front

C) Program

Back

The computer's main memory is commonly known as: A) The hard disk B) The floppy disk C) RAM D) Secondary storage

Front

C) RAM

Back

Internally, the CPU consists of two parts: A) The Output Device and the Input Device. B) The Software and the Hardware. C) The Control Unit and the Arithmetic and Logic Unit D) The SIngle-task Device and the Multi-task Device

Front

C) The Control Unit and the Arithmetic and Logic Unit.

Back

Which of the following best describes an operator? A) An operator is a rule that must be followed when constructing a program. B) An operator allows you to perform operations on one or more pieces of data. C) An operator marks the beginning or ending of a statement, or is used to separate items and a list. D) An operator is a world that has a special meaning. E) An operator is a symbolic name that refers to a variable.

Front

B) An operator allows you to perform operations on one or more pieces of data.

Back

A(n) ________ is the most fundamental set of programs on a computer. A) compiler B) operating system C) application D) utility program

Front

B) operating system

Back

The purpose of a memory address is: A) To identify the location of a byte in memory B) To prevent multitasking C) To obtain an algorithm D) To improve the effectiveness of high-level languages.

Front

A) To identify the location of a byte in memory.

Back

Which of the following is a preprocessor directive? A) pay = hours * rate; B) cin >> rate; C) // This program calculates the user's pay. D) #include (some library in brackets)

Front

D) #include (some library in bracket)

Back

The ________ decodes an instruction and generates electrical signals. A) Arithmetic and Logic Unit B) Main memory C) BIOS D) Control Unit

Front

D) Control Unit

Back

In a broad sense, the two primary categories of programming languages are: A) Mainframe and PC B) Hardware and Software C) Low-level and High-level D) COBOL and BASIC

Front

C) Low-level and High-level

Back

An Integrated Development Environment typically consists of: A) A text editor B) A compiler C) A debugger D) All of the above E) None of the above

Front

D) All of the above.

Back

This is a volatile type of memory, used for temporary storage. A) Address B) ALU C) RAM D) Disk drive E) None of the above.

Front

C) RAM

Back

What statement best describes a variable and its primary purpose? A) A variable is a structured, general-purpose language designed primarily for teaching programming. B) A variable is a collection of eight bits. C) A variable is a word that has a special meaning to the compiler. D) A variable is a named storage location in the computer's memory used for holding a piece of information. E) A variable is a "line" of code in the body of a program, which may change.

Front

D) A variable is a named storage location in the computer's memory used for holding a piece of information.

Back