Chapter 4 Review C++

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

syntax

A _______ error occurs when you break one the programming languages

logic

A _______- error is often difficult to find, and can occur for many reasons, such as entering instructions in the incorrect order.

True

A program should display (on the computer screen) a separate and meaningful prompt for each item of data the user should enter

.cpp

A source file extension of ______

False

A stream is defined in C++ as a sequence of words

stream

A(n)_____ is defines in C++ as a sequence of characters.

editor, compiler

An IDE contains both the ____ and ____ in one integrated environment

True

C++ provides the static_cast operator for explicitly converting data from one data type to another

static_cast

Explicit type conversation i accomplished in C++ with the static_cast operator

True

Machine code is usually called object code

True

Many C++ development tools contain both the editor and compiler in one integrated environment, referred to as IDE.

True

Syntax errors are much easier to locate than logic errors

none of the above

The #include directive ends with______ a.; b:, c., d. none of the above

True

The C++ instructions entered in the program are called source code and are saved in a source file, which has an extension of .c

using directive

The _____ tells the compiler where it can find the definitions of keywords and classes.

sixth

The ______ in the problem solving process is to evaluate and modify the program

IDE

The _______ provides a convenient way to merge the source code from one file with the source code in another file, without having to retype the code

cin

The _________ object tells the computer to pause program execution while the user enters one or more characters at the keyboard.

iostream

The ______file must be included int the program that uses the cin and cout objects

fifth

The ______step in the problem solving process to desk check the program

True

The cin object tells the computer to pause a program execution while the user enters one or more characters at the keyboard

False

The cin object typically is used with the insertion operator (<<)

True

The execution of a C++ program begins with the main function

white-space character

The extraction operator stops removing characters from cin object when it encounters a _______

executable file

The file containing all of the machine code necessary to run your C++ program as many times as desired without the need for translating the program again is called the

header

The first line in a function is called the function_______

True

The following statement adds a value of 1 to the sum variable: sum+=1

body

The function _____ is the code contained between a function's opening and closing braces

//

The insert comment into a C++ program you begin the line with ______.

stream

The objects used in C++ to handle standard inout and output operations are called_______objects

parenthesis

The operator with the higghest precedence number in C++ is___________

source code

The original program instructions entered into an editor is called the_______

True

The processing of locating and correcting the errors in a program is called debugging

False

The remainder operator is used to divide two integers and results in the remainder of the division

>>

The symbol for extraction operator in C++ is________.

<<

The symbol for the insertion operator in C++ is_______

%

The symbol for the modulus operator in C++ is______

;

The using string ends with a

=

The_____ symbol is an assignment statement called the assignment operator

fourth

The______ step in the problem solving process is the code the algorithm into a program

linker

The________ combines the object with other machine code necessary to run correctly

endl

The______stream manipulator advances the cursor to the next line on the computer screen

True

When used with the cout object, the endl stream manipulator advances the cursor to the next line on the computer screen

False

When you break one of the programming language rules it is a logic error.

sum-=1

Which C++ instructions will subtract a value of 1 from the sum variable

Explain exactly what happens during the execution of a cin statement. Include in your answer the terms cin, extraction operation, and white-space character. Begin where character are typed at the keyboard

characters go to the keyboard, to the cin object , 09-=

write the C++ statements to declare a variable called age, and prompt the user for their age

cout << "Enter age"; cin >> age; int: 0;


Kaugnay na mga set ng pag-aaral

Beginner Level - Reading No. 1: Introducciones

View Set

What is the largest component of spending in the united states?

View Set

Chapter 8: Communications and Networks

View Set