GATE Exam  >  GATE Tests  >  Test : CSE Past Year Paper 2018 - GATE MCQ

Test : CSE Past Year Paper 2018 - GATE MCQ


Test Description

30 Questions MCQ Test - Test : CSE Past Year Paper 2018

Test : CSE Past Year Paper 2018 for GATE 2024 is part of GATE preparation. The Test : CSE Past Year Paper 2018 questions and answers have been prepared according to the GATE exam syllabus.The Test : CSE Past Year Paper 2018 MCQs are made for GATE 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test : CSE Past Year Paper 2018 below.
Solutions of Test : CSE Past Year Paper 2018 questions in English are available as part of our course for GATE & Test : CSE Past Year Paper 2018 solutions in Hindi for GATE course. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free. Attempt Test : CSE Past Year Paper 2018 | 65 questions in 180 minutes | Mock test for GATE preparation | Free important questions MCQ to study for GATE Exam | Download free PDF with solutions
Test : CSE Past Year Paper 2018 - Question 1

What is the missing number in the following sequence? 2, 12, 60, 240, 720, 1440, .... 0

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 1

The series starts with 2. We multiply first term with 6 to get second term 12 Then we multiply second term with 5 to get third term 60 Then we multiply third term with 4 to get fourth term 340 Then we multiply fourth term with 3 to get fifth term 720 Then we multiply fifth term with 2 to get fifth term 1440. Then we need to multiply with 1 and we get 1440 again.

Test : CSE Past Year Paper 2018 - Question 2

What would be the smallest natural number which when divided either by 20 or by 42 or by 76 leaves a remainder ‘7’ in each case is_

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 2

We need a number that can be written as 20x + 7, 42y + 7, 76z + 7 for three integers x, y and z. We basically need to find least common multiple of 20 (2 * 2 *5), 42(2 * 3 * 7) and 76(2 * 2 * 19) which is 2 * 2 * 5 * 3 * 7 * 19 = 20 * 21 * 19 = 420 * 19 = 7980 So our number is 7980 + 7 = 7987. 
Note - You can also verify options using virtual calculator.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test : CSE Past Year Paper 2018 - Question 3

"From where are they bringing their books? _________ bringing _________ books from _________." The words that best fill the blanks in the above sentence are

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 3

"From where are they bringing their books? Who bringing Whose books from Where." Who - A group as subject = They are Whose - of that group = their Where - from a place = there "From where are they bringing their books? They are bringing their books from there." So, option (B) is correct choice.

Test : CSE Past Year Paper 2018 - Question 4

A __________ investigation can sometimes yield new facts, but typically organized once are more successful.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 4

Meandering (as adjective) = proceeding in a convoluted or undirected fashion. Timely (as adjective) = done or occurring at a favourable or useful time; opportune. Consistent (as adjective) = acting or done in the same way over time, especially so as to be fair or accurate. Systematic (as adjective) = done or acting according to a fixed plan or system; methodical. Therefore, meandering is correct choice, all other options are similar to the word organized.

Test : CSE Past Year Paper 2018 - Question 5

The area of a square is ‘d’. What is the area of the circle which has the diagonal of the square as its diameter?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 5


One important observation to solve the question :
Diagonal of Square = Diameter of Circle.
Let side of square be x.
From Pythogorous theorem. Diagonal = √(2*x*x)
We know area of square = x * x = d
Diameter = Diagonal = √(2*d)
Radius = √(d/2)
Area of Circle = π * √(d/2) * √(d/2) = 1/2 * π * d

Test : CSE Past Year Paper 2018 - Question 6

In the figure below, ∠DEC+∠BFC is equal to _______ .

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 6

Test : CSE Past Year Paper 2018 - Question 7

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?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 7

Let total males and females be 60x and 40x respectively.
Total number of people = (60x + 40x)
Total number of people who attended : 0.8(60x + 40x) = 80x
Let y males attended. It is given all 1females attended
40x + y = 80x
y = 40x which is same as females.
Alternative Approach - Lets total number of people = 100. Therefore, 60 are male and and 40 are female. But total 80 guests are attended and all 40 female attended the party. So, there remaining (80 - 40 = 40) attendees should be male. Then the ration of male to female among attendees is 40 : 40 = 1 : 1

