CoolFace
Apppublic

sujithh/llm-evaluation

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
output.json818 linesDownload Raw Back to root
1[2  {3    "question_number": 1,4    "question": "Despite his initial hesitation, Rehman’s _________ to contribute to the success of\nthe project never wavered.\nSelect the most appropriate option to complete the above sentence.",5    "options": {6      "A": "ambivalence",7      "B": "satisfaction",8      "C": "resolve",9      "D": "revolve"10    },11    "type": "MCQ",12    "marks": 1,13    "answer": "C"14  },15  {16    "question_number": 2,17    "question": "Bird : Nest :: Bee : _______\nSelect the correct option to complete the analogy.",18    "options": {19      "A": "Kennel",20      "B": "Hammock",21      "C": "Hive",22      "D": "Lair"23    },24    "type": "MCQ",25    "marks": 1,26    "answer": "C"27  },28  {29    "question_number": 3,30    "question": "If 𝑃𝑒π‘₯ = π‘„π‘’βˆ’π‘₯ for all real values of π‘₯, which one of the following statements is\ntrue?",31    "options": {32      "A": "𝑃 = 𝑄 = 0",33      "B": "𝑃 = 𝑄 = 1",34      "C": "𝑃 = 1; 𝑄 = βˆ’1",35      "D": "𝑃\n= 0\n𝑄"36    },37    "type": "MCQ",38    "marks": 1,39    "answer": "A"40  },41  {42    "question_number": 4,43    "question": "The paper as shown in the figure is folded to make a cube where each square\ncorresponds to a particular face of the cube. Which one of the following options\ncorrectly represents the cube?\nNote: The figures shown are representative.",44    "options": {45      "A": "(B)",46      "C": "(D)"47    },48    "type": "MCQ",49    "marks": 1,50    "answer": "A"51  },52  {53    "question_number": 5,54    "question": "Let 𝑝 and 𝑝 denote two arbitrary prime numbers. Which one of the following\n1 2\nstatements is correct for all values of 𝑝 and 𝑝 ?\n1 2",55    "options": {56      "A": "𝑝 +𝑝 is not a prime number.\n1 2",57      "B": "𝑝 𝑝 is not a prime number.\n1 2",58      "C": "𝑝 +𝑝 +1 is a prime number.\n1 2",59      "D": "𝑝 𝑝 +1 is a prime number.\n1 2"60    },61    "type": "MCQ",62    "marks": 1,63    "answer": "B"64  },65  {66    "question_number": 6,67    "question": "Based only on the conversation below, identify the logically correct inference:\nβ€œEven if I had known that you were in the hospital, I would not have gone there to\nsee you”, Ramya told Josephine.",68    "options": {69      "A": "Ramya knew that Josephine was in the hospital.",70      "B": "Ramya did not know that Josephine was in the hospital.",71      "C": "Ramya and Josephine were once close friends; but now, they are not.",72      "D": "Josephine was in the hospital due to an injury to her leg."73    },74    "type": "MCQ",75    "marks": 2,76    "answer": "B"77  },78  {79    "question_number": 7,80    "question": "If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which\none among the given options is the most appropriate code for BEACH ?",81    "options": {82      "A": "CEADP",83      "B": "IDBFC",84      "C": "JGIBC",85      "D": "IBCEC"86    },87    "type": "MCQ",88    "marks": 2,89    "answer": "B"90  },91  {92    "question_number": 8,93    "question": "Which one of the following options is correct for the given data in the table?\nIteration (i) 0 1 2 3\nInput (I) 20 βˆ’4 10 15\nOutput (X) 20 16 26 41\nOutput (Y) 20 βˆ’80 βˆ’800 βˆ’12000",94    "options": {95      "A": "𝑋(𝑖) = 𝑋(𝑖 βˆ’1)+𝐼(𝑖); π‘Œ(𝑖) = π‘Œ(𝑖 βˆ’1)𝐼(𝑖); 𝑖 > 0",96      "B": "𝑋(𝑖) = 𝑋(𝑖 βˆ’1)𝐼(𝑖); π‘Œ(𝑖) = π‘Œ(𝑖 βˆ’1)+𝐼(𝑖); 𝑖 > 0",97      "C": "𝑋(𝑖) = 𝑋(𝑖 βˆ’1)𝐼(𝑖); π‘Œ(𝑖) = π‘Œ(𝑖 βˆ’1)𝐼(𝑖); 𝑖 > 0",98      "D": "𝑋(𝑖) = 𝑋(𝑖 βˆ’1)+𝐼(𝑖); π‘Œ(𝑖) = π‘Œ(𝑖 βˆ’1)𝐼(π‘–βˆ’1); 𝑖 > 0"99    },100    "type": "MCQ",101    "marks": 2,102    "answer": "A"103  },104  {105    "question_number": 9,106    "question": "In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The\ncorner L of the rectangle is on the side QR. Side MN of the rectangle passes through\nthe corner S of the square.\nWhat is the area (in cm2) of the rectangle PLMN?\nNote: The figure shown is representative.\nN\nP S\nM\nQ R\nL",107    "options": {108      "A": "2√2",109      "B": "2",110      "C": "8",111      "D": "4"112    },113    "type": "MCQ",114    "marks": 2,115    "answer": "D"116  },117  {118    "question_number": 10,119    "question": "The diagram below shows a river system consisting of 7 segments, marked P, Q, R,\nS, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and Z5. We\nneed to connect these zones using the least number of bridges. Out of the following\noptions, which one is correct?\nNote: The figure shown is representative.\nZ3\nZ2\nR\nV\nT\nP\nQ Z4\nZ1 U\nS Z5",120    "options": {121      "A": "Bridges on P, Q, and T",122      "B": "Bridges on P, Q, S, and T",123      "C": "Bridges on Q, R, T, and V",124      "D": "Bridges on P, Q, S, U, and V"125    },126    "type": "MCQ",127    "marks": 2,128    "answer": "C"129  },130  {131    "question_number": 11,132    "question": "1 2\nIf 𝐴 = ( ), then which ONE of the following is 𝐴8 ?\n2 βˆ’1",133    "options": {134      "A": "25 0",135      "B": "125 0",136      "C": "625 0",137      "D": "3125 0"138    },139    "type": "MCQ",140    "marks": 1,141    "answer": "C"142  },143  {144    "question_number": 12,145    "question": "The value of π‘₯ such that π‘₯ > 1, satisfying the equation ∫ π‘₯ 𝑑 ln 𝑑 𝑑𝑑 = 1 is\n1 4",146    "options": {147      "A": "βˆšπ‘’",148      "B": "𝑒",149      "C": "𝑒2",150      "D": "π‘’βˆ’1"151    },152    "type": "MCQ",153    "marks": 1,154    "answer": "A"155  },156  {157    "question_number": 13,158    "question": "Consider a binary tree 𝑇 in which every node has either zero or two children.\nLet 𝑛 > 0 be the number of nodes in 𝑇.\nWhich ONE of the following is the number of nodes in 𝑇 that have exactly two\nchildren?",159    "options": {160      "A": "π‘›βˆ’2\n2",161      "B": "π‘›βˆ’1\n2\n𝑛",162      "C": "2",163      "D": "𝑛+1\n2"164    },165    "type": "MCQ",166    "marks": 1,167    "answer": "B"168  },169  {170    "question_number": 14,171    "question": "Let 𝐿,𝑀, and 𝑁 be non-singular matrices of order 3 satisfying the equations\n𝐿2 = πΏβˆ’1 , 𝑀 = 𝐿8 and 𝑁 = 𝐿2.\nWhich ONE of the following is the value of the determinant of (π‘€βˆ’π‘)?",172    "options": {173      "A": "0",174      "B": "1",175      "C": "2",176      "D": "3"177    },178    "type": "MCQ",179    "marks": 1,180    "answer": "A"181  },182  {183    "question_number": 15,184    "question": "Let 𝑃(π‘₯) be an arbitrary predicate over the domain of natural numbers.\nWhich ONE of the following statements is TRUE?",185    "options": {186      "A": "(𝑃(0)∧(βˆ€π‘₯ [𝑃(π‘₯) β‡’ 𝑃(π‘₯+1)])) β‡’ (βˆ€π‘₯ 𝑃(π‘₯))",187      "B": "(𝑃(0)∧(βˆ€π‘₯ [𝑃(π‘₯) β‡’ 𝑃(π‘₯βˆ’1)])) β‡’ (βˆ€π‘₯ 𝑃(π‘₯))",188      "C": "(𝑃(1000)∧(βˆ€π‘₯ [𝑃(π‘₯) β‡’ 𝑃(π‘₯βˆ’1)])) β‡’ (βˆ€π‘₯ 𝑃(π‘₯))",189      "D": "(𝑃(1000)∧(βˆ€π‘₯ [𝑃(π‘₯) β‡’ 𝑃(π‘₯+1)])) β‡’ (βˆ€π‘₯ 𝑃(π‘₯))"190    },191    "type": "MCQ",192    "marks": 1,193    "answer": "A"194  },195  {196    "question_number": 16,197    "question": "Consider the following statements:\n(i) Address Resolution Protocol (ARP) provides a mapping from an IP\naddress to the corresponding hardware (link-layer) address.\n(ii) A single TCP segment from a sender S to a receiver R cannot carry both\ndata from S to R and acknowledgement for a segment from R to S.\nWhich ONE of the following is CORRECT?",198    "options": {199      "A": "Both (i) and (ii) are TRUE",200      "B": "(i) is TRUE and (ii) is FALSE",201      "C": "(i) is FALSE and (ii) is TRUE",202      "D": "Both (i) and (ii) are FALSE"203    },204    "type": "MCQ",205    "marks": 1,206    "answer": "B"207  },208  {209    "question_number": 17,210    "question": "Consider the routing protocols given in List I and the names given in List II:\nList I List II\n(i) Distance vector routing (a) Bellman-Ford\n(ii) Link state routing (b) Dijkstra\nFor matching of items in List I with those in List II, which ONE of the following\noptions is CORRECT?",211    "options": {212      "A": "(i) – (a) and (ii) – (b)",213      "B": "(i) – (a) and (ii) – (a)",214      "C": "(i) – (b) and (ii) – (a)",215      "D": "(i) – (b) and (ii) – (b)"216    },217    "type": "MCQ",218    "marks": 1,219    "answer": "A"220  },221  {222    "question_number": 18,223    "question": "A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the\nprotocol number of a protocol X.\nWhich ONE of the following is NOT a possible candidate for X?",224    "options": {225      "A": "Internet Control Message Protocol (ICMP)",226      "B": "Internet Group Management Protocol (IGMP)",227      "C": "Open Shortest Path First (OSPF)",228      "D": "Routing Information Protocol (RIP)"229    },230    "type": "MCQ",231    "marks": 1,232    "answer": "D"233  },234  {235    "question_number": 19,236    "question": "Consider the following C program:\n#include <stdio.h>\nvoid stringcopy(char *, char *);\nint main(){\nchar a[30] = \"@#Hello World!\";\nstringcopy(a, a + 2);\nprintf(\"%s\\n\", a);\nreturn 0;\n}\nvoid stringcopy(char *s, char *t) {\nwhile(*t)\n*s++ = *t++;\n}\nWhich ONE of the following will be the output of the program?",237    "options": {238      "A": "@#Hello World!",239      "B": "Hello World!",240      "C": "ello World!",241      "D": "Hello World!d!"242    },243    "type": "MCQ",244    "marks": 1,245    "answer": "D"246  },247  {248    "question_number": 20,249    "question": "Consider an unordered list of 𝑁 distinct integers.\nWhat is the minimum number of element comparisons required to find an integer\nin the list that is NOT the largest in the list?",250    "options": {251      "A": "1",252      "B": "π‘βˆ’1",253      "C": "𝑁",254      "D": "2π‘βˆ’1"255    },256    "type": "MCQ",257    "marks": 1,258    "answer": "A"259  },260  {261    "question_number": 21,262    "question": "Consider the following statements about the use of backpatching in a compiler for\nintermediate code generation:\n(I) Backpatching can be used to generate code for Boolean expression in\none pass.\n(II) Backpatching can be used to generate code for flow-of-control\nstatements in one pass.\nWhich ONE of the following options is CORRECT?",263    "options": {264      "A": "Only (I) is correct.",265      "B": "Only (II) is correct.",266      "C": "Both (I) and (II) are correct.",267      "D": "Neither (I) nor (II) is correct."268    },269    "type": "MCQ",270    "marks": 1,271    "answer": "C"272  },273  {274    "question_number": 22,275    "question": "Given the following syntax directed translation rules:\nRule 1: 𝑅 β†’ 𝐴𝐡 {𝐡.𝑖 = 𝑅.𝑖 βˆ’1;𝐴.𝑖 = 𝐡.𝑖;𝑅.𝑖 = 𝐴.𝑖 +1;}\nRule 2: 𝑃 β†’ 𝐢𝐷 {𝑃.𝑖 = 𝐢.𝑖 +𝐷.𝑖;𝐷.𝑖 = 𝐢.𝑖 +2;}\nRule 3: 𝑄 β†’ 𝐸𝐹 {𝑄.𝑖 = 𝐸.𝑖 +𝐹.𝑖;}\nWhich ONE is the CORRECT option among the following?",276    "options": {277      "A": "Rule 1 is S-attributed and L-attributed; Rule 2 is S-attributed and not L-attributed;\nRule 3 is neither S-attributed nor L-attributed",278      "B": "Rule 1 is neither S-attributed nor L-attributed; Rule 2 is S-attributed and L-\nattributed; Rule 3 is S-attributed and L-attributed",279      "C": "Rule 1 is neither S-attributed nor L-attributed; Rule 2 is not S-attributed and\nis L-attributed; Rule 3 is S-attributed and L-attributed",280      "D": "Rule 1 is S-attributed and not L-attributed; Rule 2 is not S-attributed and\nis L-attributed; Rule 3 is S-attributed and L-attributed"281    },282    "type": "MCQ",283    "marks": 1,284    "answer": "C"285  },286  {287    "question_number": 23,288    "question": "Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not\nuse any options field. Each Ethernet frame can carry a maximum of 1500 bytes in\nits data field. A UDP segment is transmitted. The payload (data) in the UDP\nsegment is 7488 bytes.\nWhich ONE of the following choices has the CORRECT total number of fragments\ntransmitted and the size of the last fragment including IPv4 header?",289    "options": {290      "A": "5 fragments, 1488 bytes",291      "B": "6 fragments, 88 bytes",292      "C": "6 fragments, 108 bytes",293      "D": "6 fragments, 116 bytes"294    },295    "type": "MCQ",296    "marks": 1,297    "answer": "D"298  },299  {300    "question_number": 24,301    "question": "Which ONE of the following languages is accepted by a deterministic pushdown\nautomaton?",302    "options": {303      "A": "Any regular language.",304      "B": "Any context-free language.",305      "C": "Any language accepted by a non-deterministic pushdown automaton.",306      "D": "Any decidable language."307    },308    "type": "MCQ",309    "marks": 1,310    "answer": "A"311  },312  {313    "question_number": 25,314    "question": "Let 𝐺 ,𝐺 be Context Free Grammars (CFGs) and 𝑅 be a regular expression. For a\n1 2\ngrammar 𝐺, let 𝐿(𝐺) denote the language generated by 𝐺.\nWhich ONE among the following questions is decidable?",315    "options": {316      "A": "Is 𝐿(𝐺 ) = 𝐿(𝐺 )?\n1 2",317      "B": "Is 𝐿(𝐺 )∩ 𝐿(𝐺 ) = βˆ…?\n1 2",318      "C": "Is 𝐿(𝐺 ) = 𝐿(𝑅)?\n1",319      "D": "Is 𝐿(𝐺 ) = βˆ…?\n1"320    },321    "type": "MCQ",322    "marks": 1,323    "answer": "D"324  },325  {326    "question_number": 26,327    "question": "Processes 𝑃1, 𝑃2, 𝑃3, 𝑃4 arrive in that order at times 0, 1, 2, and 8 milliseconds\nrespectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively.\nShortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling\npolicy. Ignore context switching times.\nWhich ONE of the following correctly gives the average turnaround time of the four\nprocesses in milliseconds?",328    "options": {329      "A": "22",330      "B": "15",331      "C": "37",332      "D": "19"333    },334    "type": "MCQ",335    "marks": 1,336    "answer": "D"337  },338  {339    "question_number": 27,340    "question": "An audit of a banking transactions system has found that on an earlier occasion, two\njoint holders of account 𝐴 attempted simultaneous transfers of Rs. 10000 each from\naccount 𝐴 to account 𝐡. Both transactions read the same value, Rs. 11000, as the\ninitial balance in 𝐴 and were allowed to go through. 𝐡 was credited Rs. 10000 twice.\n𝐴 was debited only once and ended up with a balance of Rs. 1000.\nWhich of the following properties is/are certain to have been violated by the\nsystem?",341    "options": {342      "A": "Atomicity",343      "B": "Consistency",344      "C": "Isolation",345      "D": "Durability"346    },347    "type": "MSQ",348    "marks": 1,349    "answer": [350      "B",351      "C"352    ]353  },354  {355    "question_number": 28,356    "question": "Which of the following is/are part of an Instruction Set Architecture of a processor?",357    "options": {358      "A": "The size of the cache memory",359      "B": "The clock frequency of the processor",360      "C": "The number of cache memory levels",361      "D": "The total number of registers"362    },363    "type": "MCQ",364    "marks": 1,365    "answer": "D"366  },367  {368    "question_number": 29,369    "question": "Which of the following statements regarding Breadth First Search (BFS) and\nDepth First Search (DFS) on an undirected simple graph G is/are TRUE?",370    "options": {371      "A": "A DFS tree of 𝐺 is a Shortest Path tree of 𝐺.",372      "B": "Every non-tree edge of G with respect to a DFS tree is a forward/back edge.",373      "C": "If (𝑒,𝑣) is a non-tree edge of G with respect to a BFS tree, then the distances from\nthe source vertex 𝑠 to 𝑒 and 𝑣 in the BFS tree are within Β±1 of each other.",374      "D": "Both BFS and DFS can be used to find the connected components of G."375    },376    "type": "MSQ",377    "marks": 1,378    "answer": [379      "B",380      "C",381      "D"382    ]383  },384  {385    "question_number": 30,386    "question": "Consider the two lists List I and List II given below:\nList I List II\n(i) Context free languages (a) Closed under union\n(ii) Recursive languages (b) Not closed under complementation\n(iii) Regular languages (c) Closed under intersection\nFor matching of items in List I with those in List II, which of the following\noption(s) is/are CORRECT?",387    "options": {388      "A": "(i) – (a), (ii) – (b), and (iii) – (c)",389      "B": "(i) – (b), (ii) – (a), and (iii) – (c)",390      "C": "(i) – (b), (ii) – (c), and (iii) – (a)",391      "D": "(i) – (a), (ii) – (c), and (iii) – (b)"392    },393    "type": "MSQ",394    "marks": 1,395    "answer": [396      "B",397      "C"398    ]399  },400  {401    "question_number": 31,402    "question": "Consider the following logic circuit diagram.\nWhich is/are the CORRECT option(s) for the output function 𝐹?",403    "options": {404      "A": "𝑋̅̅̅ Μ…π‘ŒΜ…",405      "B": "𝑋̅ +π‘ŒΜ… + π‘‹π‘ŒΜ…",406      "C": "𝑋̅̅̅ Μ…π‘ŒΜ… +𝑋̅ + π‘‹π‘ŒΜ…",407      "D": "𝑋 + π‘ŒΜ…"408    },409    "type": "MSQ",410    "marks": 1,411    "answer": [412      "A",413      "B",414      "C"415    ]416  },417  {418    "question_number": 32,419    "question": "The following two signed 2’s complement numbers (multiplicand M and\nmultiplier Q) are being multiplied using Booth’s algorithm:\nM: 1100 1101 1110 1101 and Q: 1010 0100 1010 1010\nThe total number of addition and subtraction operations to be performed is\n___________. (Answer in integer)",420    "options": {},421    "type": "NAT",422    "marks": 1,423    "answer": "13 to 13"424  },425  {426    "question_number": 33,427    "question": "int x=126,y=105;\ndo {\nif(x>y) x=x-y;\nelse y=y-x;\n} while(x!=y);\nprintf(\"%d\",x);\nThe output of the given C code segment is ________. (Answer in integer)",428    "options": {},429    "type": "NAT",430    "marks": 1,431    "answer": "21 to 21"432  },433  {434    "question_number": 34,435    "question": "In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64\nmicroseconds, then the frequency of the ripple counter in kHz is ________. (Answer\nin integer)",436    "options": {},437    "type": "NAT",438    "marks": 1,439    "answer": "250 to 250"440  },441  {442    "question_number": 35,443    "question": "Suppose the values 10,βˆ’4,15,30,20,5,60,19 are inserted in that order into an\ninitially empty binary search tree. Let 𝑇 be the resulting binary search tree.\nThe number of edges in the path from the node containing 19 to the root node of 𝑇\nis ___________. (Answer in integer)",444    "options": {},445    "type": "NAT",446    "marks": 1,447    "answer": "4 to 4"448  },449  {450    "question_number": 36,451    "question": "Suppose we are transmitting frames between two nodes using Stop-and-Wait\nprotocol. The frame size is 3000 bits. The transmission rate of the channel is 2000\nbps (bits/second) and the propagation delay between the two nodes is 100\nmilliseconds. Assume that the processing times at the source and destination are\nnegligible. Also, assume that the size of the acknowledgement packet is negligible.\nWhich ONE of the following most accurately gives the channel utilization for the\nabove scenario in percentage?",452    "options": {453      "A": "88.23",454      "B": "93.75",455      "C": "85.44",456      "D": "66.67"457    },458    "type": "MCQ",459    "marks": 2,460    "answer": "A"461  },462  {463    "question_number": 37,464    "question": "Let 𝐺 be an edge-weighted undirected graph with positive edge weights. Suppose a\npositive constant 𝛼 is added to the weight of every edge.\nWhich ONE of the following statements is TRUE about the minimum spanning\ntrees (MSTs) and shortest paths (SPs) in 𝐺 before and after the edge weight update?",465    "options": {466      "A": "Every MST remains an MST, and every SP remains an SP.",467      "B": "MSTs need not remain MSTs, and every SP remains an SP.",468      "C": "Every MST remains an MST, and SPs need not remain SPs.",469      "D": "MSTs need not remain MSTs, and SPs need not remain SPs."470    },471    "type": "MCQ",472    "marks": 2,473    "answer": "C"474  },475  {476    "question_number": 38,477    "question": "A meld operation on two instances of a data structure combines them into one single\ninstance of the same data structure. Consider the following data structures:\nP: Unsorted doubly linked list with pointers to the head node and tail node\nof the list.\nQ: Min-heap implemented using an array.\nR: Binary Search Tree.\nWhich ONE of the following options gives the worst-case time complexities for\nmeld operation on instances of size 𝑛 of these data structures?",478    "options": {479      "A": "P: Θ(1), Q: Θ(𝑛), R: Θ(𝑛)",480      "B": "P: Θ(1), Q: Θ(𝑛log𝑛), R: Θ(𝑛)",481      "C": "P: Θ(𝑛), Q: Θ(𝑛log𝑛), R: Θ(𝑛2)",482      "D": "P: Θ(1), Q: Θ(𝑛), R: Θ(𝑛log𝑛)"483    },484    "type": "MCQ",485    "marks": 2,486    "answer": "A"487  },488  {489    "question_number": 39,490    "question": "For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to\nindex into a cache block. The size of each cache block is one byte. Assume that\nthere is no other information stored for each cache block.\nWhich ONE of the following is the CORRECT option for the sizes of the main\nmemory and the cache memory in this system (byte addressable), respectively?",491    "options": {492      "A": "64 KB and 4 KB",493      "B": "128 KB and 16 KB",494      "C": "64 KB and 8 KB",495      "D": "128 KB and 6 KB"496    },497    "type": "MCQ",498    "marks": 2,499    "answer": "A"500  },501  {502    "question_number": 40,503    "question": "Given a Context-Free Grammar 𝐺 as follows:\n𝑆 β†’ π΄π‘Ž | 𝑏𝐴𝑐 | 𝑑𝑐 | π‘π‘‘π‘Ž\n𝐴 β†’ 𝑑\nWhich ONE of the following statements is TRUE?",504    "options": {505      "A": "𝐺 is neither LALR(1) nor SLR(1)",506      "B": "𝐺 is CLR(1), not LALR(1)",507      "C": "𝐺 is LALR(1), not SLR(1)",508      "D": "𝐺 is LALR(1), also SLR(1)"509    },510    "type": "MCQ",511    "marks": 2,512    "answer": "C"513  },514  {515    "question_number": 41,516    "question": "An array 𝐴 of length 𝑛 with distinct elements is said to be bitonic if there is an index\n1 ≀ 𝑖 ≀ 𝑛 such that 𝐴[1..𝑖] is sorted in the non-decreasing order and 𝐴[𝑖 +1 ..𝑛]\nis sorted in the non-increasing order.\nWhich ONE of the following represents the best possible asymptotic bound for the\nworst-case number of comparisons by an algorithm that searches for an element in\na bitonic array 𝐴?",517    "options": {518      "A": "Θ(𝑛)",519      "B": "Θ(1)",520      "C": "Θ(log2𝑛)",521      "D": "Θ(log𝑛)"522    },523    "type": "MCQ",524    "marks": 2,525    "answer": "D"526  },527  {528    "question_number": 42,529    "question": "Let β„± be the set of all functions from {1,…,𝑛} to {0,1}. Define\nthe binary relation β‰Ό on β„± as follows:\nβˆ€π‘“,𝑔 ∈ β„±, 𝑓 β‰Ό 𝑔 if and only if βˆ€π‘₯ ∈ {1,…,𝑛}, 𝑓(π‘₯) ≀ 𝑔(π‘₯), where 0 ≀ 1.\nWhich of the following statement(s) is/are TRUE?",530    "options": {531      "A": "β‰Ό is a symmetric relation",532      "B": "(β„±,β‰Ό ) is a partial order",533      "C": "(β„±,β‰Ό ) is a lattice",534      "D": "β‰Ό is an equivalence relation"535    },536    "type": "MSQ",537    "marks": 2,538    "answer": [539      "B",540      "C"541    ]542  },543  {544    "question_number": 43,545    "question": "Given the following Karnaugh Map for a Boolean function 𝐹(𝑀,π‘₯,𝑦,𝑧):\nWhich one or more of the following Boolean expression(s) represent(s) 𝐹?",546    "options": {547      "A": "𝑀̅π‘₯̅𝑦̅𝑧̅+𝑀π‘₯̅𝑦̅𝑧̅+𝑀̅π‘₯̅𝑦𝑧̅+𝑀π‘₯̅𝑦𝑧̅+π‘₯𝑧",548      "B": "𝑀̅π‘₯̅𝑦̅𝑧̅+𝑀̅π‘₯̅𝑦𝑧̅+𝑀π‘₯̅𝑦𝑧+π‘₯𝑧",549      "C": "𝑀̅π‘₯̅𝑦̅𝑧̅+𝑀π‘₯̅𝑦̅𝑧̅+𝑀π‘₯̅𝑦̅𝑧+π‘₯𝑧",550      "D": "π‘₯̅𝑧̅+π‘₯𝑧"551    },552    "type": "MSQ",553    "marks": 2,554    "answer": [555      "A",556      "D"557    ]558  },559  {560    "question_number": 44,561    "question": "Consider a system of linear equations 𝑃𝑋 = 𝑄 where 𝑃 ∈ ℝ3Γ—3 and Q ∈ ℝ3Γ—1.\nSuppose 𝑃 has an LU decomposition, 𝑃 = πΏπ‘ˆ, where\n1 0 0 𝑒 𝑒 𝑒\n11 12 13\n𝐿 = [𝑙 1 0] and π‘ˆ = [ 0 𝑒 𝑒 ].\n21 22 23\n𝑙 𝑙 1 0 0 𝑒\n31 32 33\nWhich of the following statement(s) is/are TRUE?",562    "options": {563      "A": "The system 𝑃𝑋 = 𝑄 can be solved by first solving πΏπ‘Œ = 𝑄 and then π‘ˆπ‘‹ = π‘Œ.",564      "B": "If 𝑃 is invertible, then both 𝐿 and π‘ˆ are invertible.",565      "C": "If 𝑃 is singular, then at least one of the diagonal elements of π‘ˆ is zero.",566      "D": "If 𝑃 is symmetric, then both 𝐿 and π‘ˆ are symmetric."567    },568    "type": "MSQ",569    "marks": 2,570    "answer": [571      "A",572      "B",573      "C"574    ]575  },576  {577    "question_number": 45,578    "question": "Consider a stack data structure into which we can PUSH and POP records. Assume\nthat each record pushed in the stack has a positive integer key and that all keys are\ndistinct.\nWe wish to augment the stack data structure with an 𝑂(1) time MIN operation that\nreturns a pointer to the record with smallest key present in the stack\n1) without deleting the corresponding record, and\n2) without increasing the complexities of the standard stack operations.\nWhich one or more of the following approach(es) can achieve it?",579    "options": {580      "A": "Keep with every record in the stack, a pointer to the record with the smallest key\nbelow it.",581      "B": "Keep a pointer to the record with the smallest key in the stack.",582      "C": "Keep an auxiliary array in which the key values of the records in the stack are\nmaintained in sorted order.",583      "D": "Keep a Min-Heap in which the key values of the records in the stack are maintained."584    },585    "type": "MCQ",586    "marks": 2,587    "answer": "A"588  },589  {590    "question_number": 46,591    "question": "Consider the following relational schema along with all the functional dependencies\nthat hold on them.\nR1(A, B, C, D, E): { 𝐷 β†’ 𝐸, 𝐸𝐴 β†’ 𝐡, 𝐸𝐡 β†’ 𝐢}\nR2(A, B, C, D): { 𝐴 β†’ 𝐷, 𝐴 β†’ 𝐡, 𝐢 β†’ 𝐴}\nWhich of the following statement(s) is/are TRUE?",592    "options": {593      "A": "R1 is in 3NF",594      "B": "R2 is in 3NF",595      "C": "R1 is NOT in 3NF",596      "D": "R2 is NOT in 3NF"597    },598    "type": "MSQ",599    "marks": 2,600    "answer": [601      "C",602      "D"603    ]604  },605  {606    "question_number": 47,607    "question": "Consider a demand paging system with three frames, and the following page\nreference string: 1 2 3 4 5 4 1 6 4 5 1 3 2. The contents of the frames are as follows\ninitially and after each reference (from left to right):\ninitially after\n- 1* 2* 3* 4* 5* 4 1 6* 4 5 1* 3* 2*\n- 1 1 1 1 1 1 1 6 6 6 6 6 2\n- - 2 2 4 4 4 4 4 4 4 1 1 1\n- - - 3 3 5 5 5 5 5 5 5 3 3\nThe *-marked references cause page replacements.\nWhich one or more of the following could be the page replacement policy/policies\nin use?",608    "options": {609      "A": "Least Recently Used page replacement policy",610      "B": "Least Frequently Used page replacement policy",611      "C": "Most Frequently Used page replacement policy",612      "D": "Optimal page replacement policy"613    },614    "type": "MCQ",615    "marks": 2,616    "answer": "D"617  },618  {619    "question_number": 48,620    "question": "𝑃 = {𝑃 ,𝑃 ,𝑃 ,𝑃 } consists of all active processes in an operating system.\n1 2 3 4\n𝑅 = {𝑅 ,𝑅 ,𝑅 ,𝑅 } consists of single instances of distinct types of resources in the\n1 2 3 4\nsystem.\nThe resource allocation graph has the following assignment and claim edges.\nAssignment edges: 𝑅 β†’ 𝑃 , 𝑅 β†’ 𝑃 , 𝑅 β†’ 𝑃 , 𝑅 β†’ 𝑃 (the assignment edge\n1 1 2 2 3 3 4 4\n𝑅 β†’ 𝑃 means resource 𝑅 is assigned to process 𝑃 , and so on for others)\n1 1 1 1\nClaim edges: 𝑃 β†’ 𝑅 , 𝑃 β†’ 𝑅 , 𝑃 β†’ 𝑅 , 𝑃 β†’ 𝑅 , 𝑃 β†’ 𝑅 (the claim edge\n1 2 2 3 3 1 2 4 4 2\n𝑃 β†’ 𝑅 means process 𝑃 is waiting for resource 𝑅 , and so on for others)\n1 2 1 2\nWhich of the following statement(s) is/are CORRECT?",621    "options": {622      "A": "Aborting 𝑃 makes the system deadlock free.\n1",623      "B": "Aborting 𝑃 makes the system deadlock free.\n3",624      "C": "Aborting 𝑃 makes the system deadlock free.\n2",625      "D": "Aborting 𝑃 and 𝑃 makes the system deadlock free.\n1 4"626    },627    "type": "MSQ",628    "marks": 2,629    "answer": [630      "C",631      "D"632    ]633  },634  {635    "question_number": 49,636    "question": "Three floating point numbers 𝑋,π‘Œ, and 𝑍 are stored in three registers R , R , and\nX Y\nR , respectively in IEEE 754 single precision format as given below in\nZ\nhexadecimal:\nR = 0xC1100000, R = 0x40C00000, and R = 0x41400000\nX Y Z\nWhich of the following option(s) is/are CORRECT?",637    "options": {638      "A": "4(𝑋+π‘Œ) + 𝑍 = 0",639      "B": "2π‘Œ – 𝑍 = 0",640      "C": "4𝑋 + 3𝑍 = 0",641      "D": "𝑋+π‘Œ+𝑍 = 0"642    },643    "type": "MSQ",644    "marks": 2,645    "answer": [646      "A",647      "B",648      "C"649    ]650  },651  {652    "question_number": 50,653    "question": "Which of the following Boolean algebraic equation(s) is/are CORRECT?",654    "options": {655      "A": "𝐴̅ 𝐡 𝐢 +𝐴 𝐡̅ 𝐢̅ + 𝐴̅ 𝐡̅ 𝐢̅ +𝐴 𝐡̅ 𝐢 + 𝐴 𝐡 𝐢 = 𝐡 𝐢 + 𝐡̅ 𝐢̅ + 𝐴̅ 𝐡̅",656      "B": "𝐴 𝐡 +𝐴̅ 𝐢 +𝐡 𝐢 = 𝐴 𝐡 + 𝐴̅ 𝐢",657      "C": "(𝐴 + 𝐢) (𝐴̅ +𝐡) = 𝐴 𝐡 + 𝐴̅ 𝐢",658      "D": "( Μ…Μ… 𝐴 Μ…Μ… Μ… + Μ…Μ…Μ… Μ… 𝐡̅̅̅ Μ… + Μ…Μ…Μ… Μ… 𝐷̅̅̅ ) Μ… Μ… ( Μ… 𝐢 Μ…Μ… Μ… + Μ…Μ…Μ… 𝐷 Μ…Μ… ) Μ…Μ… ( Μ… 𝐴 Μ…Μ…Μ…Μ… Μ… + Μ…Μ…Μ… 𝐢 Μ…Μ… Μ…Μ… + Μ…Μ…Μ… 𝐷 Μ…Μ… ) Μ…Μ… ( Μ…Μ… 𝐴 Μ… Μ…Μ… + Μ…Μ…Μ… 𝐡 Μ…Μ… Μ…Μ… + Μ…Μ… Μ… 𝐷 Μ…Μ…Μ…Μ… ) = 𝐴̅ 𝐷 + 𝐢̅ 𝐷̅"659    },660    "type": "MSQ",661    "marks": 2,662    "answer": [663      "B",664      "C",665      "D"666    ]667  },668  {669    "question_number": 51,670    "question": "Consider two grammars 𝐺 and 𝐺 with the production rules given below:\n1 2\n𝐺 : 𝑆 β†’ 𝑖𝑓 𝐸 π‘‘β„Žπ‘’π‘› 𝑆 | 𝑖𝑓 𝐸 π‘‘β„Žπ‘’π‘› 𝑆 𝑒𝑙𝑠𝑒 𝑆 | π‘Ž\n1\n𝐸 β†’ 𝑏\n𝐺 :𝑆 β†’ 𝑖𝑓 𝐸 π‘‘β„Žπ‘’π‘› 𝑆 | 𝑀\n2\n𝑀 β†’ 𝑖𝑓 𝐸 π‘‘β„Žπ‘’π‘› 𝑀 𝑒𝑙𝑠𝑒 𝑆 | 𝑐\n𝐸 β†’ 𝑏\nwhere 𝑖𝑓,π‘‘β„Žπ‘’π‘›,𝑒𝑙𝑠𝑒,π‘Ž,𝑏,𝑐 are the terminals.\nWhich of the following option(s) is/are CORRECT?",671    "options": {672      "A": "𝐺 is not 𝐿𝐿(1) and 𝐺 is 𝐿𝐿(1).\n1 2",673      "B": "𝐺 is 𝐿𝐿(1) and 𝐺 is not 𝐿𝐿(1).\n1 2",674      "C": "𝐺 and 𝐺 are not 𝐿𝐿(1).\n1 2",675      "D": "𝐺 and 𝐺 are ambiguous.\n1 2"676    },677    "type": "MSQ",678    "marks": 2,679    "answer": [680      "C",681      "D"682    ]683  },684  {685    "question_number": 52,686    "question": "Let Ξ£ = {π‘Ž,𝑏,𝑐}. For π‘₯ ∈ Ξ£βˆ—, and 𝛼 ∈ Ξ£, let # (π‘₯) denote the number of\n𝛼\noccurrences of 𝛼 in π‘₯.\nWhich one or more of the following option(s) define(s) regular language(s)?",687    "options": {688      "A": "{π‘Žπ‘šπ‘π‘› | π‘š,𝑛 β‰₯ 0}",689      "B": "{π‘Ž,𝑏}βˆ— ∩{π‘Žπ‘šπ‘π‘›π‘π‘šβˆ’π‘› | π‘š β‰₯ 𝑛 β‰₯ 0}",690      "C": "{𝑀 | 𝑀 ∈ {π‘Ž,𝑏}βˆ—,# (𝑀) ≑ 2 (mod 7),and # (𝑀) ≑ 3 (mod 9)}\nπ‘Ž 𝑏",691      "D": "{𝑀 | 𝑀 ∈ {π‘Ž,𝑏}βˆ—,# (𝑀) ≑ 2 (mod 7),and # (𝑀) = # (𝑀)}\nπ‘Ž π‘Ž 𝑏"692    },693    "type": "MSQ",694    "marks": 2,695    "answer": [696      "A",697      "C"698    ]699  },700  {701    "question_number": 53,702    "question": "Consider the database transactions T1 and T2, and data items X and Y. Which of\nthe schedule(s) is/are conflict serializable?\nTransaction T1\nTransaction T2\nR1(X)\nW2(X)\nW1(Y)\nW2(Y)\nR1(X)\nCOMMIT(T2)\nW1(X)\nCOMMIT(T1)",703    "options": {704      "A": "R1(X), W2(X), W1(Y), W2(Y), R1(X), W1(X), COMMIT(T2), COMMIT(T1)",705      "B": "W2(X), R1(X), W2(Y), W1(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)",706      "C": "R1(X), W1(Y), W2(X), W2(Y), R1(X), W1(X), COMMIT(T1), COMMIT(T2)",707      "D": "W2(X), R1(X), W1(Y), W2(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)"708    },709    "type": "MCQ",710    "marks": 2,711    "answer": "B"712  },713  {714    "question_number": 54,715    "question": "Consider the following relational schema:\nStudents (rollno: integer, name: string, age: integer, cgpa: real)\nCourses (courseno: integer, cname: string, credits: integer)\nEnrolled (rollno: integer, courseno: integer, grade: string)\nWhich of the following options is/are correct SQL query/queries to retrieve the\nnames of the students enrolled in course number (i.e., courseno) 1470?",716    "options": {717      "A": "SELECT S.name\nFROM Students S\nWHERE EXISTS (SELECT * FROM Enrolled E\nWHERE E.courseno = 1470\nAND E.rollno = S.rollno);",718      "B": "SELECT S.name\nFROM Students S\nWHERE SIZEOF (SELECT * FROM Enrolled E\nWHERE E.courseno = 1470\nAND E.rollno = S.rollno) > 0;",719      "C": "SELECT S.name\nFROM Students S\nWHERE 0 < (SELECT COUNT(*)\nFROM Enrolled E\nWHERE E.courseno = 1470\nAND E.rollno = S.rollno);",720      "D": "SELECT S.name\nFROM Students S NATURAL JOIN Enrolled E\nWHERE E.courseno = 1470;"721    },722    "type": "MSQ",723    "marks": 2,724    "answer": [725      "A",726      "C",727      "D"728    ]729  },730  {731    "question_number": 55,732    "question": "Given a computing system with two levels of cache (L1 and L2) and a main\nmemory. The first level (L1) cache access time is 1 nanosecond (ns) and the β€œhit\nrate” for L1 cache is 90% while the processor is accessing the data from L1 cache.\nWhereas, for the second level (L2) cache, the β€œhit rate” is 80% and the β€œmiss\npenalty” for transferring data from L2 cache to L1 cache is 10 ns. The β€œmiss\npenalty” for the data to be transferred from main memory to L2 cache is 100 ns.\nThen the average memory access time in this system in nanoseconds is\n___________ . (rounded off to one decimal place)\nA 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250,\nrespectively, in nanoseconds. The delay of an inter-stage latch is 10 nanoseconds.",733    "options": {},734    "type": "NAT",735    "marks": 2,736    "answer": "4.0 to 4.0"737  },738  {739    "question_number": 56,740    "question": "Assume that there are no pipeline stalls due to branches and other hazards. The time\ntaken to process 1000 instructions in microseconds is __________ . (rounded off to\ntwo decimal places)",741    "options": {},742    "type": "NAT",743    "marks": 2,744    "answer": "260.20 to 261.20"745  },746  {747    "question_number": 57,748    "question": "In a B+- tree where each node can hold at most four key values, a root to leaf path\nconsists of the following nodes:\nA = (49, 77, 83, -), B = (7, 19, 33, 44), C = (20*, 22*, 25*, 26*)\nThe *-marked keys signify that these are data entries in a leaf.\nAssume that a pointer between keys π‘˜ and π‘˜ points to a subtree containing keys\n1 2\nin [π‘˜ ,π‘˜ ), and that when a leaf is created, the smallest key in it is copied up into\n1 2\nits parent.\nA record with key value 23 is inserted into the B+- tree.\nThe smallest key value in the parent of the leaf that contains 25* is __________.\n(Answer in integer)",749    "options": {},750    "type": "NAT",751    "marks": 2,752    "answer": "33 to 33"753  },754  {755    "question_number": 58,756    "question": "A computer system supports a logical address space of 232 bytes. It uses two-level\nhierarchical paging with a page size of 4096 bytes. A logical address is divided into\na 𝑏-bit index to the outer page table, an offset within the page of the inner page\ntable, and an offset within the desired page. Each entry of the inner page table uses\neight bytes. All the pages in the system have the same size.\nThe value of 𝑏 is ___________ . (Answer in integer)",757    "options": {},758    "type": "NAT",759    "marks": 2,760    "answer": "11 to 11"761  },762  {763    "question_number": 59,764    "question": "Consider the following algorithm someAlgo that takes an undirected graph 𝐺 as\ninput.\nsomeAlgo(𝐺)\n1. Let 𝑣 be any vertex in 𝐺. Run BFS on 𝐺 starting at\n𝑣. Let 𝑒 be a vertex in 𝐺 at maximum distance from\n𝑣 as given by the BFS.\n2. Run BFS on 𝐺 again with 𝑒 as the starting vertex.\nLet 𝑧 be the vertex at maximum distance from 𝑒 as\ngiven by the BFS.\n3. Output the distance between 𝑒 and 𝑧 in 𝐺.\nThe output of someAlgo(𝑇) for the tree shown in the given figure is\n___________. (Answer in integer)",765    "options": {},766    "type": "NAT",767    "marks": 2,768    "answer": "6 to 6"769  },770  {771    "question_number": 60,772    "question": "Let Ξ£ = {1,2,3,4}. For π‘₯ ∈ Ξ£βˆ—, let π‘π‘Ÿπ‘œπ‘‘(π‘₯) be the product of symbols in\nπ‘₯ modulo 7. We take π‘π‘Ÿπ‘œπ‘‘(πœ–) = 1, where πœ– is the null string.\nFor example, π‘π‘Ÿπ‘œπ‘‘(124) = (1Γ—2Γ—4) mod 7 = 1.\nDefine 𝐿 = {π‘₯ ∈ Ξ£βˆ— | π‘π‘Ÿπ‘œπ‘‘(π‘₯) = 2}.\nThe number of states in a minimum state DFA for 𝐿 is ___________. (Answer in\ninteger)",773    "options": {},774    "type": "NAT",775    "marks": 2,776    "answer": "6 to 6"777  },778  {779    "question_number": 61,780    "question": "An application executes 6.4Γ—108 number of instructions in 6.3 seconds. There are\nfour types of instructions, the details of which are given in the table. The duration\nof a clock cycle in nanoseconds is _________. (rounded off to one decimal place)\nInstruction type Clock cycles required per Number of instructions\ninstruction (CPI) executed\nBranch 2 2.25Γ—108\nLoad 5 1.20Γ—108\nStore 4 1.65Γ—108\nArithmetic 3 1.30Γ—108",781    "options": {},782    "type": "NAT",783    "marks": 2,784    "answer": "3.0 to 3.0"785  },786  {787    "question_number": 62,788    "question": "Consider the following C program:\n#include <stdio.h>\nint main(){\nint a;\nint arr[5] = {30,50,10};\nint *ptr;\nptr = &arr[0] + 1;\na = *ptr;\n(*ptr)++;\nptr++;\nprintf(\"%d\", a + (*ptr) + arr[1]);\nreturn 0;\n}\nThe output of the above program is ___________. (Answer in integer)",789    "options": {},790    "type": "NAT",791    "marks": 2,792    "answer": "111 to 111"793  },794  {795    "question_number": 63,796    "question": "Consider the following C program:\n#include <stdio.h>\nint g(int n) {\nreturn (n+10);\n}\nint f(int n) {\nreturn g(n*2);\n}\nint main() {\nint sum, n;\nsum=0;\nfor (n=1; n<3; n++)\nsum += g(f(n));\nprintf (\"%d\", sum);\nreturn 0;\n}\nThe output of the given C program is ________. (Answer in integer)",797    "options": {},798    "type": "NAT",799    "marks": 2,800    "answer": "46 to 46"801  },802  {803    "question_number": 64,804    "question": "A quadratic polynomial (π‘₯βˆ’ 𝛼)(π‘₯βˆ’π›½) over complex numbers is said to be square\ninvariant if (π‘₯βˆ’ 𝛼)(π‘₯βˆ’π›½) = (π‘₯βˆ’π›Ό2)(π‘₯βˆ’π›½2). Suppose from the set of all\nsquare invariant quadratic polynomials we choose one at random.\nThe probability that the roots of the chosen polynomial are equal is __________.\n(rounded off to one decimal place)",805    "options": {},806    "type": "NAT",807    "marks": 2,808    "answer": "0.5 to 0.5"809  },810  {811    "question_number": 65,812    "question": "The unit interval (0,1) is divided at a point chosen uniformly distributed over (0,1)\nin ℝ into two disjoint subintervals.\nThe expected length of the subinterval that contains 0.4 is ___________. (rounded\noff to two decimal places)",813    "options": {},814    "type": "NAT",815    "marks": 2,816    "answer": "0.70 to 0.80"817  }818]