Find the correct list, which is the reverse (at all levels) of the given list : [[4, 7, 8], 2, 9, [19, 6], 20, 3] (i) 3, 20
(ii) 9, 2
(iii) [6, 19]
(iv) [8, 7, 4]
(i), (iii), (ii) & (iv)
"Reverse at all levels" means two things at once : reverse the order of the top-level elements, and reverse the contents of every nested sub-list as well.
Step 1 — reverse the outer list. Reading the six elements of
[[4, 7, 8], 2, 9, [19, 6], 20, 3]
from the back gives
3, 20, [19, 6], 9, 2, [4, 7, 8]
Step 2 — reverse each sub-list in place. The two nested lists become [6, 19] and [8, 7, 4], so the complete answer is
[3, 20, [6, 19], 9, 2, [8, 7, 4]]
Step 3 — match this against the fragments offered.
| Position | Content | Fragment |
|---|---|---|
| 1st and 2nd | 3, 20 | (i) |
| 3rd | [6, 19] | (iii) |
| 4th and 5th | 9, 2 | (ii) |
| 6th | [8, 7, 4] | (iv) |
The order is therefore (i), (iii), (ii), (iv) — option 3.
The trap is option 4, which simply lists the fragments in their printed order and looks plausible because it begins correctly with (i). What separates it from the right answer is the position of the sub-lists: in the reversed list, [19, 6] was the fourth of six elements, so reversing puts it third — ahead of the 9 and the 2, not after them. Option 4 leaves both sub-lists where the fragment numbering put them rather than where reversal puts them.
The distinction being tested is between a shallow and a deep reverse. A shallow reverse would give [3, 20, [19, 6], 9, 2, [4, 7, 8]], with the inner lists untouched; the phrase "at all levels" requires the operation to recurse into every element that is itself a list. In code the difference is one line — whether the function calls itself on nested elements or merely copies them.
Hence, the correct sequence is (i), (iii), (ii) & (iv).
The function "isalnum( )" returns a non-zero value if the character is alphanumeric and zero otherwise. What is header file to be used in the main program ?
To read a integer variable, find the correct format given below :
Int m;
Which of the following is not an infinite loop ?
(A) int i = 1;
while (1)
{
i++ ;
}
(B) for ( ; ; ) ;
(C) int t = 0, f ;
while (t)
{
f = 1;
}
(D) int y, x = 0 ;
do
{
y = x;
}
while (x == 0);
The three types of loops available in C language are
i. for
ii. while
iii. do-while
Which loops do not operate without testing the condition even once ?
Match the following :
| List – I | List – II |
| a. associativity | i. memory storage |
| b. # define | ii. if-then-else |
| c. auto | iii. operators with equal precedence |
| d. conditional operator | iv. define operator |
Codes :
Assertion (A) : 'C' uses many data types such as integers (short and long) and float etc.
Reason (R) : Conversion specifier used for short unsigned integer is % lu.
Which bitwise operator is suitable for turning off a particular bit in a number ?
Which storage class is used for the variables that are often required in a program ?
Which is not a proper way of array declaration ?
Exponentiation operation in C is carried out as
Read the given figure and find the region representing persons who are educated and employed but not confirmed in job.

The magazine in which Mahatma Gandhi mentioned what he wanted the Constitution to do is:
Which gas shields the surface of the earth from ultraviolet radiation from the sun?
Which event is marked as an Intangible Cultural Heritage of Humanity by UNESCO?
Who has been conferred with the rank of the Commander of the Order of the British Empire in 2018?