GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Compute frame-buffer memory requirements

2 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Multiply horizontal and vertical pixel counts by bits per pixel, then convert bits to bytes. The 1995 character-cell geometry must first become 720 by 300 pixels at one bit per pixel; the 2000 question derives depth from color count and compares storage to 1 MB.

2 marks · MCQ
Report issue

Frame-buffer capacity and color depth

Memory Organization & Address Translation

Question 2.13, GATE 2000: A graphics card has 1 MB on-board memory. Which mode cannot fit:1600×400 at 256 colors;1600×400 at 16 million colors;800×400 at 16 million colors;800×800 at 256 colors? Monitor physical size is also listed.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: A palette of 256 colors needs 8 bits=1 byte per pixel. About 16 million colors requires 24 bits=3 bytes per pixel in the conventional packed framebuffer.

Step 2: The four memory needs are 640,000;1,920,000;960,000;640,000 bytes respectively. Only the second exceeds either 1,000,000 or 1,048,576 bytes.

Thus B. Screen size in inches does not affect the number of stored pixels. The calculation assumes one packed buffer without extra padding, double buffering or 32-bit-per-pixel storage.

Original paper, page 5

Descriptive
Report issue

Size a monochrome graphics buffer

Memory Organization & Address Translation

Question 17(b), GATE 1995: A CRT has 80×25 character cells, each 9×12 pixels. Find video-buffer RAM for monochrome graphics at one bit per pixel.
Tap to enlarge
Answer & solution

Answer: 27,000 bytes (216,000 bits), about 26.367 KiB. (no official key was published)

Convert the character grid into pixel dimensions first. There are 80×9=720 horizontal pixels and 25×12=300 vertical pixels. The bitmap therefore contains 720×300=216,000 pixels. At one bit per pixel it requires 216,000 bits, which is 216,000/8=27,000 bytes.

The same result follows by counting 80×25=2000 cells, each covering 9×12=108 pixels: 2000×108=216,000. This cross-check shows that the cell dimensions are not merely font metadata; they determine the graphics resolution. The result is 27 decimal kB or 27,000/1024≈26.367 KiB.

This is a tightly packed one-bit framebuffer. A 720-pixel row occupies exactly 90 bytes, so no padding is needed to reach a whole-byte row boundary. A device might allocate a larger power-of-two RAM bank or impose extra row alignment, but neither is specified. Text-mode character/attribute storage is not the requested buffer: the problem explicitly asks for monochrome graphics mode.

Original paper, page 7