Test : CSE Past Year Paper 2018 - Question 8

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?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 8

Considering uniformly distributed outcomes, we get 4 greens and 2 reds in six throws. Then in one more throw, green is more likely. So, option (C) is correct.

Test : CSE Past Year Paper 2018 - Question 9

If pqr ≠ 0 and  what is the value of the product xyz ?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 9

Taking logs of given three values, we get
1/q = p-x -------(1)
1/r = q-y -------(2)
1/p = r-z -------(3)
1/q = p-x
= r-xz [Putting value of p from (3)]
= q-xyz [Putting value of r from (2)]
= 1 / qxyz
On comparing power of q both sides, we get xyz = 1
So, option (C) is correct.

Test : CSE Past Year Paper 2018 - Question 10

In appreciative of social improvement completed in a town, a wealthy philanthropist decided to give gift of Rs. 750 to each male senior citizen and Rs. 1000 for female senior citizens. There are total 300 senior citizens and th 8/9th of total men and 2/3rd of total women claimed the gift. What is amount of money philanthropist paid?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 10

Let there be x total men.
Total amount paid = x * 750 * 8/9 + (300 - x)*1000*2/3
= x*2000/3 + 300*1000*2/3 - x*2000/3
= 200000

Test : CSE Past Year Paper 2018 - Question 11

A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure. Let n denote the number of nodes in the queue. Let 'enqueue' be implemented by inserting 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?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 11

For Enqueue operation, performs in constant amount of time (i.e., Θ(1)), because it modifies only two pointers, i.e.,
Create a Node P.
P-->Data = Data
P-->Next = Head
Head = P
For Dequeue operation, we need address of second last node of single linked list to make NULL of its next pointer. Since we can not access its previous node in singly linked list, so need to traverse entire linked list to get second last node of linked list, i.e.,
temp = head;
While( temp-Next-->Next != NULL){
temp = temp-Next;
}
temp-->next = NULL;
Tail = temp;
Since, we are traversing entire linked for each Dequeue, so time complexity will be Θ(n). Option (B) is correct.

Test : CSE Past Year Paper 2018 - Question 12

The chromatic number of the following graph is _________ . Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 12

Chromatic number of given graph is 3.

Note that graph is Planar so Chromatic number should be less than or equal to 4 and can not be less than 3 because of odd length cycle. In other words if a graph is planar and has odd length cycle then Chromatic number can be either 3 or 4 only.

Test : CSE Past Year Paper 2018 - Question 13

Consider a matrix  Note that v^T denotes the transpose of v. The largest eigenvalue of A is ________ . Note -This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 13




Test : CSE Past Year Paper 2018 - Question 14

Consider the following C program:
#include <stdio.h>
int counter = 0;
int calc(int a, int b) {
int c;
counter++;
if (b == 3)
return (a * a * a);
else {
c = calc(a, b / 3);
return (c * c * c);
}
}
int main() {
calc(4, 81);
printf("%d", counter);
}

The output of this program is ________ . Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 14

Test : CSE Past Year Paper 2018 - Question 15

A 32 - bit wide main memory unit with a capacity of 1 GB is built using 256M X 4-bit 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 closet integer) of the time available for performing the memory read/write operations in the main memory unit is _______ . 
Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 15

Given, total number of rows is 214 and time taken to perform one refresh operation is 50 nanoseconds. So, total time taken to perform refresh operation = 214*50 nanoseconds = 819200 nanoseconds = 0.819200 milliseconds. But refresh period is 2 milliseconds. So, time spent in refresh period in percentage = (0.819200 milliseconds) / (2 milliseconds) = 0.4096 = 40.96% Hence, time spent in read/write operation = 100% - 40.96% = 59.04% = 59 (in percentage and rounded to the closet integer). So, answer is 59.

Test : CSE Past Year Paper 2018 - Question 16

