Exam Details
Computer Science & Information Technology (CS) 2018
Review the key details, then start the test when you are ready. You can also open the full package to see related papers.
Questions
65
Duration
180 mins
Package
GATE & PSU CS - Previous Year Papers
Paper pattern & analysis
Filter this paper by subject, topic or subtopic. Every graph updates from the selected questions.
Topic distribution
Subtopic distribution
Difficulty distribution
65questions
Medium
47
72.3%
Hard
16
24.6%
Easy
2
3.1%
Question type distribution
65questions
MCQ
41
63.1%
Fill in the blanks
24
36.9%
Syllabus
Sample
Practise paper questions
Choose your answer to check it. Log in to view the explanation. For a timed attempt and result, start the exam.
PYP
Computer Science & Information Technology (CS) 2018
The area of a square is d. What is the area of the circle which has the diagonal of the square as its diameter?
PYP
Computer Science & Information Technology (CS) 2018
“A __________ investigation can sometimes yield new facts, but typically organized ones are more successful.”
PYP
Computer Science & Information Technology (CS) 2018
What would be the smallest natural number which when divided either by 20 or by 42 or by 76 leaves a remainder of 7 in each case?
PYP
Computer Science & Information Technology (CS) 2018
“From where are they bringing their books? ________ bringing ________ books from _________.” The words that best fill the blanks in the above sentence are
PYP
Computer Science & Information Technology (CS) 2018
What is the missing number in the following sequence? 2, 12, 60, 240, 720, 1440, _______, 0
PYP
Computer Science & Information Technology (CS) 2018
In a party, 60% of the invited guests are male and 40% are female. If 80% of the invited guests attended the party and if all the invited female guests attended, what would be the ratio of males to females among the attendees in the party?
PYP
Computer Science & Information Technology (CS) 2018
A six sided unbiased die with four green faces and two red faces is rolled seven times. Which of the following combinations is the most likely outcome of the experiment?
PYP
Computer Science & Information Technology (CS) 2018
In the figure below, is equal to __________.
PYP
Computer Science & Information Technology (CS) 2018
In appreciation of the social improvements completed in a town, a wealthy philanthropist decided to gift Rs 750 to each male senior citizen in the town and Rs 1000 to each female senior citizen. Altogether, there were 300 senior citizens eligible for this gift. However, only 8/9th of the eligible men and 2/3rd of the eligible women claimed the gift. How much money (in Rupees) did the philanthropist give away in total?
PYP
Computer Science & Information Technology (CS) 2018
In and what is the value of the product xyz?
PYP
Computer Science & Information Technology (CS) 2018
Which one of the following statements is FALSE?
PYP
Computer Science & Information Technology (CS) 2018
A queue is implemented using a non-circular singly linked list. The queue has a head pointer and tail pointer, as shown in the figure. Let n denote of the number of nodes in the queue. Let enqueue be implemented by interesting a new node at the head and dequeue be implemented by deletion of a node from the tail. Which one of the following is the time complexity of the most time-efficient implementation of enqueue and dequeue, respectively, for this data structure?
PYP
Computer Science & Information Technology (CS) 2018
The set of all recursively enumerable languages is
PYP
Computer Science & Information Technology (CS) 2018
Consider the following processor design characteristics: I. Register-to-register arithmetic operations only. II. Fixed-length instruction format. III. Hardwired control unit. Which of the characteristics above are used in the design of a RISC processor?
PYP
Computer Science & Information Technology (CS) 2018
Let N be an NFA with n states. Let be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true?
PYP
Computer Science & Information Technology (CS) 2018
Match the following : Field P. UDP Header’s Port Number Q. Ethernet MAC Address R. IPv6 Next Header S. TCP Header’s Sequence Number Length in bits I. 48 II. 8 III. 32 IV. 16
PYP
Computer Science & Information Technology (CS) 2018
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is M units if the corresponding memory page is available in memory and D units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is X units. Which one of the following is the correct expression for the page fault. It has been experimentally measured that the average time taken for a memory access in the process is X units. Which one of the following is the correct expression for the page fault rate experienced by the process?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following two tables and four queries in SQL. Which one of the queries above is certain to have an output that is superset of the outputs of the other three queries?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note the stands for the TCP congestion window and MSS denotes the Maximum Segment Size. i. The increases by 2 MSS on every successful acknowledgement. ii. The approximately doubles on every successful acknowledgment. iii. The increases by 1 MSS every round trip time. iv. The approximately doubles every round trip time. Which one of the following is correct?
PYP
Computer Science & Information Technology (CS) 2018
The following are some events that occur after a device controller issues an interrupt while process L is under execution. (P) The processor pushes the process status of L onto the control stack. (Q) The processor finishes the execution of the current instruction. (R) The processor executes the interrupt service routine. (S) The processor pops the process status of L from the control stack. (T) The processor loads the new PC value based on the interrupt. Which one of the following is the correct order in which the events above occur?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following C program: #includestruct ournode{ char x,y,z;};int main(){ struct ournode q[] = { '1', '0', 'a'+2}; struct ournode *p = q; printf("%c, %c", *((char*)q+1), *((char*)q+2)); }The output of this program is :
PYP
Computer Science & Information Technology (CS) 2018
In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in R and that the cardinality of E1 is greater than the cardinality of E2. Which one of the following is true about R?
PYP
Computer Science & Information Technology (CS) 2018
Which one of the following is a closed form expression for the generating function of the sequence where for all
PYP
Computer Science & Information Technology (CS) 2018
Let and denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following C program :
The output of this program is ________.
The output of this program is ________.
PYP
Computer Science & Information Technology (CS) 2018
Consider a matrix where Note that denotes the transpose of The largest eigenvalue of A is ________.
PYP
Computer Science & Information Technology (CS) 2018
Consider a system with 3 processes that share 4 instances of the same resource type. Each process can request a maximum of K instances. Resource instances can be requested and released only one at a time. The largest value of K that will always avoid deadlock is ___________.
PYP
Computer Science & Information Technology (CS) 2018
Let G be a finite group on 84 elements. The size of a largest possible proper subgroup of G is _________.
PYP
Computer Science & Information Technology (CS) 2018
The postorder traversal of a binary tree is 8, 9, 6, 7, 4, 5, 2, 3,1 The inorder traversal of the same tree is 8, 6, 9, 4, 7, 2, 5, 1, 3. The height of a tree is the length of longest path from the root to any leaf. The height of the binary tree above is __________.
PYP
Computer Science & Information Technology (CS) 2018
Two people, P and Q, decide to independently roll two identical dice, each with 6 faces. The person with the lower number wins. In case of a tie, they roll the dice repeatedly until there is no tie. Define a trial as a throw of the dice by P and Q. Assume that all 6 numbers on each dice are equiprobable and that all trials are independent. The probability (rounded to 3 decimal places) that one of them wins in the third trial is ___________.
PYP
Computer Science & Information Technology (CS) 2018
The value of correct to three decimal places (assuming that π = 3.14) is __________.
PYP
Computer Science & Information Technology (CS) 2018
The chromatic number of the following graph is __________.


