Question
click below
click below
Question
Normal Size Small Size show me how
C++ Chapter 1
Review of Chapter 1
Question | Answer |
---|---|
___ which means they capitalize the first letter in the second and subsequent words in the name. | camel case |
The ____ ____ specifies the type of data(for example, decimal, or integer) each item represents. | data type |
The programmer must assign an initial value to each item, referred to as ____. | initializing |
A ____ is a word that has a special meaning in a programming lanaguage. | keyword |
The instructions to declare a variable is considered a _____. | statement |
All C++ statements must end with a ____. | semicolon |
The ___ of a language, whether it's C++ or English is the set of rules that you must follow to use the language. | syntax |
In C++, you use ___ which are just sequences of characters, to perform standard input and output operators. | streams |
The standard output stream is called ___ and referes to the computer screen. Think of a sequence of characters being sent out to the user through the computer. | cout |
The standard input strea is ___ and refers to the computer keyboard. Think of this stream as a a sequence of characters sent in to the computer through the keyboard. | cin |
The << that follows the cout in the statement is called the ____ ____. It may also help to think of the this as meaning "sends to". | insertion operator |
For the user to enter the information, you need to use both the standard input stream cin and the extraction operators, as shown in the statement cin >> currentPay; The >> that follows cin is called the ___ ___. It may help to think of it as "gets from" | extraction operator |
A variable is a location inside the computers internal memory. T/F | True |
The computer uses a ___ to represent multiplication. | asterisk |
A __ ___ allows the program to manipulate or manage, the input and output stream characters in some way. | stream manipulator |
The ___ stream manipulator can be used to advance the cursor to the next line on the screen. It stands for _______. | endl, end of line |
___ refers to the process of location and removing any errors, called ___. | debugging, bugs |
You create a ___ error when you enter an instruction that violates the programming lanauge's syntax. | syntax |
You create a ___ error when you enter an instruction that doesn't give you the expected results. | logic |
C++ was developed in ___ at Bell Labratories by ____ ___. | 1972, Dennis Ritchie |
To create a C++ program, you need to have access to a __ __, often simply called an ___, and a C++ ___. | text editor, editor, compiler |
You use the editor to enter the C++ instructions, called __ __, into the computer. | source code |
Source code files created using Microsoft Visual C++ 2005 have the filename extension ___ which stands for C plus plus | .cpp |
The file containing the source code is called the ___ ___. | source file |
A ___ is necessary to translate the high-level instructions into machine code --0s and 1s that the computer can understand. | compiler |
Machine code is also called, ___ ___. | object code |
When you compile a Microsoft Visual S++ program, the compiler generates the appropriate object code, saving it automatically in a file whose filename extension is __ | .obj |
The file containing the object code is called the __ ___. | object file |
After the compiler creates the object file, it then invokes another program called a ___. The ___ combines the object file with other machine code necessary for you program to run correctly. | linker |
The linker produces a(n) ______ ___ which is a file that contains all the machine code necessary to run your C++ program as many times as desired without the need for translating the program again. | executable file |
Many C++ systems, contain both the editor and compiler in one integrated environment, referred to as an ______. | IDE(Integrated Development Environment) |
A ___ is a message to the person reading the program and is referred to as ___ ____. | comment, internal documentation |
C++ programs typically include at least one ___ and most include many. The #include<iostream> ___ is a special instruction that tells the compiler to include the contents of another file(iostream) in the current program. | directive |
___ ___ tell the computer where it can find the definition of a keyword | using statements |
A __ is a block of code that performs a task. | function |
Functions have ___ following their names. | parantheses |
Every C++ has a __ function | main |
Some functions return a value after completing their assigned task, while others, referred to as ___ ___, do not. | void functions |
A ___ ___ marks the beginning of a function. | function header |