Let G be a finite group on 84 elements. The size of a largest possible proper subgroup of G is _______ . 
Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 16

According to Lagrange's theorem, states that for any finite group G, the order (number of elements) of every subgroup H of G divides the order of G. Therefore, possible subgroups of group on 84 elements are : 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84. Subgroups with element 1 and 84 are trivial groups. The size of a largest possible proper subgroup of G is 42.

Test : CSE Past Year Paper 2018 - Question 17

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 experimental 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?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 17

Given, average time for a memory access = M units if page hits, and average time for a memory access = D units if page fault occurred. And total/experimental average time taken for a memory access = X units. Let page fault rate is p. Therefore, Average memory access time = ( 1 - page fault rate) * memory access time when no page fault + Page fault rate * Memory access time when page fault → X = (1 - p)*M + p*D = M - M*p + p*D → X = M + p(D - M) → (X - M) = p(D - M) → p = (X - M) / (D - M) So, option (B) is correct.

Test : CSE Past Year Paper 2018 - Question 18

Which one the following is a closed form expression for the generating function of the sequence {an}, where an = 2n + 3 for all n = 0, 1, 2,...?



Detailed Solution for Test : CSE Past Year Paper 2018 - Question 18

Given an = 2n + 3 Generating function G(x) for the sequence an is G(x) =



Test : CSE Past Year Paper 2018 - Question 19

Which one of the following statements is FALSE?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 19

Type checking is done at semantic analysis phase and parsing is done at syntax analysis phase. And we know Syntax analysis phase comes before semantic analysis. So Option (B) is False. All other options seems Correct.

Test : CSE Past Year Paper 2018 - Question 20

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 the longest path from the root to any leaf. The height of the binary tree above is ________ . 
Note -This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 20

Given, post-order - 8, 9, 6, 7, 4, 5, 2, 3, 1 and in-order - 8, 6, 9, 4, 7, 2, 5, 1, 3 Construct a binary tree from postorder and inorder traversal :

The height of the binary tree above is 4.

Test : CSE Past Year Paper 2018 - Question 21

Let ⊕ and ⊙ denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 21

