-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS-2022.json
More file actions
1425 lines (1425 loc) · 53.1 KB
/
CS-2022.json
File metadata and controls
1425 lines (1425 loc) · 53.1 KB
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"questionText": "The _________ is too high for it to be considered _________.",
"picture": null,
"options": [
"A) fair / fare",
"B) faer / fair",
"C) fare / fare",
"D) fare / fair"
],
"answer": [
"D"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "General Aptitude (GA)",
"topic": "",
"difficultyLvl": "Easy"
},
{
"questionText": "A function y(x) is defined in the interval [0, 1] on the x-axis as y(x) = { 2 if 0 ≤ x < 1/3; 3 if 1/3 ≤ x < 3/4; 1 if 3/4 ≤ x ≤ 1 }. Which one of the following is the area under the curve for the interval [0, 1] on the x-axis?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111115/isxveeqopgevigqirud2.png",
"options": [
"A) 5/6",
"B) 6/5",
"C) 13/6",
"D) 6/13"
],
"answer": [
"C"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Calculus: Integration",
"difficultyLvl": "Medium"
},
{
"questionText": "Let r be a root of the equation x^2 + 2x + 6 = 0. Then the value of the expression (r + 2)(r + 3)(r + 4)(r + 5) is",
"picture": null,
"options": [
"A) 51",
"B) −51",
"C) 126",
"D) −126"
],
"answer": [
"D"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Linear Algebra: Matrices, determinants, system of linear equations",
"difficultyLvl": "Medium"
},
{
"questionText": "Given below are four statements. Statement 1: All students are inquisitive. Statement 2: Some students are inquisitive. Statement 3: No student is inquisitive. Statement 4: Some students are not inquisitive. From the given four statements, find the two statements that CANNOT BE TRUE simultaneously, assuming that there is at least one student in the class.",
"picture": null,
"options": [
"A) Statement 1 and Statement 3",
"B) Statement 1 and Statement 2",
"C) Statement 2 and Statement 4",
"D) Statement 3 and Statement 4"
],
"answer": [
"A"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Discrete Mathematics: Propositional and first order logic",
"difficultyLvl": "Medium"
},
{
"questionText": "Some people believe that “what gets measured, improves”. Some others believe that “what gets measured, gets gamed”. One possible reason for the difference in the beliefs is the work culture in organizations. In organizations with good work culture, metrics help improve outcomes. However, the same metrics are counterproductive in organizations with poor work culture. Which one of the following is the CORRECT logical inference based on the information in the above passage?",
"picture": null,
"options": [
"A) Metrics are useful in organizations with poor work culture",
"B) Metrics are useful in organizations with good work culture",
"C) Metrics are always counterproductive in organizations with good work culture",
"D) Metrics are never useful in organizations with good work culture"
],
"answer": [
"B"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "General Aptitude (GA)",
"topic": "",
"difficultyLvl": "Easy"
},
{
"questionText": "In a recently conducted national entrance test, boys constituted 65% of those who appeared for the test. Girls constituted the remaining candidates and they accounted for 60% of the qualified candidates. Which one of the following is the correct logical inference based on the information provided in the above passage?",
"picture": null,
"options": [
"A) Equal number of boys and girls qualified",
"B) Equal number of boys and girls appeared for the test",
"C) The number of boys who appeared for the test is less than the number of girls who appeared",
"D) The number of boys who qualified the test is less than the number of girls who qualified"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Probability and Statistics: Mean, median, mode and standard deviation",
"difficultyLvl": "Medium"
},
{
"questionText": "A box contains five balls of same size and shape. Three of them are green coloured balls and two of them are orange coloured balls. Balls are drawn from the box one at a time. If a green ball is drawn, it is not replaced. If an orange ball is drawn, it is replaced with another orange ball. First ball is drawn. What is the probability of getting an orange ball in the next draw?",
"picture": null,
"options": [
"A) 1/2",
"B) 8/25",
"C) 19/50",
"D) 23/50"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Probability and Statistics: Conditional probability and Bayes theorem",
"difficultyLvl": "Medium"
},
{
"questionText": "The corners and mid-points of the sides of a triangle are named using the distinct letters P, Q, R, S, T and U, but not necessarily in the same order. Consider the following statements: \n The line joining P and R is parallel to the line joining Q and S. \n P is placed on the side opposite to the corner T. \n S and U cannot be placed on the same side. \n Which one of the following statements is correct based on the above information?\n",
"picture": null,
"options": [
"A) P cannot be placed at a corner",
"B) S cannot be placed at a corner",
"C) U cannot be placed at a mid-point",
"D) R cannot be placed at a corner"
],
"answer": [
"B"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "General Aptitude (GA)",
"topic": "",
"difficultyLvl": "Easy"
},
{
"questionText": "A plot of land must be divided between four families. They want their individual plots to be similar in shape, not necessarily equal in area. The land has equally spaced poles, marked as dots in the below figure. Two ropes, R1 and R2, are already present and cannot be moved. What is the least number of additional straight ropes needed to create the desired plots? A single rope can pass through three poles that are aligned in a straight line.",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111133/uzabd3ang0pqx9jewmdc.png",
"options": [
"A) 2",
"B) 4",
"C) 5",
"D) 3"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "General Aptitude (GA)",
"topic": "",
"difficultyLvl": "Easy"
},
{
"questionText": "Which one of the following statements is TRUE for all positive functions f(n)?",
"picture": null,
"options": [
"A) Θ(f(n^2)) = f(n^2) when f(n) is a polynomial",
"B) f(n^2) o f(n^2) = f(n^2)",
"C) O(f(n^2)) = f(n^2) when f(n) is an exponential function",
"D) Ω(f(n^2)) = f(n^2)"
],
"answer": [
"A"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Algorithms",
"topic": "Asymptotic worst case time and space complexity",
"difficultyLvl": "Medium"
},
{
"questionText": "Which one of the following regular expressions correctly represents the language of the finite automaton given below?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111152/ojbjlf4t7joic5b788kv.png",
"options": [
"A) ab* bab* ba* aba*",
"B) (ab*) (bab*) ba* aba*",
"C) (ab*) (b* ba* a* b*)",
"D) (ba*) (a* ab* b* ab* ba*)"
],
"answer": [
"D"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Theory of Computation",
"topic": "Regular expressions and finite automata",
"difficultyLvl": "Medium"
},
{
"questionText": "Which one of the following statements is TRUE?",
"picture": null,
"options": [
"A) The (1) LALR parser for a grammar G cannot have reduce-reduce conflict if the (1) LR parser for G does not have reduce-reduce conflict.",
"B) Symbol table is accessed only during the lexical analysis phase.",
"C) Data flow analysis is necessary for run-time memory management.",
"D) (1) LR parsing is sufficient for deterministic context-free languages."
],
"answer": [
"D"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Compiler Design",
"topic": "Parsing",
"difficultyLvl": "Medium"
},
{
"questionText": "In a relational data model, which one of the following statements is TRUE?",
"picture": null,
"options": [
"A) A relation with only two attributes is always in BCNF.",
"B) If all attributes of a relation are prime attributes, then the relation is in BCNF.",
"C) Every relation has at least one non-prime attribute.",
"D) BCNF decompositions preserve functional dependencies."
],
"answer": [
"A"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Databases",
"topic": "Relational model: relational algebra, tuple calculus, SQL. Integrity constraints, normal forms.",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider the problem of reversing a singly linked list. To take an example, given the linked list below,Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in (1) O space?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111162/pfv8mtwhb27ghyirghih.png",
"options": [
"A) The best algorithm for the problem takes Θ(n) time in the worst case.",
"B) The best algorithm for the problem takes Θ(n log n) time in the worst case.",
"C) The best algorithm for the problem takes Θ(n^2) time in the worst case.",
"D) It is not possible to reverse a singly linked list in O(1) space."
],
"answer": [
"A"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Programming and Data Structures",
"topic": "Linked lists",
"difficultyLvl": "Medium"
},
{
"questionText": "Suppose we are given n keys, m hash table slots, and two simple uniform hash functions h1 and h2. Further suppose our hashing scheme uses h1 for the odd keys and h2 for the even keys. What is the expected number of keys in a slot?",
"picture": null,
"options": [
"A) m/n",
"B) n/m",
"C) 2n/m",
"D) 2n/m"
],
"answer": [
"B"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Algorithms",
"topic": "Hashing",
"difficultyLvl": "Medium"
},
{
"questionText": "Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?",
"picture": null,
"options": [
"A) DMA based I/O transfer",
"B) Interrupt driven I/O transfer",
"C) Polling based I/O transfer",
"D) Programmed I/O transfer"
],
"answer": [
"A"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Organization and Architecture",
"topic": "I/O interface (interrupt and DMA mode)",
"difficultyLvl": "Medium"
},
{
"questionText": "Let R1 and R2 be two 4-bit registers that store numbers in 2’s complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives an arithmetic overflow?",
"picture": null,
"options": [
"A) R1 = 1011 and R2 = 1110",
"B) R1 = 1100 and R2 = 1010",
"C) R1 = 0011 and R2 = 0100",
"D) R1 = 1001 and R2 = 1111"
],
"answer": [
"B"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Digital Logic",
"topic": "Number representations and computer arithmetic (fixed and floating point)",
"difficultyLvl": "Medium"
},
{
"questionText": "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.\nT1 T2 T3\nwhile(true){\nwait(S3);\nprint(“C”);\nsignal(S2); }\nwhile(true){\nwait(S1);\nprint(“B”);\nsignal(S3); }\nwhile(true){\nwait(S2);\nprint(“A”);\nsignal(S1); }\nWhich initialization of the semaphores would print the sequence BCABCABCA….?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111163/t9vlaeojomznxl2yudq4.png",
"options": [
"A) S1 = 1; S2 = 1; S3 = 1",
"B) S1 = 1; S2 = 1; S3 = 0",
"C) S1 = 1; S2 = 0; S3 = 0",
"D) S1 = 0; S2 = 1; S3 = 1"
],
"answer": [
"C"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Operating System",
"topic": "Processes, threads, inter‐process communication, concurrency and synchronization",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider the following two statements with respect to the matrices m×n A, n×m B, n×n C and n×n D\nStatement 1: tr(AB) = tr(BA)\nStatement 2: tr(CD) = tr(DC)\nwhere tr() represents the trace of a matrix. Which one of the following holds?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111164/xnng3namaegbe2gjumgi.png",
"options": [
"A) Statement 1 is correct and Statement 2 is wrong.",
"B) Statement 1 is wrong and Statement 2 is correct.",
"C) Both Statement 1 and Statement 2 are correct.",
"D) Both Statement 1 and Statement 2 are wrong."
],
"answer": [
"C"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Linear Algebra: Matrices, determinants, system of linear equations",
"difficultyLvl": "Medium"
},
{
"questionText": "What is printed by the following ANSI C program?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111166/samdr1o7z4op1sft7bf6.png",
"options": [
"A) 1, 10, 11",
"B) 1, 10, 14",
"C) 10, 14, 11",
"D) 10, 10, 14"
],
"answer": [
"D"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Programming and Data Structures",
"topic": "Programming in C",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below.\nWhat is the number of subnets inside the enterprise network?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111167/nychiotkebazk6ygvdrq.png",
"options": [
"A) 3",
"B) 12",
"C) 6",
"D) 8"
],
"answer": [
"C"
],
"score": 1,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Networks",
"topic": "Fragmentation and IP addressing, IPv4, CIDR notation",
"difficultyLvl": "Medium"
},
{
"questionText": "Which of the following statements is/are TRUE?",
"picture": null,
"options": [
"A) Every subset of a recursively enumerable language is recursive.",
"B) If a language L and its complement L are both recursively enumerable, then L must be recursive.",
"C) Complement of a context-free language must be recursive.",
"D) If L1 and L2 are regular, then L1 ∩ L2 must be deterministic context-free."
],
"answer": [
"B",
"C",
"D"
],
"score": 1,
"questionType": "MSQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Theory of Computation",
"topic": "Regular and context-free languages, Turing machines and undecidability",
"difficultyLvl": "Medium"
},
{
"questionText": "Let WB and WT be two set associative cache organizations that use LRU algorithm for cache block replacement. WB is a write back cache and WT is a write through cache. Which of the following statements is/are FALSE?",
"picture": null,
"options": [
"A) Each cache block in WB and WT has a dirty bit.",
"B) Every write hit in WB leads to a data transfer from cache to main memory.",
"C) Eviction of a block from WT will not lead to data transfer from cache to main memory.",
"D) A read miss in WB will never lead to eviction of a dirty block from WB."
],
"answer": [
"A",
"B",
"D"
],
"score": 1,
"questionType": "MSQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Organization and Architecture",
"topic": "Memory hierarchy: cache, main memory and secondary storage",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider the following three relations in a relational database.\n(Employee eId, Name), (Brand bId, bName), (Own eId, bId)\nWhich of the following relational algebra expressions return the set of eIds who own all the brands?",
"picture": null,
"options": [
"A) πeId(πeId,bId(Own) ÷ πbId(Brand))",
"B) πeId(πeId(Own) − πeId(πeId,bId(Own) × πbId(Brand) − Own))",
"C) πeId(πeId,bId(Own) ÷ πbId(Own))",
"D) πeId(πeId,bId(Own) × πbId(Own) ÷ πbId(Brand))"
],
"answer": [
"A",
"B"
],
"score": 1,
"questionType": "MSQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Databases",
"topic": "Relational model: relational algebra",
"difficultyLvl": "Medium"
},
{
"questionText": "Which of the following statements is/are TRUE for a group?",
"picture": null,
"options": [
"A) If for all x, y ∈ G, (xy)^2 = x^2 y^2, then G is commutative.",
"B) If for all x ∈ G, x^2 = 1, then G is commutative. Here, 1 is the identity element of G.",
"C) If the order of G is 2, then G is commutative.",
"D) If G is commutative, then a subgroup of G need not be commutative."
],
"answer": [
"A",
"B",
"C"
],
"score": 1,
"questionType": "MSQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Discrete Mathematics",
"topic": "Monoids, Groups",
"difficultyLvl": "Medium"
},
{
"questionText": "Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index_____________.",
"picture": null,
"options": [],
"answer": [
"509"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Programming and Data Structures",
"topic": "Trees, binary search trees, binary heaps",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider the augmented grammar with {id, *, (, ), +} as the set of terminals.\nS' → S\nS → S + R | R\nR → R * P | P\nP → (S) | id\nIf I0 is the set of two LR(0) items {[S' → •S], [S → •S + R]}, then goto(I0, '(') contains exactly __________ items.",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111117/l8izhywxjfulaox9ifkd.png",
"options": [],
"answer": [
"5"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Compiler Design",
"topic": "Parsing",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is ____________.",
"picture": null,
"options": [],
"answer": [
"36"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Discrete Mathematics",
"topic": "Graphs: connectivity",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider a relation (A, B, C, D, E) with the following three functional dependencies.\nAB → C; BC → D; C → E;\nThe number of superkeys in the relation R is _____________.",
"picture": null,
"options": [],
"answer": [
"8"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Databases",
"topic": "Relational model: relational algebra, normal forms",
"difficultyLvl": "Medium"
},
{
"questionText": "The number of arrangements of six identical balls in three identical bins is______.",
"picture": null,
"options": [],
"answer": [
"7"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Discrete Mathematics",
"topic": "Combinatorics: counting",
"difficultyLvl": "Medium"
},
{
"questionText": "A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 ns. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15 ns, whereas the miss penalty is not affected. The minimum hit rate (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _____________.",
"picture": null,
"options": [],
"answer": [
"0.85"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Organization and Architecture",
"topic": "Memory hierarchy: cache, main memory",
"difficultyLvl": "Medium"
},
{
"questionText": "The value of the following limit is _____________.",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111169/j7wz1jvhudou7h568cm2.png",
"options": [],
"answer": [
"-0.5"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Calculus",
"topic": "Limits, continuity and differentiability",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is_____________.",
"picture": null,
"options": [],
"answer": [
"4"
],
"score": 1,
"questionType": "NAT",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Networks",
"topic": "Application layer protocols: DNS",
"difficultyLvl": "Medium"
},
{
"questionText": "Which one of the following is the closed form for the generating function of the sequence {a_n} (n ≥ 0) defined below?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111119/scklmebejp3m1yp7jcn0.png",
"options": [
"https://res.cloudinary.com/dooaabxbs/image/upload/v1767111121/u4bjb66bkhwmxpy8sxlk.png",
"http://res.cloudinary.com/dooaabxbs/image/upload/v1767111122/lfzpkwjfb2wfdospl8if.png",
"http://res.cloudinary.com/dooaabxbs/image/upload/v1767111124/ale0mkja1xd2ljp5cxsp.png",
"http://res.cloudinary.com/dooaabxbs/image/upload/v1767111125/exf48cpm9hev0cqjh7ml.png"
],
"answer": [
"A"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Discrete Mathematics",
"topic": "Combinatorics: generating functions",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider a simple undirected unweighted graph with at least three vertices. If A is the adjacency matrix of the graph, then the number of 3-cycles in the graph is given by the trace of",
"picture": null,
"options": [
"A) A^3",
"B) A^3 divided by 2",
"C) A^3 divided by 3",
"D) A^3 divided by 6"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Discrete Mathematics",
"topic": "Graphs: connectivity",
"difficultyLvl": "Medium"
},
{
"questionText": "Which one of the following statements is FALSE?",
"picture": null,
"options": [
"A) The TLB performs an associative search in parallel on all its valid entries using page number of incoming virtual address.",
"B) If the virtual address of a word given by CPU has a TLB hit, but the subsequent search for the word results in a cache miss, then the word will always be present in the main memory.",
"C) The memory access time using a given inverted page table is always same for all incoming virtual addresses.",
"D) In a system that uses hashed page tables, if two distinct virtual addresses V1 and V2 map to the same value while hashing, then the memory access time of these addresses will not be the same."
],
"answer": [
"C"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Organization and Architecture",
"topic": "Memory management and virtual memory",
"difficultyLvl": "Medium"
},
{
"questionText": "Let Ri(z) and Wi(z) denote read and write operations on a data element z by a transaction T_i, respectively. Consider the schedule S with four transactions. S: R₄(x)R₂(x)R₃(x)R₁(y)W₁(y)W₂(x)W₃(y)W₄(y) \n Which one of the following serial schedules is conflict equivalent to S?",
"picture": null,
"options": [
"A) T₁ → T₃ → T₄ → T₂",
"B) T₁ → T₄ → T₃ → T₂",
"C) T₄ → T₁ → T₃ → T₂",
"D) T₃ → T₁ → T₄ → T₂"
],
"answer": [
"A"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Databases",
"topic": "Transactions and concurrency control",
"difficultyLvl": "Medium"
},
{
"questionText": "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?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111127/zd2a606ttclb8uyoqdds.png",
"options": [
"A) P is 10:1 multiplexer; Q is 5:1 multiplexer; T is 2:1 multiplexer",
"B) P is 10:210 decoder; Q is 5:25 decoder; T is 2:1 encoder",
"C) P is 10:210 decoder; Q is 5:25 decoder; T is 2:1 multiplexer",
"D) P is 1:10 de-multiplexer; Q is 1:5 de-multiplexer; T is 2:1 multiplexer"
],
"answer": [
"C"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Computer Organization and Architecture",
"topic": "Machine instructions and addressing modes",
"difficultyLvl": "Medium"
},
{
"questionText": "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. RA= 0xC1400000 RB = 0x42100000 RC = 0x41400000 Which one of the following is FALSE?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111128/a9ynw9uosgxuhzz7ubfw.png",
"options": [
"A) 0 = A + C",
"B) C = A + B",
"C) B = 3 × C",
"D) (B − C) > 0"
],
"answer": [
"B"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Digital Logic",
"topic": "Number representations and computer arithmetic (fixed and floating point)",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider four processes P, Q, R, and S scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order P, Q, R, S, all at time t = 0. There is exactly one context switch from S to Q, exactly one context switch from R to Q, and exactly two context switches from Q to R. There is no context switch from S to P. Switching to a ready process after the termination of another process is also considered a context switch. Which one of the following is NOT possible as CPU burst time (in time units) of these processes?",
"picture": null,
"options": [
"A) P = 4, Q = 10, R = 6, S = 2",
"B) P = 2, Q = 9, R = 5, S = 1",
"C) P = 4, Q = 12, R = 5, S = 4",
"D) P = 3, Q = 7, R = 7, S = 3"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Operating System",
"topic": "CPU and I/O scheduling",
"difficultyLvl": "Medium"
},
{
"questionText": "What is printed by the following ANSI C program?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111130/c4m1obnm1hlxrq2arhsu.png",
"options": [
"A) 1 2 3\n10 11 12\n19 20 21",
"B) 1 4 7\n10 13 16\n19 22 25",
"C) 1 2 3\n4 5 6\n7 8 9",
"D) 1 2 3\n13 14 15\n25 26 27"
],
"answer": [
"A"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Programming and Data Structures",
"topic": "Programming in C",
"difficultyLvl": "Medium"
},
{
"questionText": "What is printed by the following ANSI C program?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111131/o4by0fkx8fl296nxesnb.png",
"options": [
"A) z K S",
"B) 122 75 83",
"C) * - +",
"D) P x +"
],
"answer": [
"A"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Programming and Data Structures",
"topic": "Programming in C",
"difficultyLvl": "Medium"
},
{
"questionText": "Consider solving the following system of simultaneous equations using LU decomposition. Which one of the following is the correct combination of values for L32, U33, and x1?",
"picture": "https://res.cloudinary.com/dooaabxbs/image/upload/v1767111136/viysoqwn7zg68y89wzfi.png",
"options": [
"A) L32 = 1/2, U33 = -1, x1 = -1",
"B) L32 = 2, U33 = 2, x1 = -1",
"C) L32 = -1/2, U33 = 2, x1 = 0",
"D) L32 = -1/2, U33 = -1/2, x1 = 0"
],
"answer": [
"D"
],
"score": 2,
"questionType": "MCQ",
"exam": {
"category": "Gate",
"branch": "Computer Science and Information Technology",
"code": "CS",
"year": 2022
},
"chapter": "Engineering Mathematics",
"topic": "Linear Algebra",
"difficultyLvl": "Medium"
},