What function initalizes variables in a class:
Constructor 
Destructor 
Constitutor 
A and B are correct. 
No correct answer

To include code from the library in the program, such as iostream, a directive would be called up using this command.
#include <> with iostream.h inside the brackets 
#include <>; with iostream.h inside the brackets 
include (iostreamh) 
include #iostream,h; 
No correct answer

Single line comments explaining code would be preceded like in the following example
// 
/** 
*// 
/* 
No correct answer

Which line has all reserved words ?
if, else, for, while do, switch, continue, break 
char, int, float, doubled, short, long, unsigned, signed 
sizeof, const, typedef, static, voided, enum, struct, union 
defaulted, goto, return, extern, private, public, protected 
No correct answer

What punctuation must each command line have at the end of the line ?
; 
: 
, 
! 
No correct answer

The C++ language is
case-sensitive. 
Not case-sensitive. 
It depends 
None of these 
No correct answer

The number 5.9875e17 must be stored in a(n):
double 
int 
long 
float 
No correct answer

Select the correct definition for a string variable.
char mystr[20]; 
string mystr; 
string mystr[20]; 
string[20] mystr; 
No correct answer

The sentence "Hello world!" uses _____ elements in a character array.
13 
10 
11 
12 
No correct answer

When you are creating a structure, you need to use the following keyword
struct 
structure 
object 
record 
No correct answer

Select the correct function definition (NOT prototype) from the list below.
double pow(double num, int pow); 
void intro(); 
double sin(double rad); 
int foo(int bar; double baz) 
No correct answer

Cout can print multiple values or variables in a single command using the following syntax:
cout << "Hi" << bob << "\n"; 
cout << "Hi" + bob + "\n"; 
cout << "Hi", bob, "\n"; 
cout << ("Hi" & bob & "\n"); 
No correct answer

Write a for loop that counts from 0 to 5.
for (c = 0; c <= 5; c++) 
for (int c = 0; c <= 6; c++) 
for (c = 0; c < 5; c++) 
for (c = 0; c < 5; c++); 
No correct answer

What does the statement #include do ?
It defines the function iostream.h 
It tells the compiler where the program begins 
It defines the words TRUE and FALSE 
It allows the programmer to use cout << It defines the statement return 
No correct answer

Which of the following converts an integer "value" to its ASCII equivalent ?
atoi(value) 
cout << value 
(char) value 
char (value) 
No correct answer

Indicate which data type is not part of standard C++.
real
bool 
int 
double 
No correct answer

Which one of the choices would produce the following output ?
cin >> "Hello World"; 
cout << "Hello" << "World"; 
cout << "Hello \n World"; 
cout << "Hello World\n"; 
No correct answer

What is the output of the following code? for (int i=0; i<10; i++); cout << i%2 << " "; }
1 0 1 0 1 0 1 0 1 0 
0 1 2 3 4 5 6 7 8 9 
0 2 4 6 8 10 12 14 16 18 
0 1 0 1 0 1 0 1 0 1 
No correct answer

What is the output of the following code?  for (int a = 1; a <= 1; a++) cout << a++; cout << a;
22 
12 
error 
23 
No correct answer

For which values of the integer _value will the following code become an infinite loop? int number=1; while (true) { cout << number;if (number == 3) break;number += _value; } 
only 1
only 0 
only 2 
only 1 or 2 
No correct answer

     
4
2
7
6 
3

      ? 
2 
3 
5
8
1 

  , ,    
ee 
 
 

  
 
    
4
2
7
5
6

      
2
3
5
1
8

       






  
a a a u  
 
     
    
  

  ,       
3
2
5 
7
1

      FORTRAN  1957 ?
e



  

?   
FLOWMATIC, COBOL  
IPL, LISP   
FORTRAN, ALGOL
CPL, BCPL
  

   LISP
-





 a  e  a  
COBOL
LISP
ALGOL
FORTRAN
C++
 
    60-      
FORTRAN
COBOL
ALGOL
LISP
C++

    60-     
LISP
ALGOL
FORTRAN
COBOL
C++

       
6
5
7 
3
4

      . 
4
5
7 
1
3
 
    .
6
7
4
3
2
 
     .
3
4
2
5
7

      .
3
2
8
5
7

        
- 
eiia?iua aaoiiaou
Ou??eia iaoeianu
 a?aiiaoeea
  