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.

Gce Model Questions Vol1 2021 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 40 GCE_MODEL_QUESTIONS_VOL1 • 2021 • COMPUTER_STUDIES • objective

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

A. CSS as shown; 4 columns at 750 px, 2 columns at 450 px
B. CSS as shown; 3 columns at 750 px, 2 columns at 450 px
C. CSS as shown; 2 columns at 750 px, 2 columns at 450 px
Correct Answer D. CSS as shown; 2 columns at 750 px, 1 column at 450 px
Correct Answer
D
Correct Option:
CSS as shown; 2 columns at 750 px, 1 column at 450 px

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.

Unlock Full Access Available for Android & Windows
Chat with Support