CIS Chapters 1-2

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

The computer's main memory is commonly known as

RAM

_______ is an example of a volatile type of memory, used for temporary storage

RAM

If you use a C++ Key Word as an identifier, your program will:

Refuse to compile

The C++ language is considered both a "high-level" and a "low-level" language

False

True/False: A preprocessor directive always begins with a double slash ( // ).

False

True/False: An escape sequence is identified by a forward slash ( / ).

False

True/False: In C++ you are required to give variables names that indicate what the variables are used for.

False

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

False

True/False: Pseudocode is a form of program statement that will always evaluate to "false."

False

True/False: The amount of storage space required by the C++ data types depends upon the particular compiler you are using.

False

True/False: The variable 4Paychecks is a valid C++ identifier.

False

True/False: Too many comments in a program can cause the compiler to become overloaded and potentially crash.

False

True/False: Unix and Windows 2000 are examples of single tasking operating systems

False

_______________ are used to declare variables that can hold real numbers.

Floating point data types

Besides decimal, two other number systems you might encounter in C++ programs are

Hexadecimal and Octal

Program style refers to the way a programmer uses:

Identifiers, spaces, tabs, blank lines, and punctuation

A(n) ____________ is a set of instructions that tells the computer how to solve a problem

Program

The term ____________ means the programmer reads the program from the beginning and steps through each statement.

Spot Checking

A _____________ is a complete instruction that causes the computer to perform some action

Statement

In programming terms, a group of characters inside a set of quotation marks is called a:

String constant

Internally, the CPU consists of two parts

The Output Device and the Input Device

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

The area of the code in which it will be used

In a C++ program, two slash marks ( // ) indicate

The beginning of a comment

____________ must be included in any program that uses the cout object.

The header file iostream.h

What does the term hardware refer to?

The physical components that a computer is made of

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 constructing a program

True

True/False: Variables represent storage locations in the computer's memory.

True

The name for a memory location that may hold data is

Variable

Programmer-defined names of memory locations that may hold data are

Variables

At the heart of a computer is its central processing unit. The CPU's job is

all; fetch instructions, carry out operations, produce outcome

The float data type is considered _____ precision, and the double data type is considered _______ precision.

single, double

The _____ causes the contents of another file to be inserted into a program.

#include directive

Of the following, which is a valid C++ identifier?

all

The numeric data types in C++ are broken into two categories:

integer and floating point

An example of a secondary storage device is

A hard disk

The programmer usually enters source code into a computer using:

A text editor

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

Algorithm

For every opening brace in a C++ program, there must be a:

Closing brace

__________ are data items whose values do not change while the program is running.

Constants

The ________ decodes an instruction and generates an electrical signal

Control Unit

You must have a ___________ for every variable you intend to use in a program.

Declaration

The programming process consists of several steps, which include:

Design, Creation, Testing, and Debugging

The purpose of the compiler is to combine your source code, pseudocode, and hierarchy chart into machine-readable language.

False

True/False: A variable called "average" should be declared as an integer data type because it will probably hold data that contains decimal places.

False

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

False

Three primary activities of a program are

Input, Processing, and Output

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

Key words

When a variable is declared, it has ___________ scope

Local

Mistakes that cause a program to produce erroneous results are called

Logic errors

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

Low-level and High-level

C++ automatically places the ___________ at the end of string constants.

Null terminator

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

Operators

A statement that starts with a # is called a:

Preprocessor directive

_______________ is/are used in a program to mark the beginning or ending of a statement, or separate items in a list.

Punctuation

A variable's _____ is the part of the program that has access to the variable

Reach

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

Secondary storage

The ________ is used to mark the end of a complete C++ programming statement

Semicolon

The statements written by the programmer are called:

Source code

The purpose of a memory address is

To identify the location of a memory cell

True/False: A preprocessor directive does not require a semicolon at the end

True

True/False: C++ is a case-sensitive language

True

True/False: Escape sequences are always stored internally as a single character

True

True/False: Executable code is a form of computer program that runs without exhibiting errors

True

True/False: Floating point constants are normally stored in memory as doubles.

True

An Integrated Development Environment consists of:

all; text editor, compiler, debugger

A variable whose value can be either true or false has a data type of:

bool

The ______ is/are used to display information on the computer's screen.

cout object

A character constant is enclosed in ________ quotation marks, whereas a string constant is enclosed in ________ quotation marks.

single, double


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

Solving radicals and quadratic equations with square roots

View Set

Тема 2. Поняття етики ділового спілкування, її предмет та завдання

View Set

ECN 101 Ch 10 & 11 Connect Practice

View Set

Ellison Invisible Man Chapter 1-25 summary

View Set

Cell Theory and Organelles Schoolnet practice

View Set