File size: 9,679 Bytes
b604cbf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 12,
    "question": "Which one of the following regular expressions correctly represents the language of the finite automaton given below?",
    "options": [
      "ab*bab* + ba*aba*",
      "(ab*b)*ab* + (ba*a)*ba*",
      "(ab*b + ba*a)*(a* + b*)",
      "(ba*a + ab*b)* (ab* + ba*)"
    ],
    "answer": 3,
    "image_png": "cs_question_12.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 15,
    "question": "Consider the problem of reversing a singly linked list. To take an example, given the linked list below, the reversed linked list should look like in the figure. Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in O(1) space?",
    "options": [
      "The best algorithm for the problem takes O(n) time in the worst case.",
      "The best algorithm for the problem takes O(n logn) time in the worst case.",
      "The best algorithm for the problem takes O(n²) time in the worst case.",
      "It is not possible to reverse a singly linked list in O(1) space."
    ],
    "answer": 0,
    "image_png": "cs_question_15.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 19,
    "question": "Consider the following threads, T1, T2, and T3 executing on a single processor, synchronized using three binary semaphore variables, S1, S2, and S3, operated upon using standard wait() and signal(). The threads can be context switched in any order and at any time. Which initialization of the semaphores would print the sequence BCABCABCA….?",
    "options": [
      "S1 = 1; S2 = 1; S3 = 1",
      "S1 = 1; S2 = 1; S3 = 0",
      "S1 = 1; S2 = 0; S3 = 0",
      "S1 = 0; S2 = 1; S3 = 1"
    ],
    "answer": 2,
    "image_png": "cs_question_19.png",
    "image_information": "essential",
    "image_type": "table",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 21,
    "question": "What is printed by the following ANSI C program?",
    "options": [
      "1, 10, 11",
      "1, 10, 14",
      "10, 14, 11",
      "10, 10, 14"
    ],
    "answer": 3,
    "image_png": "cs_question_21.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 22,
    "question": "Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below. What is the number of subnets inside the enterprise network?",
    "options": [
      "3",
      "12",
      "6",
      "8"
    ],
    "answer": 2,
    "image_png": "cs_question_22.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 40,
    "question": "Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S is a 1024-word memory segment and R is a 32-word register file. Based on the value of mode bit M, T selects an input word to load in X. P and Q interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of P, Q, and T?",
    "options": [
      "P is 10:1 multiplexer; Q is 5:1 multiplexer; T is 2:1 multiplexer",
      "P is 10:210 decoder; Q is 5:25 decoder; T is 2:1 encoder",
      "P is 10:210 decoder; Q is 5:25 decoder; T is 2:1 multiplexer",
      "P is 1:10 de-multiplexer; Q is 1:5 de-multiplexer; T is 2:1 multiplexer"
    ],
    "answer": 2,
    "image_png": "cs_question_40.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 41,
    "question": "Consider three floating point numbers A , B and C stored in registers RA, RB and RC, respectively as per IEEE-754 single precision floating point format. The 32-bit content stored in these registers (in hexadecimal form) are as follows. Which one of the following is FALSE?",
    "options": [
      "A + C = 0",
      "C = A + B",
      "B = 3C",
      "(B-C) > 0"
    ],
    "answer": 1,
    "image_png": "cs_question_41.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 43,
    "question": "What is printed by the following ANSI C program?",
    "options": [
      "1 2 3\n10 11 12\n19 20 21",
      "1 4 7\n10 13 16\n19 22 25",
      "1 2 3\n4 5 6\n7 8 9",
      "1 2 3\n13 14 15\n25 26 27"
    ],
    "answer": 0,
    "image_png": "cs_question_43.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  },
  {
    "language": "en",
    "country": "India",
    "file_name": "cs_2022.pdf",
    "source": "https://gate.iitkgp.ac.in/documents/gatepapers/2022/cs_2022.pdf",
    "license": "Education and Research",
    "level": "Graduate Aptitude Test in Engineering (GATE)",
    "category_en": "Computer Science and Information Technology",
    "category_original_lang": "कंप्यूटर विज्ञान और सूचना प्रौद्योगिकी",
    "original_question_num": 44,
    "question": "What is printed by the following ANSI C program?",
    "options": [
      "z K s",
      "122 75 83",
      "* - +",
      "P x +"
    ],
    "answer": 0,
    "image_png": "cs_question_44.png",
    "image_information": "essential",
    "image_type": "diagram",
    "parallel_question_id": null
  }
]