PYP
Computer Science & Information Technology (CS) 2018
A 32-bit wide main memory unit with a capacity of 1 GB is built using DRAM chips. The number of rows of memory cells in the DRAM chip is 214. The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds. The percentage (rounded to the closest integer) of the time available for performing the memory read/write operations in the main memory unit is ____________.
PYP
Computer Science & Information Technology (CS) 2018
Consider the sequential circuit shown in the figure, where both flip-flops used are positive edge-triggered D flip-flops.
The number of states in the state transition diagram of the circuit that have a transition back to the same state on some value of “in” is __________.
The number of states in the state transition diagram of the circuit that have a transition back to the same state on some value of “in” is __________.
PYP
Computer Science & Information Technology (CS) 2018
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= 109 bits-per-second). The session starts with a certain sequence number. The minimum time (in seconds, rounded to the closest integer) before this sequence number can be used again is _________.
PYP
Computer Science & Information Technology (CS) 2018
Consider a storage disk with 4 platters (numbered as 0, 1, 2 and 3), 200 cylinders (numbered as 0, 1, …., 199) and 256 sectors per track (numbered as 0,1, ….., 255). The following 6 disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time:
[120, 72, 2], [180, 134, 1], [60, 20, 0], [60, 20, 0], [212, 86, 3], [56, 116, 2], [118, 16, 1]
Currently the head is positioned at sector number 100 of cylinder 80 and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is ____________.
[120, 72, 2], [180, 134, 1], [60, 20, 0], [60, 20, 0], [212, 86, 3], [56, 116, 2], [118, 16, 1]
Currently the head is positioned at sector number 100 of cylinder 80 and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is ____________.
PYP
Computer Science & Information Technology (CS) 2018
A processor has 16 integer registers (R0, R1, …… R15) and 64 floating point registers (F0, F1, ……, F63). It uses a 2-byte instruction format. There are four categories of instructions. Type-1, Type-2, Type-3 and Type-Type-1 category consists of four instructions, each with 3 integer register operands (3Rs). Type-2 category consists of eight instructions, each with 2 floating point register operands (2Fs). Type-3 category consists of fourteen instructions, each with one integer register operand and one floating point register operand (1R + 1F). Type-4 category consists of N instructions, each with a floating point register operand (1F).
The maximum value of N is _________.
The maximum value of N is _________.
PYP
Computer Science & Information Technology (CS) 2018
Consider the following undirected graph G:
Choose a value of x that will maximize the number of minimum weight spanning trees (MWSTs) of G. The number of MWSTs of G for this value of x is ___________.
Choose a value of x that will maximize the number of minimum weight spanning trees (MWSTs) of G. The number of MWSTs of G for this value of x is ___________.
PYP
Computer Science & Information Technology (CS) 2018
Consider the minterm list form of a Boolean function F given below:
Here, m denotes a minterm and d denotes a don’t care term. The number of essential prime implicants of the function F is __________.
Here, m denotes a minterm and d denotes a don’t care term. The number of essential prime implicants of the function F is __________.
PYP
Computer Science & Information Technology (CS) 2018
The instruction pipeline of a RISC processor has the following stages. Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Writeback (WB). The IF, ID, OF and WB stages take 1 clock cycle each for every instruction. Consider a sequence of 100 instructions. In the PO stage, 40 instructions take 3 clock cycles each, 35 instructions take 2 clock cycles each, and the remaining 25 instructions take 1 clock cycle each. assume that there are no data hazards and no control hazards. The number of clock cycles required for completion of execution of the sequence of instructions is ____________.
PYP
Computer Science & Information Technology (CS) 2018
Let G be a graph with 100! Vertices, with each vertex labeled by a distinct permutation of the numbers 1, 2, …. There is an edge between vertices u and v if and only if the label of u can be obtained by swapping two adjacent numbers in the label of v. Let y denote the degree of a vertex in G and z denote the number of connected components in G.
Then,

