22. Which C++ command creates an array

of 15 chars?

a.       char z[15];

b.      char 1…15;

c.       char [15];

d.      char a,b,c,d,e,f,g,h,I,j,k,l,m,n,o;

 

23. The following “for” declaration

     for ( x=0; x < 5; x = x+1 )

creates which values of x during execution ?

a.       0,1,2,3,4

b.      0,2,4

c.       0,2,4,5

d.      2,4

 

24. Which of the following is a C++ keyword 

(i.e. reserved word, never used as a variable or

function name)?

a.       myName

b.      x

c.       bool

d.      test

 

25. The AND logical operator is

a.       ||

b.      &&

c.       +

d.      .AND.

 

 

 see attachment

  • 12 years ago
100 % correct answer A+++++++++++++ tutorial
NOT RATED

Purchase the answer to view it

  • 8495644_cpp_practiceexam.pdf