
- •Vector can change the length, array can't
- •Initalize the objects
- •In which type does the enumerators are stored by the compiler?
- •Void pointer can point to which type of objects?
- •In swap 105 In main 510
- •8, Memory address
- •In swap 105 In main 105
- •Void doesn’t return;
- •Int anarray[2][2];
- •Int anarray[10];
- •Int anarray[20][20];
- •Ifstream
- •Ios::create
- •Inline void foo() {}
Int anarray[10];
What is the index number of the last element of an array with 29 elements? 28
Which of the following is a two-dimensional array?
Int anarray[20][20];
Which of the following correctly accesses the seventh element stored in foo, an array with 100 elements?
foo[6];
Which of the following gives the memory address of the first element in array foo, an array with 100 elements? foo;
Which of the following classes handles file input?
Ifstream
Which of the following is not a valid ofstream argument?
Ios::create
Which of the following is a valid class declaration?
class A { int x; };
Which functions will every class contain?
Both a constructor and a destructor
Which statement would be used to declare a 10-element integer array c? int c[ 10 ];
Which of the following for headers is not valid?
for ( int i = 0; int j = 5; ; i++ )
Which is not a proper prototype? double funct(char x)
Which of the following is a complete function?
int funct(int x) {return x=x+1;}
Which of the following shows the correct syntax for an if statement? expression if
Which of the following is the correct operator to compare two variables? = =
Which conversion is not possible? All are possible
Which of the following is a valid inline for function foo?
Inline void foo() {}
Which refrence modifier is used to define reference variable? &
Which can be can be used to create a random number without duplication? Time
Which character is used to terminate the string? Null