GATE 2018 Mini Mock 7 (full syllabus)
Attempt now to get your rank among 729 students!
Question 1
How can we calculate the total number of comparisons in bubble sort with n elements after k iterations ?
Question 2
I. #include<stdio.h>
II. main()
III. {
IV. int a=2, b=3;
V. char *x;
VI. x=&a=&b;
VII. a=1xab;
VIII.printf(“%d%d”, a,*x);
IX. }
If scanner reads an entire program then find the line number in which lexical error is produced.
Question 3
Question 4
Question 5
int i=5;
do {
putchar(i + 100);
printf(“%d”,i--);
}
while (i);
results in the printing of
Question 6
Question 7
(S) Sign: 1 bit
(E) Exponent: 8 bits
(M) Mantissa: 23 bits
The mantissa is normalized and has an implied “1” on the left of the point. Normalized form of mantissa is 1.M The exponent is formatted using excess-127 notation, with an implied base of 2. What will be the decimal value of the following 32 bit floating point number stored in above mentioned format?
1100000111111011000000000000000
Question 8
Let R be the relation on the set of positive integers such that aRb and only if a and b are distinct and let have a common divisor other than 1. Which one of the following statements about R is true?
Question 9
Question 10
Which of the following two states are equivalent?
Question 11
Question 12
I. P always beats Q
II. R always beats S
III. S loses to P only sometimes
IV. R always loses to Q
Which of the following can be logically inferred from the above statements?
(i) P is likely to beat all the three other players
(ii) S is the absolute worst player in the set
Question 13
The Palghat Gap (or Palakkad Gap), a region about 30 km wide in the southern part of the Western Ghats in India, is lower than the hilly terrain to its north and south. The exact reasons for the formation of this gap are not clear. It results in the neighboring regions of Tamil Nadu getting more rainfall from the South West monsoon and the neighboring regions of Kerala having higher summer temperatures.
What can be inferred from this passage?
Question 14
Which of the following options is the FARTHEST in meaning to the word below?
CHIMERICAL
Question 15
- 729 attempts
- 4 upvotes
- 7 comments
Tags :
GATE & PSU CSMock Tests