C++ Early Objects, Ninth Edition - Chapter 1

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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

B) A text editor

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

B) operating system

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)

D) #include (some library in bracket)

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

D) All of the above.

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.

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

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

A) fetch

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

C) Low-level and High-level

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

C) Program

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

C) RAM

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

B) Algorithm

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.

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

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

B) Logic errors

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

B) Variables

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

B) decode

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.

C) RAM

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

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

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.

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

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

D) Control Unit

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

D) Key Words

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.

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


संबंधित स्टडी सेट्स

Psychology chapter 1 + 2 homework questions

View Set

Understanding Cyber Crime and Security

View Set

APHY 201 Module 13 Digestive System Part 2 Ivy Tech

View Set

Econlowdown It's Your Paycheck! Lesson 3: Cash the Check and Track the Dough

View Set

CH. 65 Care for Skin, Hair, & Nail Disorders

View Set

Chapter 14: Energy Generation in Mitochondria and Chloroplasts

View Set