c++
False.
A computer's CPU can only process instructions that are written in a high-level language.
-implement computer programs -test computer programs -design computer programs
A programmer, or software developer, is a person with the training and skills necessary to perform the following
-the central processing unit (CPU) -secondary storage devices -main memory -input devices -output devices
A typical computer system consists of the following components
True.
A variable must be defined before it can be used.
Short.
According to Table 2-6 on page 43, if a variable needs to hold whole numbers in the range -500 to +800, what data type would be best?
set of well-defined steps for performing a task or solving a problem
An algorithm is defined as which of the following?
True.
Are the following are legal user-defined variable names? number_of_runs _id_number NumberOfStudents ArrayIndex2
True.
C++ programs can be written on one type of computer and then run on many other types of systems.
True.
Character literals are enclosed in single quotation marks while string literals are enclosed in double quotation marks.
Software
Computer programs are commonly referred to as ____________.
programmable
Computers can do many different jobs because they are
True.
If you wrote a machine language program for computer A and then wanted to run it on computer B, which has a different type of CPU, you would have to rewrite the program in computer B's machine language.
False.
In C++ int and INT mean the same thing.
True.
In C++ there are many different data types that a variable can be defined as. A variable's data type determines the type of information that can be stored in that variable. For example, Integer variables can only hold whole numbers, they cannot hold floating-point numbers such as 3.45, -23.04, or 0.254.
int
In Program 2-11 on page 45, what is the data type of the variables floors, rooms, and suites?
Integer
In the function declaration statement int main() in Program 2-1 on page 28, what word does int stand for?
stream insertion operator
In the statement cout << "Programming is great fun!"; the << symbol is called a
False.
It is much easier to write a program in machine language than it is to write the same program in a programming language such as C++.
False.
Java was invented by Microsoft for developing applications based on the Microsoft .NET platform.
True.
Main Memory component of a computer do not stores data after a computer has been turned off.
False.
Some, but not all, C++ programs have a function named main.
True.
The C language was invented for the purpose of writing operating systems and compilers.
-True
The central processing unit (CPU) is the component in a computer that actually runs programs.
True.
The central processing unit (CPU) is the component in a computer that actually runs programs.
True.
The char data type is used for variables that will hold only one character.
True.
The following C++ code will not compile due to one or more syntax errors. cout << "Good" << \n; cout << "Morning" << \n;
- USB drive - disk drive
The following are considered to be both an input device and an output device?
False.
The following two C++ statements are equivalent. cout << "Hello World!" << endl; cout << "Hello World!/n";
True.
The following two C++ statements are equivalent. cout << "Hello World!" << endl; cout << "Hello World!\n";
True.
The most common type of secondary storage device is the disk drive.
microprocessors
Today, CPUs are small chips known as what?
-True.
Unless specified otherwise by the programmer, the information sent to cout is displayed in a continuous stream.
False.
Unsigned data types can only hold negative values.
True.
User-defined variable names can be written in lowercase letters, uppercase letters, or any combination of both.
False.
Variable names may begin with a number.
cout
What C++ keywords is used to display a message on the display screen?
instructs cout to start a new line
What is the purpose of endl in the following statement? cout << "Hello World!" << endl;
no output will be produced due to an error in one or more statements.
What is the resulting output for the following code? int number; number = "14"; cout << "The number of fish in the aquarium is " << number << endl;
The number of students in that class is number
What is the resulting output for the following code? int number; number = 17; cout << "The number of students in that class is " << "number" << endl;
The number of people waiting in line is 9
What is the resulting output for the following code? int number; number = 9; cout << "The number of people waiting in line is " << number << endl;
True.
When choosing identifier names, it is always good practice to choose a name that indicates the identifier's intended purpose. For example, the variable name items_ordered is a better choice that x because it gives the reader an idea of the variable's use.
\n
When used in a cout object, the following causes the cursor to go to the next line for subsequent printing?
escape sequences
\n, \t, \a, \b, and \r are examples of
True.
compilers are not considered as application software?
True.
iostream is the name of the file that will be included in the C++ program and allows the program to display output on the screen and read input from the keyboard.
//
marks the beginning of a comment in C++?
#
marks the beginning of a preprocessor directive?
hardware
refers to the physical components that a computer is made of
program
set of instructions that a computer follows to perform a specific task
- The header file iostream must be included in any program that uses the cout object. - The code contained in a header file is C++ code which typically describes complex objects like cout. - Because preprocessor directives are not C++ statements, they do not end with a semicolon.
the following are true about preprocessor directives?
01011100010010
what a machine language instruction might look like
returns the integer value 0 back to the operating system
what action does the statement return 0; perform?