Grade 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 browser fetched nine files to show one page. One of the nine was the HTML and two were stylesheets, and every other one was a picture. How many pictures does the page have?
2.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?
3.A page needs its HTML and four other files. The reader opens it again a moment later, and the browser has all four of the other files stored from the first visit but fetches the HTML afresh. How many files does it fetch this time?
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.A page needs eight files altogether. On a second visit the browser already has six of them stored, but the HTML has been changed since and must be fetched again, and there is one picture the browser has never seen. How many files does it fetch?
6.Put these pages in order of how many files a browser must fetch to show each one, fewest first.
- A page with one stylesheet and one picture
- A page of writing with no pictures and no stylesheet
- A page with two stylesheets and five pictures
- A page with one stylesheet and three pictures
7.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 stylesheet
- A heading
- The name of a picture
- The words of a paragraph
- The picture that name refers to
- A photograph on the page
8.A page's files come to 90 KB altogether, of which the HTML is 5 KB. On a second visit everything except the HTML is already stored, and the HTML is fetched again. How many KB does the browser fetch this time?
Answer key — Grade 10 Computer Science — What a page is made of
- 1. 6
- 2. 5
- 3. 1
- 4. d) Each file has to be asked for separately, and every one of those asks takes its own time
- 5. 2
- 6. 1. A page of writing with no pictures and no stylesheet 2. A page with one stylesheet and one picture 3. A page with one stylesheet and three pictures 4. A page with two stylesheets and five pictures
- 7. 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
- 8. 5