Question 1
Question 2
Question 3
Question 4
‘ptrdata’ is a pointer to a data type. The expression *ptrdata++ is evaluated as (in C++) :
Depends on compiler
(*ptrdata)++
*(ptrdata)++
*(ptrdata++)
Question 5
In __________ disk scheduling algorithm, the disk head moves from one end to other end of the disk, serving the requests along the way. When the head reaches the other end, it immediately returns to the beginning of the disk without serving any requests on the return trip.
LOOK
SCAN
C-LOOK
C-SCAN
Question 6
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?
F5, F2, F1, F3, F6, F4
F4, F6, F3, F1, F2, F5
F1, F2, F3, F4, F5, F6
F6, F5, F4, F3, F2, F1
Question 7
O(n2log n)
O(n2 + log n)
O(n3)
Question 8
Which of the following is not correct (in C++) ?
(1)
(2), (4)
(2), (3), (4)
(4)
Question 9
Question 10
Which of the following is not correct for virtual function in C++ ?
Must be declared in public section of class.
Virtual function can be static.
Virtual function should be accessed using pointers.
Virtual function is defined in base class.
There are 50 questions to complete.