Class 10 Computer Science — What a page is made of
Work out how many separate files a browser has to fetch to show a page, and what changes when some of them are already stored.
Name: ________________________
1.A page's HTML is 6 KB and its stylesheet is 4 KB, and it names two pictures of 30 KB each. How many KB does the browser fetch altogether to show the page?
2.Sort each of these by whether it arrives inside the HTML file itself or is a separate file the browser has to ask for.
Groups: Comes inside the HTML file · Is a separate file, asked for on its own
- The name of a picture
- A photograph on the page
- The picture that name refers to
- The words of a paragraph
- The stylesheet
- A heading
3.Match each page to the number of files a browser has to fetch to show the whole of it.
- HTML and nothing else
- HTML and one stylesheet
- HTML, one stylesheet and two pictures
- HTML and six pictures
- HTML, two stylesheets and three pictures
- 2
- 1
- 7
- 4
- 6
4.Two pages hold the same amount altogether: one is a single large picture, and the other is twenty small ones. The twenty usually take longer to appear. Why?
- a) Small pictures are stored in a slower way than large ones
- b) A browser can only draw one small picture at a time
- c) Twenty small pictures always come to more than one large one
- d) Each file has to be asked for separately, and every one of those asks takes its own time
5.Why must a browser fetch the HTML file before it can fetch any of the others?
- a) The HTML is always the largest of the files, and the largest has to go first
- b) The names of the other files are inside it, so until it arrives the browser does not know what else to ask for
- c) The other files cannot be stored until the HTML has been stored
- d) The machine holding the page sends them in that order and will not send them in any other
6.A page's HTML names three pictures and one stylesheet, and needs nothing else. Counting the HTML itself, how many separate files must the browser fetch to show the page completely?
7.What is actually inside the HTML file that a browser fetches first?
- a) Only a list of the other files, and none of the words
- b) The page's words and how they are arranged, together with the names of the other files it needs
- c) The pictures, with the words kept in a separate file
- d) Everything the page shows, pictures included, all in the one file
8.A page's HTML names five pictures. One of the five has been deleted from the machine holding the page, and the other four are there. How many of the pictures appear on the screen?
Answer key — Class 10 Computer Science — What a page is made of
- 1. 70
- 2. The words of a paragraph → Comes inside the HTML file; A photograph on the page → Is a separate file, asked for on its own; A heading → Comes inside the HTML file; The stylesheet → Is a separate file, asked for on its own; The name of a picture → Comes inside the HTML file; The picture that name refers to → Is a separate file, asked for on its own
- 3. HTML and nothing else → 1; HTML and one stylesheet → 2; HTML, one stylesheet and two pictures → 4; HTML and six pictures → 7; HTML, two stylesheets and three pictures → 6
- 4. d) Each file has to be asked for separately, and every one of those asks takes its own time
- 5. b) The names of the other files are inside it, so until it arrives the browser does not know what else to ask for
- 6. 5
- 7. b) The page's words and how they are arranged, together with the names of the other files it needs
- 8. 4