(A) (p⊕q)' = (pq' + p'q)' = (p'+q).(p+q') = (pp' +p'q' + qp + qq') = pq + p'q' = (p⊙q) (B) (p')⊕q = (p')q' + (p')'q = pq + p'q' = (p⊙q) (C) (p'⊕q') = (p')'.(q') + (p').(q')' = p.(q') + (p').q = p⊕q. (D) (p⊕(p'))⊕q =(pp''+ p'p')⊕q =(p+p')⊕q = 1⊕q = 1.q' + 0.q = q' And (p⊙(p'))⊙(q') = (pp' + p'.p'')⊙(q') = 0⊙(q') = 0(q') + 1.(q')' = q Please note that (p⊕q) = (p'⊙q) = (p⊙q') = (p'⊙q')' but not (p'⊙q'). Similarly, (p⊙q) = (p'⊕q) = (p⊕q') = (p'⊕q')' but not (p'⊕q'). So, option (D) is false.

Test : CSE Past Year Paper 2018 - Question 22

Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS denotes the Maximum Segment Size.

  1. The cwnd increase by 2 MSS on every successful acknowledgement.
  2. The cwnd approximately doubles on every successful acknowledgedment.
  3. The cwnd increase by 1 MSS every round trip time.
  4. The cwnd approximately doubles every round trip time.

Which one of the following is correct?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 22

Slow-start begins initially with a congestion window size (cwnd) of 1, 2, 4 or 10 MSS. The value of the Congestion Window will be increased by one with each acknowledgement (ACK) received, effectively doubling the window size each round-trip time (approximately exponential). The cwnd increase by 1 MSS on every successful acknowledgement. Therefore, only statement (iv) is correct. Option (C) is true.

Test : CSE Past Year Paper 2018 - Question 23

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 of the following is the correct order in the which the events above occur?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 23

Test : CSE Past Year Paper 2018 - Question 24

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 that the cardinality of E2. Which one of the following is true about R?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 24

Since given relation is many to one :

Therefore, no entity in E1 can be related to more than one entity in E2 and an entity in E2 can be related to more than one entity in E1. Only option (A) is correct.

Test : CSE Past Year Paper 2018 - Question 25

The value of  correct to three decimal places (assuming that   is _______ . 
Note -This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 25

Test : CSE Past Year Paper 2018 - Question 26

Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 26

The minimum number of state in DFA will be 1 when we have only starting state and all other states will not be reachable from stating state. The minimum number of state in DFA will be 2n as the number of subsets of a set with n elements in the worst case. Therefore, k ≤ 2n Option (D) is correct. Related question - GATE | Gate IT 2008 | Question 6

Test : CSE Past Year Paper 2018 - Question 27

Two people, P and Q, decide to independently roll two identical dice, each with 6 faces, numbered 1 to 6. 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 equi-probable and that all trials are independent. The probability (rounded to 3 decimal places) that one of them wins on the third trial is _______ . 
Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 27

Given there are two identical dices, each having 6 faces. Favorable events for tie = {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)} Since two dice are thrown, total sample space will be 6 x 6 = 36 Therefore, P(tie) = 6/36 = 1/6 and Probability of not tie = (1 - 1/6) To one of them win on third trial, previous two trials should be tie. = 1/6 * 1/6 * (1 - 1/6) = 1/36 * 5/6 = 5/216 = 0.023 So, option (C) is correct.

Test : CSE Past Year Paper 2018 - Question 28

The set of all recursively enumerable languages is

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 28

Recursive Enumerable Language are closed under Union, Intersection, Concatenation and Kleene Closure (but not Complementation). So, we can easily rule out option (A) and option (B) comes to be TRUE. Recursive Language are subset of REL, but option (C) is saying opposite, so Option (C) is FALSE. REL are countable, since set of all Turing Machines are countable. So option (D) is also FALSE. Only Option (B) is CORRECT.

Test : CSE Past Year Paper 2018 - Question 29

Consider the following two tables and four queries in SQL.
Book (isbn, bname), Stock (isbn, copies)

Query 1:
SELECT B.isbn, S.copies
FROM Book B INNER JOIN Stock S
ON B.isbn = S.isbn;

Query 2:
SELECT B.isbn, S.copies
FROM B B LEFT OUTER JOIN Stock S
ON B.isbn = S.isbn;

Query 3:
SELECT B.isbn, S.copies
FROM Book B RIGHT OUTER JOIN Stock S
ON B.isbn = S.isbn;

Query 4:
SELECT B.isbn, S.copies
FROM B B FULL OUTER JOIN Stock S
ON B.isbn = S.isbn;

Which one of the queries above is certain to have an output that is a superset of the outputs of the other three queries?

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 29

In SQL the FULL OUTER JOIN combines the results of both left and right outer joins and returns all (matched or unmatched) rows from the tables on both sides of the join clause. So, option (D) is correct. See : Join (Inner, Left, Right and Full Joins), Inner Join vs Outer Join

Test : CSE Past Year Paper 2018 - Question 30

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 _______ . 
Note - This was Numerical Type question.

Detailed Solution for Test : CSE Past Year Paper 2018 - Question 30

Given, Number of processes (P) = 3 Number of resources (R) = 4 Since deadlock-free condition is:
R ≥ P(N − 1) + 1

Where R is total number of resources, P is the number of processes, and N is the max need for each resource.
4 ≥ 3(N − 1) + 1
3 ≥ 3(N − 1)
1 ≥ (N − 1)
N ≤ 2

Therefore, the largest value of K that will always avoid deadlock is 2. Option (B) is correct.

View more questions
Information about Test : CSE Past Year Paper 2018 Page
In this test you can find the Exam questions for Test : CSE Past Year Paper 2018 solved & explained in the simplest way possible. Besides giving Questions and answers for Test : CSE Past Year Paper 2018, EduRev gives you an ample number of Online tests for practice
Download as PDF