GATE 2015 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2015 (Session 3)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 36–40 of 65

Q36Numerical Integration2 marksNAT
The velocity v (in kilometer/minute) of a motorbike which starts from rest, is given at fixed intervals of time t (in minutes) as follows:
t 2 4 6 8 10 12 14 16 18 20 v 10 18 25 29 32 20 11 5 2 0
The approximate distance (in kilometers) rounded to two places of decimals covered in 20 minutes using Simpson's 1/3rd1/3^{rd} rule is _______________.

Q37Sorting2 marksMCQ−0.67 if wrong
Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?

Q38Function2 marksMCQ−0.67 if wrong
Consider the following recursive C function.
 void get(int n)
{
if (n<1) return;
get(n-1);
get(n-3);
printf("%d", n);
}
If get(6) function is being called in main()then how many times will the get()function be invoked before returning to the main()?

Q39File System2 marksNAT
Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long and block pointer is 8 bytes long. The maximum number of keys that can be accommodated in each non-leaf node of the tree is ____________.

Q40Boolean Algebra2 marksMCQ−0.67 if wrong
Given the function F=P'+QR , where F is a function in three Boolean variables P,Q and R and P'=!P, consider the following statements.
(S1) F=Σ\Sigma(4,5,6)
(S2) F=Σ\Sigma(0,1,2,3,7)
(S3) F=Π\Pi(4,5,6)
(S4) F=Π\Pi(0,1,2,3,7)
Which of the following is true?