Gce Model Questions Vol1 2021 Computer Studies Question 40
Practice objective / multiple choice question 40 from the 2021 Gce Model Questions Vol1 Computer Studies examination.
A web page uses CSS Grid for a gallery of eight boxes (class ".box"). The base stylesheet contains:\n\n```css\n .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }\n .box { background: #ccc; height: 150px; }\n```\n\nTwo media queries are required: when the viewport width is less than \(800\) px the gallery should display two columns, and when it is less than \(500\) px it should display a single column.\n\n(a) Write the complete CSS (including the two media queries) to achieve this behaviour.\n(b) State how many columns will be displayed at viewport widths of \(750\) px and \(450\) px.
Answer Options
About This Question
This is Gce Model Questions Vol1 2021 Computer Studies Question 40. It is one of the objective questions from the 2021 Gce Model Questions Vol1 Computer Studies examination.
Difficulty level: Hard .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.