Q3 · General Aptitude · MCQ · 1 mark
If
then the value of is:
- (A)2
- (B)4
- (C)6
- (D)8
Answer (official key): B
Solution
Use the identity .
Here,
So,
and
Therefore,
Given
we get
Therefore, the correct answer is Option B.
The official GATE 2021 Computer Science & Information Technology (Set 2) paper, organised by IIT Bombay: 65 questions for 100 marks in 3 hours. Download the official question paper and answer key as PDFs. Below is how the marks were split by topic, the complete official answer key and 5 questions solved step by step.
Source: the official paper and answer key published by IIT Bombay for GATE 2021 (official GATE site). Spotted a mistake? Email team@lemyte.com.
Where the marks were
Computer Science & Information Technology questions only; General Aptitude adds 15 marks on top. The top three topics carried 28 of the 85 subject marks.
| Topic | Questions | Marks |
|---|---|---|
| Algorithms | 6 | 10 |
| Theory of Computation | 6 | 9 |
| Computer Organization and Architecture | 6 | 9 |
| Programming and Data Structures | 6 | 8 |
| Compiler Design | 5 | 8 |
| Databases | 5 | 8 |
| Computer Networks | 4 | 7 |
| Operating System | 4 | 7 |
| Digital Logic | 4 | 6 |
| Probability and Statistics | 3 | 5 |
| Discrete Mathematics | 3 | 4 |
| Linear Algebra | 2 | 3 |
| Calculus | 1 | 1 |
Free solved questions
Question text and figures as in the official paper, the answer from the official key, and a worked solution. The other 60 solutions are in your report after you take the paper.
Q3 · General Aptitude · MCQ · 1 mark
If
then the value of is:
Answer (official key): B
Solution
Use the identity .
Here,
So,
and
Therefore,
Given
we get
Therefore, the correct answer is Option B.
Q4 · General Aptitude · MCQ · 1 mark
If is the angle, in degrees, between the longest diagonal of the cube and any one of the edges of the cube, then
Answer (official key): B
Solution
Take a cube of side length . An edge vector can be represented as
and the body diagonal vector as
Then
Therefore, the correct answer is Option B.
Q20 · Digital Logic · MCQ · 1 mark
Which one of the following circuits implements the Boolean function given below?
where is the minterm.




