Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
wpor_c.docx
Скачиваний:
13
Добавлен:
25.02.2016
Размер:
1.8 Mб
Скачать

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

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]