|
[
|
|
{
|
|
"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
|
|
}
|
|
] |