C++ Chapter One

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

Which of the following is a preprocessor directive?

#include <iostream>

Words that have a special meaning and may be used only for their intended purpose are known as:

Keywords

Mistakes that cause a running program to produce incorrect results are called:

Logic Errors

In a broad sense, the two primary categories of programming languages are:

Low-Level and High-Level

A(n) ________ is the most fundamental set of programs on a computer.

Operating System

Characters or symbols that perform operations on one or more operands are:

Operators

A(n) ________ is a set of instructions that the computer follows to solve a problem.

Program

What is used in a program to mark the beginning or ending of a statement or separate items in a list?

Punctuation

The computer's main memory is commonly known as:

RAM

This is a volatile type of memory, used for temporary storage.

RAM

Even when there is no power to the computer, data can be held in:

Secondary Storage

Computer programs are also known as:

Software

The statements written by the programmer are called:

Source Code

In the process of translating a source file into an executable file, which of the following is the correct sequence?

Source code, Preprocessor, Modified Source Code, Compiler, Object Code, Linker, Executable Code.

A(n) _____________ is a complete instruction that causes the computer to perform some action.

Statement

Which of the following is a set of rules that must be followed when constructing a program?

Syntax

Internally, the CPU consists of two parts -

The Control Unit and the Arithmetic and Logic Unit

An example of a secondary storage device is:

The Disk Drive

A variable declaration announces the name of a variable that will be used in a program, as well as:

The type of data it will be used to hold

In C++, key words are written in all lowercase letters.

True

Overall, a CPU only understands instructions that are written in machine language.

True

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

True

The CPU is the most important component in a computer because without it, the computer could not run software.

True

The term "bit" stands for binary digit.

True

The name for a memory location that may hold data is:

Variable

Pseudocode is a form of a program statement that will always evaluate to "false."

False

The preprocessor executes after the compiler.

False

During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions?

Fetch

Three primary activities of a program are:

Input, Processing, and Output

The programmer usually enters source code into a computer using _____________:

A Text Editor

What statement best describes a variable and its primary purpose?

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

A set of well-defined steps for performing a task or solving a problem is known as a(n):

Algorithm

________ are used to translate each source code instruction into the appropriate machine language instruction.

Compilers

This step will uncover any syntax errors in your program.

Compiling

The ________ decodes an instruction and generates electrical signals.

Control Unit

During which stage does the central processing unit analyze the instruction and encode it in the form of a number, then generate an electronic signal?

Decode

Which of the following refers to the programmer reading the program from the beginning and stepping through each statement.

Desk Checking

In programming, the terms "line" and "statement" always mean the same thing.

False

Machine language is an example of a high-level language.

False

Programs are commonly referred to as hardware.

False


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

Supply Chain Management Chapter 8

View Set

CompTIA A+ (220-1002) Cert Prep 4: Command-Line Interface and Scripting Languages

View Set

CH. 20 Management of Patients with Chronic Pulmonary Disease

View Set

MS Insurance Supplement License Exam Study Guide: Chapter 3 & 4

View Set

PNE 142 Chapter 37: Resuscitation

View Set

Biology, Cell Division and Reproduction, Q3

View Set

AP Chemistry - AP Classroom Unit 1 Progress Check: MCQ

View Set

PN NCLEX 6th Edition- Leadership/Ethical/Legal

View Set