Answer (official key): A
Solution
Use as the select lines of the 4×1 multiplexer.
For each combination:
The circuit matching this assignment is Option A.
Therefore, the correct answer is Option A.
Q21 · Theory of Computation · MSQ · 1 mark
Let be a regular language and be a context-free language. Which of the following languages is/are context-free?
Answer (official key): B, C, D
Solution
Since is regular, is also regular.
For option B:
by De Morgan's law. The intersection of a regular language and a context-free language is context-free. So B is context-free.
For option C:
so the expression becomes
which is regular, hence context-free. So C is context-free.
For option D:
So D is context-free.
Option A is not necessarily context-free because context-free languages are not closed under complement in general.
Therefore, the correct answers are B, C, and D.
Q26 · Computer Organization and Architecture · Numerical · 1 mark
Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory through cycle stealing at regular intervals. Consider a 2 MHz processor.
If 0.5% processor cycles are used for DMA, the data transfer rate of the device is __________ bits per second.
Answer (official key): 80000
Solution
The processor frequency is
cycles per second.
DMA uses 0.5% of processor cycles:
cycles per second.
Each DMA cycle transfers one 8-bit character, so the data transfer rate is
bits per second.
Therefore, the answer is 80000.
The other 60 questions are solved in your report when you take GATE 2021 CS (Set 2) as a 3-hour test.
Take GATE 2021 CS (Set 2) as a testOfficial answer key
All 65 answers from the official key. Numerical answers are ranges; “or” means the key accepts either answer.
Download the official GATE 2021 CS (Set 2) answer key (PDF)| Q | Topic | Type | Marks | Answer |
|---|---|---|---|---|
| 1 | Verbal Aptitude | MCQ | 1 | A |
| 2 | Spatial Aptitude | MCQ | 1 | B |
| 3 | Quantitative Aptitude | MCQ | 1 | B |
| 4 | Spatial Aptitude | MCQ | 1 | B |
| 5 | Verbal Aptitude | MCQ | 1 | C |
| 6 | Spatial Aptitude | MCQ | 2 | A |
| 7 | Quantitative Aptitude | MCQ | 2 | A |
| 8 | Analytical Aptitude | MCQ | 2 | C |
| 9 | Quantitative Aptitude | MCQ | 2 | C |
| 10 | Verbal Aptitude | MCQ | 2 | C |
| 11 | Computer Networks | MCQ | 1 | C |
| 12 | Programming and Data Structures | MCQ | 1 | C |
| 13 | Programming and Data Structures | MCQ | 1 | C |
| 14 | Algorithms | MCQ | 1 | C |
| 15 | Theory of Computation | MCQ | 1 | C |
| 16 | Algorithms | MCQ | 1 | B |
| 17 | Compiler Design | MCQ | 1 | C |
| 18 | Databases | MCQ | 1 | D |
| 19 | Computer Organization and Architecture | MCQ | 1 | C |
| 20 | Digital Logic | MCQ | 1 | A |
| 21 | Theory of Computation | MSQ | 1 | B, C, D |
| 22 | Compiler Design | MSQ | 1 | D |
| 23 | Operating System | MSQ | 1 | A, C, D |
| 24 | Discrete Mathematics | MSQ | 1 | B, D |
| 25 | Discrete Mathematics | MSQ | 1 | B, C |
| 26 | Computer Organization and Architecture | Numerical | 1 | 80000 |
| 27 | Calculus | Numerical | 1 | 19 |
| 28 | Programming and Data Structures | Numerical | 1 | 15 |
| 29 | Theory of Computation | Numerical | 1 | 256 |
| 30 | Probability and Statistics | Numerical | 1 | 15 to 16 |
| 31 | Programming and Data Structures | Numerical | 1 | 1 |
| 32 | Databases | Numerical | 1 | 698 |
| 33 | Digital Logic | Numerical | 1 | 3 |
| 34 | Computer Organization and Architecture | Numerical | 1 | 2 |
| 35 | Linear Algebra | Numerical | 1 | 4 |
| 36 | Algorithms | MCQ | 2 | C |
| 37 | Probability and Statistics | MCQ | 2 | D |
| 38 | Compiler Design | MCQ | 2 | D |
| 39 | Compiler Design | MCQ | 2 | A |
| 40 | Algorithms | MCQ | 2 | B |
| 41 | Databases | MCQ | 2 | B |
| 42 | Computer Organization and Architecture | MCQ | 2 | A |
| 43 | Programming and Data Structures | MCQ | 2 | D |
| 44 | Theory of Computation | MCQ | 2 | C |
| 45 | Databases | MCQ | 2 | B |
| 46 | Digital Logic | MCQ | 2 | B |
| 47 | Computer Networks | MCQ | 2 | C |
| 48 | Probability and Statistics | MCQ | 2 | A |
| 49 | Linear Algebra | MCQ | 2 | B |
| 50 | Operating System | MSQ | 2 | A, D |
| 51 | Databases | MSQ | 2 | A, C, D |
| 52 | Algorithms | MSQ | 2 | A, B |
| 53 | Theory of Computation | MSQ | 2 | B, C, D |
| 54 | Theory of Computation | MSQ | 2 | A, B, C |
| 55 | Operating System | MSQ | 2 | A, B, C |
| 56 | Computer Organization and Architecture | MSQ | 2 | A, D |
| 57 | Computer Networks | MSQ | 2 | B, C |
| 58 | Algorithms | Numerical | 2 | 929 |
| 59 | Programming and Data Structures | Numerical | 2 | 60 |
| 60 | Compiler Design | Numerical | 2 | 8 |
| 61 | Operating System | Numerical | 2 | 4108 |
| 62 | Discrete Mathematics | Numerical | 2 | 59049 |
| 63 | Computer Networks | Numerical | 2 | 130 to 140 |
| 64 | Computer Organization and Architecture | Numerical | 2 | 1.87 to 1.88 |
| 65 | Digital Logic | Numerical | 2 | 6 |
65 questions for 100 marks: 10 General Aptitude questions worth 15 marks and 55 Computer Science & Information Technology questions worth 85 marks. By type, there were 34 MCQs, 13 MSQs, 18 numerical answer (NAT) questions. The paper lasted 3 hours.
Yes, for MCQs only. A wrong MCQ answer costs one-third of its marks (−⅓ for a 1-mark question, −⅔ for a 2-mark question). MSQ and numerical (NAT) questions have no negative marking, and an MSQ earns marks only when every correct option is chosen.
Outside General Aptitude, the biggest topics were Algorithms (10 marks), Theory of Computation (9 marks), Computer Organization and Architecture (9 marks). The full topic-wise split is in the table on this page.
No. Every question was graded with the answer in the official key.
From the official answer key published by IIT Bombay, which organised GATE 2021. Range answers for numerical questions and questions with more than one accepted answer are kept exactly as the key gives them.
Other GATE CS papers
GATE CS topic-wise weightage and 2027 syllabus