Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Документ.rtf
Скачиваний:
8
Добавлен:
25.02.2016
Размер:
140.88 Кб
Скачать

Preparation for Final Exam mcq Quiz big - Попытка 1

Страница:  (Назад)  1  2  3  4  5  6  7  8  9  10  (Далее) 

Question71

Баллов: 1

If ASCII code of 'A' is 65, what is the ASCII code of 'X'?

Выберите один ответ.

a. 88

b. 87

c. 86

d. 90

e. 89

Question72

Баллов: 1

The symbol for the stream insertion operator is ____________.

Выберите один ответ.

a. [ ]

b. >>

c. &

d. @

e. <<

Question73

Баллов: 1

The  of an identifier is the portion of the program in which the identifier can be used.

Question74

Баллов: 1

Write a C++ statement or a set of C++ statements to print the integers from 1 to 20 using a while loop and the countervariable x. Assume that the variable x has been declared, but not initialized. Print only 5 integers per line. [Hint: Use the calculation x % 5. When the value of this is 0, print a newline character; otherwise, print a tab character.]

Выберите один ответ.

a. x = 1; while ( x >= 20 ) { 

cout << x; if ( x % 5 == 0 ) 

cout << endl; 

else 

cout << '\t'; x++; 

}

b. x = 1; while ( x <= 20 ) { 

cout << x; if ( x % 5 = 0 ) 

cout << endl; 

else 

cout << '\t'; x++; 

}

c. x = 1; while ( x <= 20 ) { 

cout << x; if ( x % 5 == 0 ) 

cout << endl; 

else 

cout << '\t'; x++; 

}

Question75

Баллов: 1

Which of the following is a static string?

Выберите один ответ.

a. static string str;

b. Static String

c. char string[100];

d. 'Static String'

e. static

Question76

Баллов: 1

Which of the following accesses a variable in structure *b?

Выберите один ответ.

a. b-var;

b. b>>var;

c. b>var;

d. b.var;

e. b->var;

Question77

Баллов: 1

Find four different C++ statements that each add 1 to integer variable x:

Выберите по крайней мере один ответ:

a. ++x;

b. x == x + 1;

c. x += 1;

d. x =+ 1;

e. x += x + 1;

f. x = x + 1;

g. x++;

Question78

Баллов: 1

Which of the following is true?

Выберите один ответ.

a. .1

b. 66

c. All of the above

d. 1

e. -1

Question79

Баллов: 1

Which of the following is not a correct variable type?

Выберите один ответ.

a. char

b. double

c. int

d. real

e. float

Question80

Баллов: 1

Which of the following operators does NOT indicate a sequence point in the code?

Выберите один ответ.

a. &&

b. ?

c. ,

d. =

e. ||

 

Страница:  (Назад)  1  2  3  4  5  6  7  8  9  10  (Далее)