What is the output of the following code segment?
n = 1;
while (n <= 5)
cout << n << ' ';
n++;
a. 1 2 3 4 5
b. 1 1 ... and on forever
c. 1 2 3 4 5 6
d. 1 2 3 4
e. 2 3 4 5
b. 1 1 ... and on forever
Computer Science & Information Technology
You might also like to view...
Overridden Task method _______ performs the Task’s work.
a. call b. work c. processInBackground d. doWorkInBackground
Computer Science & Information Technology
Map method ________ is used to determine whether a map contains a mapping for the specified key.
a. containsKey b. hasKey c. containsMapping d. hasMapping
Computer Science & Information Technology