CS and IT GATE 2014 Set-1 Questions with Answer

Ques 53 Operating Systems


Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds.

Using the shortest remaining time first scheduling algorithm, the average process turnaround time (in milliseconds) is _______.



Ques 54 Operating Systems


Assume that there are 3 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is _______.



Ques 55 Programming and Data Structures


Consider the following C function in which size is the number of elements in the array E:

The value returned by the function MyX is the

A

maximum possible sum of elements in any sub-array of array E.

B

maximum element in any sub-array of array E.

C

sum of the maximum elements in all possible sub-arrays of array E.

D

sum of all the elements in the array E.



Ques 56 Reasoning


In a survey, 300 respondents were asked whether they own a vehicle or not. If yes, they were further asked to mention whether they own a car or scooter or both. Their responses are tabulated below. What percent of respondents do not own a scooter?



Ques 57 Theory of Computation


Let L be a language and L' be its complement. Which one of the following is NOT a viable possibility?

A

Neither L nor L' is recursively enumerable (r.e.).

B

One of L and L' is r.e. but not recursive; the other is not r.e.

C

Both L and L' are r.e. but not recursive.

D

Both L and L' are recursive.



Ques 58 Theory of Computation


Which of the regular expressions given below represent the following DFA?

I) 0*1(1 + 00*1)*
II) 0*1*1 + 11*0*1
III) (0 + 1)*1

A

I and II only

B

I and III only

C

II and III only

D

I, II, and III



Ques 59 Theory of Computation


Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?

A

B

C

D



Unique Visitor Count

Total Unique Visitors

Loading......