Then,

PYP
Computer Science & Information Technology (CS) 2018
Given a language L, define as follows:
The order of a language is defined as the smallest such that Consider the language (over alphabet 0) accepted by the following automaton.
The order of is ___________.








The order of a language is defined as the smallest such that Consider the language (over alphabet 0) accepted by the following automaton.
The order of is ___________.








PYP
Computer Science & Information Technology (CS) 2018
The number of possible min-heaps containing each value from {1, 2, 3, 4, 5, 6, 7} exactly once is _______.
PYP
Computer Science & Information Technology (CS) 2018
Consider a simple communication system where multiple nodes are connected by a shared broadcast medium (like Ethernet or wireless). The nodes in the system use the following carrier-sense based medium access protocol. A node that receives a packet to transmit will carrier-sense the medium for 5 units of time. If the node does not detect any other transmission in this duration, it starts transmitting its packet in the next time unit. If the node detects another transmission, it waits until this other transmission finishes, and then begins to carrier-sense for 5 time units again. Once they start to transmit, nodes do not perform any collision detection and continue transmission even if a collision occurs. All transmissions last for 20 units of time. Assume that the transmission signal travels at the speed of 10 meters per unit time in the medium. Assume that the system has two nodes P and Q, located at a distance d meters from each other. P starts transmitting a packet at time after successfully completing its carrier-sense phase. Node Q has a packet to transmit at time and begins to carrier-sense the medium.
The maximum distance d (in meters, rounded to the closest integer) that allows Q to successfully avoid a collision between its proposed transmission and P’s ongoing transmission is __________.
The maximum distance d (in meters, rounded to the closest integer) that allows Q to successfully avoid a collision between its proposed transmission and P’s ongoing transmission is __________.
PYP
Computer Science & Information Technology (CS) 2018
Consider the weights and values of items listed below. Note that there is only one unit of each item.
The task is to pick a subset of these items such that their total weight is not more than 11 kgs and their total value is maximized. Moreover, no item may be split. The total value of items picked by an optimal algorithm is denoted by A greedy algorithm sorts the items by their value-to-weight ratios in descending order and packs them greedily, starting from the first item in the ordered list. The total value of items picked by the greedy algorithm is denoted by The value of is ________.




