Question 64Asked in UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)

Match the following with respect to the jump statements : List-I

Match the following with respect to the jump statements : List-I (A) Return (B) Goto (C) Break (D) Continue List-II (i) The conditional test and increment portions (ii) A value associated with it (iii) Requires a label for operation (iv) An exit from only the innermost loop Codes : A B C D
  1. Aii iii iv i
  2. Biii iv i ii
  3. Civ iii ii i
  4. Div iii i ii
Show answerHide answer

Correct answer: (A) ii iii iv i

Explanation

Return : returns a value associated with it after completion of the function body. goto : control jumps from one statement to another by following the label. break : exits only from the innermost loop in which it appears. continue : skips the rest of the loop body and passes control to the conditional test and increment portions of the loop. So A-ii, B-iii, C-iv, D-i, i.e. option (a).

From UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions)

This is question 64 of UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.