Name:     Station: 
 
Email: 

Adven09 Lesson 1 completioin

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 1. 

Who created the C++ language?
a.
Microsoft Corporation
c.
Apple Computer
b.
Sun Microsystems
d.
Bell Laboratories
 

 2. 

What term is used to describe statements in a C++ program that contain commands needed for the compiler to effectively compile the program?
a.
compiler commands
c.
compiler functions
b.
compiler directives
d.
compiler procedures
 

 3. 

Which of the following is a possible reason why comment statements are used in a program?
a.
to explain the purpose and operation of a program
b.
to keep track of programmers who have worked on the program
c.
to document changes and fixes that have been applied to the program.
d.
all of the above
 

 4. 

Which statement below can be included in a C++ program to tell the compiler to insert pre-defined statements into the program as if they were being keyed in by the programmer?
a.
#insert
c.
#include
b.
#incl
d.
#ins
 

 5. 

Every C++ program must have which of the following?
a.
compiler directives
c.
a main() function
b.
comment statements
d.
all of the above
 

 6. 

In the program statement: int main() , what does the word int indicate?
a.
that the function will return an integer value to the operating system
b.
that the function is to be passed an integer value when it is called
c.
that this is an internal function and can only be accessed from this program
d.
none of the above
 

 7. 

What characters are used in C++ source code to indicate the beginning and end of a block of code?
a.
parentheses ( )
c.
curly braces { }
b.
angle brackets < >
d.
square brackets [ ]
 

 8. 

C++ source code files are usually saved using which of the following file extensions?
a.
.c
c.
.cpl
b.
.cpp
d.
.c++
 

 9. 

What type of file is created when you use your compiler to create a standalone program?
a.
transportable
c.
cross-platform
b.
restricted use
d.
executable
 



 
         Start Over