Int main() {
int *x = newint[10];
for (int i=0; i<10; i++)
x[i] = i+5;
cout << *(x+1) << endl;
return 0;
}
Выберите один ответ.
a. 002BF7E0 |
|
|
b. 1 |
|
|
c. 7 |
|
|
d. 6 |
|
|
e. 5 |
|
Question94
Баллов: 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 ] << ' '; |
|
Question95
Баллов: 1
Correct the mistakes
float a, b, c;
cin << a,b,c;
Выберите один ответ.
a. cin >> a; b; c; |
|
|
b. cin << a,b,c; |
|
|
c. cin >> a,b,c; |
|
|
d. cin >> a >> b >> c; |
|
|
e. cin << a; b; c; |
|
Question96
Баллов: 1
Give the function header for the following function. Function hypotenuse that takes two double-precision, floating-point arguments, side1 and side2, and returns a double-precision, floating-point result.
Выберите один ответ.
a. not sure |
|
|
b. double float hypotenuse( double float side1, double float side2) |
|
|
c. float hypotenuse( float side1, float side2) |
|
|
d. double hypotenuse( double side1, double side2) |
|
|
e. float hypotenuse( double side1, double side2) |
|
Question97
Баллов: 1
The cout stream normally is connected to the display screen
Ответ:
TrueFalse
Question98
Баллов: 1
Which keyword specifies that an integer variable can not take negative values?
Выберите один ответ.
a. There is not such a keyword |
|
|
b. positive |
|
|
c. unsigned |
|
|
d. long |
|
|
e. Other |
|
Question99
Баллов: 1
Write one or more statements that perform the following task for and array called “fractions”. Assign the value 1.667 to array element 9
Выберите один ответ.
a. no ideas |
|
|
b. fractions( 9 ) = 1.667; |
|
|
c. fractions[ 8 ] = 1.667; |
|
|
d. fractions( 8 ) = 1.667; |
|
|
e. fractions[ 9 ] = 1.667; |
|
Question100
Баллов: 1
Which of the following is a limit on inline functions?
Выберите один ответ.
a. Inline functions cannot return a value |
|
|
b. Inline functions cannot be used more than three times in a one code file. |
|
|
c. Inline functions must be less than ten lines. |
|
|
d. Inline functions must return a value. |
|
|
e. The compiler may choose to ignore an inline directive. |
|
Страница: (Назад) 1 2 3 4 5 6 7 8 9 10
Конец формы
Конец формы
Конец формы
Конец формы
Конец формы
Конец формы
Конец формы
Конец формы