The task is to pick a subset of these items such that their total weight is not more than 11 kgs and their total value is maximized. Moreover, no item may be split. The total value of items picked by an optimal algorithm is denoted by A greedy algorithm sorts the items by their value-to-weight ratios in descending order and packs them greedily, starting from the first item in the ordered list. The total value of items picked by the greedy algorithm is denoted by The value of is ________.




PYP
Computer Science & Information Technology (CS) 2018
Consider the following program written in pseudo-code. Assume that x and y are integers:
Count (x, y) {
if (y ! = 1) {
if (x ! = 1) {
print(“*”);
Count (x/2, y);
}
else {
y = y – 1;
Count (1024, y);
}
}
}
The number of times that the print statement is executed by the call Count (1024, 1024) is __________.
Count (x, y) {
if (y ! = 1) {
if (x ! = 1) {
print(“*”);
Count (x/2, y);
}
else {
y = y – 1;
Count (1024, y);
}
}
}
The number of times that the print statement is executed by the call Count (1024, 1024) is __________.
PYP
Computer Science & Information Technology (CS) 2018
Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as High (H), medium (M) and low (L). Let denote the probability that Guwahati has High temperature. Similarly, and denotes the probability of Guwahati having medium and low temperatures respectively. Similarly, we use and for Delhi.
The following table gives the conditional probabilities for Delhi’s temperature given Guwahati’s temperature.
Consider the first row in the table above. The first entry denotes that if Guwahati has high temperature then the probability of Delhi also having a high temperature is 0.40; i.e., Similarly, the next two entries are and Similarly for the other rows.
If it is known that and then the probability (correct to two decimal places) that Guwahati has high temperature given that Delhi has high temperature is _________.
The following table gives the conditional probabilities for Delhi’s temperature given Guwahati’s temperature.
Consider the first row in the table above. The first entry denotes that if Guwahati has high temperature then the probability of Delhi also having a high temperature is 0.40; i.e., Similarly, the next two entries are and Similarly for the other rows.
If it is known that and then the probability (correct to two decimal places) that Guwahati has high temperature given that Delhi has high temperature is _________.
PYP
Computer Science & Information Technology (CS) 2018
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header ans 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes. Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes. Assume that the fragmentation offset value stored in the first fragment is 0.
The fragmentation offset value stored in the third fragment is ______ .
The fragmentation offset value stored in the third fragment is ______ .
PYP
Computer Science & Information Technology (CS) 2018
Consider a matrix P whose only eigenvectors are the multiples of . Consider the following statements : I. P does not have an inverse. II. P has a repeated eigenvalue. III. P cannot be diagonalized. Which one of the following options is correct?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following languages: I. where II. and where III. and where IV. where Which of the language above are context-free?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following C code. Assume that unsigned long int type length is 64 bits. Unsigned long int fun (unsigned long int n) { unsigned long int i, j = 0, sum = 0; for (I = n; I > 1; I = i/2) j++; for (; j > 1; j = j/2) sum++; return (sum); } The value returned when we call fun with the input is
PYP
Computer Science & Information Technology (CS) 2018
Consider the relations and where is a primary key and is a foreign key referencing Consider the query Let LOJ denote the natural left outer-join operation. Assume that r and s contain no null values. Which one of the following queries is NOT equivalent to Q?
PYP
Computer Science & Information Technology (CS) 2018
In a system, there are three types of resources: E, F and G. Four processes and execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example Max is the maximum number of instances of F that would require. The number of instances of the resources allocated to the various processes at any given state is given by a matrix named allocation. Consider a state of the system with the Allocation matrix as shown below and in which 3 instances of E and 3 instances of F are the only resources available. From the perspective of deadlock avoidance, which one of the following is true?
PYP
Computer Science & Information Technology (CS) 2018
Assume that multiplying a matrix of dimension with another matrix of dimension requires scalar multiplications. Computing the product of matrices can be done by parenthesizing in different ways. Define as an explicitly computed pair for a given parathesization if they are directly multiplied. For example, in the matrix multiplication chain using parenthesization and are the only explicitly computed pairs. Consider a matrix multiplication chain where matrices and are of dimensions and respectively. In the parenthesization of that minimizes the total number of scalar multiplications, the explicitly computed pairs is/are
PYP
Computer Science & Information Technology (CS) 2018
Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #. Which one of the following is correct for the given parse tree?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is N. Three semaphores empty, full and mutex are defined with respective initial values of 0, N and 1. Semaphore empty denotes the number of available slots in the buffer, for the consumer to read from. Semaphore full denotes the number of available slots in the buffer, for the producer to write to. The placeholder variables, denoted by P, Q, R and S, in the code below can be assigned either empty or full. The valid semaphore operations are: wait ( ) and signal ( ). Which one of the following assignments to P, Q, R and S will yield the correct solution?
PYP
Computer Science & Information Technology (CS) 2018
A lexical analyzer uses the following patterns to recognize three tokens and over the alphabet {a, b, c}. Note that ‘x?’ means 0 or 1 occurrence of the symbol x. Note also that the analyzer outputs the token that matches the longest possible prefix. If the string bbaacabc is processed by the analyzer, which one of the following is the sequence of tokens it outputs?
PYP
Computer Science & Information Technology (CS) 2018
Consider the unsigned 8-bit fixed point binary number representation below : Where the position of the binary point is between and Assume is the most significant bit. Some of the decimal numbers listed below cannot be represented exactly in the above representation: i. 31.500 ii. 0.875 iii. 12.100 iv. 3.001 Which one of the following statements is true?
PYP
Computer Science & Information Technology (CS) 2018
Let N be the set of natural numbers. Consider the following sets: P. Set of rational numbers (positive and negative). Q. Set of functions from {0, 1} to N. R. Set of functions from N to {0, 1}. S. Set of finite subsets of N. Which of the sets above are countable?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following C program: #include void fun 1 (char *s1, char *s2) { char *tmp; tmp = s1; s1 = s2; s2 = tmp; } Void fun2 (char **s1, char **s2) { char *tmp; tmp = *s1; *s1 = *s2; *s2 = tmp; } int main () { char *str1 = “Hi”, *str2 = “Bye”; fun1 (str1, str2); printf(“%s %s”, str1, str2); fun2 (&str1, &str2); printf(“%s %s”, str1, str2); return 0; } The output of the program above is
PYP
Computer Science & Information Technology (CS) 2018
Consider the first-order logic sentence where is a quantifier-free-order logic formula using only predicate symbols and possibly equality, but no function symbols. Suppose φ has a model with a universe containing 7 elements. Which one of the following statements is necessarily true?
PYP
Computer Science & Information Technology (CS) 2018
Let G be a simple undirected graph. Let be a depth first search tree of G. Let be a breadth first search tree of G. Consider the following statements: I. No edge of G is a cross edge with respect to (A cross edge is G is between two nodes neither of which is an ancestor of the other in ). II. For every edge (u, v) of G, if u is at depth i and v is at depth j in then Which of the statements above must necessarily be true?
PYP
Computer Science & Information Technology (CS) 2018
The size of the physical address space of a processor is bytes. The word length is bytes. The capacity of cache memory is bytes, The size of each cache block is words. For a K-way set-associative cache memory, the length (in number of bits) of the tag field is
PYP
Computer Science & Information Technology (CS) 2018
Consider the following problems L(G) denotes the language generated by a grammar G. L(M) denotes the language accepted by a machine M. I. For an unrestricted grammar G and a string w, where L(G). II. Given a Turing Machine M, whether L(M) is regular. III. Given two grammars and whether IV. Given an NFA N, whether there is a deterministic PDA P such that N and P accept the same language. Which one of the following statements is correct?
PYP
Computer Science & Information Technology (CS) 2018
Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys. Schema I : Registration (rollno, courses) Field ‘courses’ is a set-valued attribute containing the set of courses a student has registered for. rollno → courses Schema II : Registration (rollno, courseid, email) Non-trivial functional dependencies: rollno, courseid → email email → rollno Schema III : Registration (rollno, courseid, marks, grade) Non-trivial functional dependencies: rollno, courseid → marks, grade marks → grade Schema IV : Registration (rollno, courseid, credit) Non-trivial functional dependencies: rollno, courseid → credit courseid → credit Which one of the relational schemas above is in 3NF but not in BCNF?
Showing 5 of 65 questions