Question 81

Which of the following is the correct code to create a framed webpage as in the figure below?

Which of the following is the correct code to create a framed webpage as in the figure below? Figure: the window is split into two rows: the top row (25%) is Frame A; the bottom row (75%) is split into two equal columns (50% each): Frame B on the left and Frame C on the right.
  1. A<FRAMESET ROWS = "25%, 75%"> <FRAME SRC = "A.html"> <FRAMESET COLS = "50%, 50%"> <FRAME SRC = "B.html"> <FRAME SRC = "C.html"> </FRAMESET> </FRAMESET>
  2. B<FRAMESET COLS = "25%, 75%"> <FRAME SRC = "A.html"> <FRAMESET ROWS = "50%, 50%"> <FRAME SRC = "B.html"> <FRAME SRC = "C.html"> </FRAMESET> </FRAMESET>
  3. C<FRAME ROWS = "25%, 75%"> <FRAMESET SRC = "A.html"> <FRAME COLS = "50%, *"> <FRAMESET SRC = "B.html"> <FRAMESET SRC = "C.html"> </FRAME> </FRAME>
  4. D<FRAME COLS = "25%, 75%"> <FRAMESET SRC = "A.html"> <FRAME ROWS = "50%, *"> <FRAMESET SRC = "B.html"> <FRAMESET SRC = "C.html"> </FRAME> </FRAME>
Show answerHide answer

Correct answer: (A) <FRAMESET ROWS = "25%, 75%"> <FRAME SRC = "A.html"> <FRAMESET COLS = "50%, 50%"> <FRAME SRC = "B.html"> <FRAME SRC = "C.html"> </FRAMESET> </FRAMESET>

Explanation

The outer FRAMESET ROWS="25%,75%" makes two rows: Frame A in the first row, and a nested FRAMESET COLS="50%,50%" holding Frames B and C in the second. Options C and D swap FRAME and FRAMESET.

From DSSSB TGT Computer Science Practice Set 5

This is question 81 of DSSSB TGT Computer Science Practice Set 5. 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.