This set of Web Technology Multiple Choice Questions & Answers (MCQs) focuses on “Frames”.
1. What are Frames?
a) They divide the browser into two or more pieces or panes
b) They divide a webpage
c) They are the type of borders used for a webpage
d) They are the type of borders used by web browsers
View Answer
Explanation: Browser gets divided into panes by Frame, with each pane containing a separate web page. The advantages are that they offer you where you can load and reload single panes without having to reload the entire contents of the browser window.
2. The frameset element is used instead of body element to construct a frame?
a) True
b) False
View Answer
Explanation: First, you use the <frameset> element instead of the <body> element, as this defines the rows and columns your page is divided into. Each frame is then represented by a <frame> element.
3. The frameset element carries which attributes?
a) Height and Width
b) Rows and Cols
c) Key and Value pairs
d) Ros and Columns
View Answer
Explanation: The <frameset> element must carry the two attributes rows and cols, which specify the number of rows and columns that make up the frameset. And there should be no markup between the closing </head> tag and the opening <frameset> tag, other than a comment if you want to include one.
4. What is <noframe> element?
a) It is used to remove the frame
b) It is used for making the frame element non-effective
c) It is used to display frame’s content in a browser which doesn’t support frames
d) It is used to restrict the access of frame element
View Answer
Explanation: Inside the <frameset> element is the empty <frame> elements. The <frame> elements indicate a URL of the document that will be loaded into that frame. There is also a <noframes> element whose contents will be displayed if the user’s browser does not support frames.
5. Which of the following is not a purpose of frames?
a) To display a lot of content in one single page
b) Not to reload a lot of a data while another part of the page changes
c) When you cannot split the document into separate pages
d) For a better appearance size for presentation with the border
View Answer
Explanation: Examples might include a photography site where you have lots of thumbnails in one frame, and the main picture in another. And instead of loading the thumbnails the browser can directly load the image.
6. Which is the wrong way to represent or describe the col width value?
a) Pixels
b) Percentage of browser window
c) Relative widths
d) Percentile
View Answer
Explanation: A wildcard symbol, which is used to represent the remaining part of the page not specified using one of the other methods. You can mix and match these different ways of specifying column widths, but if you do mix them you should be aware of the precedence they take.
7. What is the wildcard symbol?
a) It indicates the rest of the window
b) It indicates the value the column width should
c) It adjusts the width according to length if the mentioned col width is bigger than the browser
d) It is used to restrict the usage of frames in the browser
View Answer
Explanation: The asterisk, or wildcard symbol, indicates the “rest of the window. Here, the first column is 400 pixels wide and the 2nd frame takes up the remaining for cols=”400, *”. If two rows or columns are given the wildcard symbol, then the remaining width is divided by these two columns.
8. What is the default value of rows attribute?
a) 0%
b) 100%
c) 50%
d) No default value exists
View Answer
Explanation: The default value for the rows attribute is 100 percent, so if you do not specify a rows attribute, one row will take up 100 percent of the height of the browser. The rows attributes is similar to column attribute,but it is used to specify the rows in the frameset.
9. Is the frameborder element and border element same?
a) No, they differ from each other
b) Yes, they are same
c) Only when the value is zero for both
d) Only when the value is 50%
View Answer
Explanation: The frameborder attribute specifies whether the borders of that frame are shown. It overrides the value given in the frameborder attribute on the <frameset> element if one is given. And it is same as border attribute only when its value is zero.
10. What is framespacing attribute?
a) It specifies the amount of space between two frames
b) It specifies the amount of space needed between frame and a frameset
c) It specifies the amount of space between frames in a frameset
d) It specifies the amount of space between frames and the web browser
View Answer
Explanation: The framespacing attribute only works in Internet Explorer; it specifies the amount of space between frames in a frameset. The value should be given in pixels and the default value is 2 if not otherwise specified.
Sanfoundry Global Education & Learning Series – Web Technology.
To practice all areas of Web Technology, here is complete set of 1000+ Multiple Choice Questions and Answers.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]