1
GATE CSE 1989
Subjective
+2
-0
Disk requests come to disk driver for cylinders $$10,22,20,2,40,56$$ and $$38,$$ in that order at a time when the disk drive is reading from cylinder $$20.$$ The seek time is $$6msec$$ per cylinder. Compute the total seek time if the disk arm scheduling algorithm is
(a) First come first served
(b) Closest cylinder next.
2
GATE CSE 1989
MCQ (Single Correct Answer)
+2
-0.6
In which of the following cases it is possible to obtain different results for call-by-reference and call-by-name parameter passing?
A
Passing an expression as a parameter
B
Passing an array as a parameter
C
Passing a pointer as a parameter
D
Passing an array element as a parameter
3
GATE CSE 1989
MCQ (Single Correct Answer)
+2
-0.6
An unrestricted use of the "goto" statement is harmful because of which of the following reason(s):
A
it makes it more difficult to verify programs
B
it makes programs more inefficient
C
it makes it more difficult to modify existing programs
D
it results in the compiler generating longer machine code
4
GATE CSE 1989
Subjective
+2
-0
How many substrings (of all lengths inclusive ) can be formed from a character string of length $$n$$? Assume all characters to be distinct. Prove your answer.
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12