- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
- •Preparation for Final Exam mcq Quiz big - Попытка 1
Preparation for Final Exam mcq Quiz big - Попытка 1
Страница: (Назад) 1 2 3 4 5 6 7 8 9 10 (Далее)
Question81
Баллов: 1
What is the correct value to return to the operating system upon the successful completion of a program?
Выберите один ответ.
|
a. 1 |
|
|
b. Programs do not return a value. |
|
|
c. OK |
|
|
d. 01 |
|
|
e. -1 |
|
Question82
Баллов: 1
What is the value of y at the end of main? const int x = 5; int main(int argc, char** argv) { int x[x]; int y = sizeof(x) / sizeof(int); return 0; }
Выберите один ответ.
|
a. 0 |
|
|
b. undefined |
|
|
c. 20 |
|
|
d. 1 |
|
|
e. 5 |
|
Question83
Баллов: 1
Use a for statement to print the elements of array numbers using pointer/subscript notation with pointer nPtr
Выберите один ответ.
|
a. cout << fixed << showpoint << setprecision( 1 );for ( int m = 0; m < SIZE; m++ ) cout << nPtr[ m ] << ' '; |
|
|
b. cout << fixed << showpoint << setprecision( 1 );for ( int m = 0; m < SIZE; m++ ) cout << nPtr << ' '; |
|
|
c. cout << fixed << showpoint << setprecision( 1 );for ( int m = 0; m < SIZE; m++ ) cout << *nPtr[ m ] << ' '; |
|
Question84
Баллов: 1
Outputs to the standard error stream are directed to either the ___________ or the ___________ stream object
Выберите один ответ.
|
a. cerr or clog |
|
|
b. cout or cin |
|
|
c. error.out or log.out |
|
|
d. error or log |
|
Question85
Баллов: 1
The ________ qualifier is used to declare read-only variables
Выберите один ответ.
|
a. read-only |
|
|
b. const |
|
|
c. static |
|
|
d. read |
|
|
e. unchangeable |
|
Question86
Баллов: 1
Identify and correct the errors in the following code: cin << value;
Ответ:
Question87
Баллов: 1
What value gets printed by the program?#include <iostream> int foo(int x, int y) { return x+y; } int foo(const int x, const int y) { return x+y+1; } int main(int argc, char** argv) { const int x = 3; const int y = 2; std::cout << foo(x,y) << std::endl; return 0; }
Выберите один ответ.
|
a. ill-formed |
|
|
b. 3 |
|
|
c. undefined |
|
|
d. 5 |
|
|
e. 6 |
|
Question88
Баллов: 1
What value does size print out? #include <iostream> const int SIZE = 5; struct tester { int array[SIZE]; enum { SIZE = 3 }; void size() { std::cout << sizeof(array) / sizeof(int); } }; int main(int argc, char** argv) { tester t; t.size(); return 0; }
Выберите один ответ.
|
a. 3 |
|
|
b. 0 |
|
|
c. 8 |
|
|
d. undefined |
|
|
e. 5 |
|
Question89
Баллов: 1
For a local variable in a function to retain its value between calls to the function, it must be declared with the ________ storage-class specifier
Выберите по крайней мере один ответ:
|
a. static |
|
|
b. auto |
|
|
c. local |
|
|
d. register |
|
|
e. member |
|
Question90
Баллов: 1
Determine the value, true or false, of each of the following Boolean expressions, assuming that the value of the variable count is 0 and the value of the variable limit is 10.
(limit > 0) && ((limit/count) > 7)
Выберите один ответ.
|
a. false |
|
|
b. Both true and false |
|
|
c. None of the given choices. |
|
|
d. true |
|
|
e. Error |
|
Страница: (Назад) 1 2 3 4 5 6 7 8 9 10 (Далее)