Int main() {
int a=3, b=5;
int * c = &a;
c = &b;
*c = 10;
cout << a << " " << b;
return 0;
}
Выберите один ответ.
|
|
a. 3 10 |
|
|
|
b. 10 5 |
|
|
|
c. 10 10 |
|
|
|
d. 3 5 |
|
|
|
e. None of the given choices. |
|
Question86
Баллов: 1
C++ considers the variables number and NuMbEr to be identical.
Ответ:
True
False
Question87
Баллов: 1
Outputs to the standard error stream are directed to either the ___________ or the ___________ stream object
Выберите один ответ.
|
|
a. error.out or log.out |
|
|
|
b. cout or cin |
|
|
|
c. cerr or clog |
|
|
|
d. error or log |
|
Question88
Баллов: 1
A
function is invoked with a
________.
Выберите один ответ.
|
|
a. function name |
|
|
|
b. prototype |
|
|
|
c. int main() |
|
|
|
d. function call |
|
Question89
Баллов: 1
What value must a destructor return?
Выберите один ответ.
|
|
a. A pointer to the class. |
|
|
|
b. A status code determining whether the class was destructed correctly |
|
|
|
c. Destructors do not return a value. |
|
|
|
d. An object of the class. |
|
|
|
e. void variable |
|
Question90
Баллов: 1
What is the index number of the last element of an array with 29 elements?
Выберите один ответ.
|
|
a. 0 |
|
|
|
b. 30 |
|
|
|
c. 29 |
|
|
|
d. 28 |
|
|
|
e. Programmer-defined |
|

Страница: (Назад) 1 2 3 4 5 6 7 8 9 10 (Далее)
Preparation for Final Exam MCQ Quiz BIG - Попытка 2
Начало формы
Страница: (Назад) 1 2 3 4 5 6 7 8 9 10
Question91
Баллов: 1
Write two separate statements that each assign the starting address of array numbers to the pointer variable nPtr.
Выберите один ответ.
|
|
a. nPtr = &numbers; nPtr = numbers[ 0 ]; |
|
|
|
b. nPtr = numbers; nPtr = &numbers[ 0 ]; |
|
|
|
c. nPtr = *numbers; nPtr = &numbers[ 0 ]; |
|
Question92
Баллов: 1
What does the program below output?
#include<iostream>
usingnamespace std;
Int main() {
int a[6] = {3,5,1,6,8,2};
int result = 0;
for (int i=0; i<6; i++)
result += a[i];
cout << result << endl;
return 0;
}
Выберите один ответ.
|
|
a. 1440 |
|
|
|
b. 1 |
|
|
|
c. 8 |
|
|
|
d. 25 |
|
|
|
e. None of the given choices. |
|
Question93
Баллов: 1
What is the output of the program?
#include<iostream>
usingnamespace std;































