Choose the correct answer from the options given below:
1. A-IV B-III C-II D-I
2. A-II B-I C-III D-IV
3. A-IV B-III C-I D-II
4. A-III B-I C-IV D-II
Solution - (3) A-IV B-III C-I D-II
2. A processor chip is used for application in which 30% of execution time is spent on floating point addition. For the new model of the processor, the design team has come up with redesign the floating point adder to make it twice as fast. What will be possible maximum speed up by this redesign?
1. 2.0
2. 1.06
3. 1.18
4. 2.5
Solution - (3) 1.18
3. Find the sum of all four digit numbers formed using the digits 1.2.4 and 6.
1. 86.658
2. 88.8858
3. 91.958
4. 93.358
Solution - (1) 86.658
4. Suppose a circular queue of capacity (n-1) elements is implemented with an array of n elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variable respectively. Initially, REAR=FRONT=0. The conditions to detect queue empty and queue full are
1. EMPTY: REAR==FRONT
FULL: (REAR+1) mod n == FRONT
2. EMPTY: (FRONT +1) mod n == REAR
FULL: (REAR +1) mod n == FRONT
3. EMPTY (REAR +1) mod n == FRONT
FULL: REAR== FRONT
4. EMPTY: REAR== FRONT
FULL: (FRONT+1) mod n== REAR
Solution - (1) EMPTY: REAR==FRONT
FULL: (REAR+1) mod n == FRONT
5. Consider the rectangle with vertices (0,0), (0.2). (3.0), (3,2). There is scaling of 2 towards x-axis and 3 towards y-axis. The new cordinates of the rectangle are
1. (0.0). (6.0), (0.4). (6.4)
2. (0.0), (6,0), (0.4). (3.2)
3. (0,0), (6.0). (0.6). (6.6)
4. (0,0), (4,0), (0.6). (4,6)
Solution - (3) (0,0), (6.0). (0.6). (6.6)
Choose the correct answer from the options given below:
1. A-IV B-III C-I D-II
2. A-III B-IV C-II D-I
3. A-III B-I C-II D-IV
4. A-I B-III C-IV D-I
Solution - (2) A-III B-IV C-II D-I
7. Given below are two statements:
Which of the following concurrency control protocol ensures both conflict serializability and freedom from deadlock?
Statement I: Two phase locking
Statement II: Timestamp ordering
In the light of the above statements, choose the most appropriate answer from the options given below:
1. Both Statement I and Statement II are correct
2. Both Statement I and Statement II are incorrect
3. Statement I is correct but Statement II is incorrect
4. Statement I is incorrect but Statement II is correct
Solution - (4) Statement I is incorrect but Statement II is correct
8. Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.
Assertion A: I/O protection is ensured by a hardware trap
Reason R: I/O interrupt caused by the condition like I/O completion and device malfunction occuring within the I/O devices
In the light of the above statements, choose the correct answer from the options given below.
1. Both A and R are true and R is the correct explanation of A
2. Both A and R are true but R is NOT the correct explanation of A
3. A is true but R is false
4. A is false but R is true
Solution - (4) A is false but R is true
9. The compiler for high level language that runs on one machine and produces code for other machine is called-
1. Cross compiler
2. Multi-pass compiler
3. Optimizing Compiler
4. One pass Compiler
Solution - (1) Cross compiler
10. There are M points on one straight line AB and n points on another straight line AC none of them being 4. How many triangles can be formed with these points as vertices?
1. mn (m + n - 2)
2. 𝟏/𝟐 mn(m + n - 2)
3. 𝟏/𝟐 mn (m + n - 1)
4. mn (m + n - 1)
Solution - (2) 𝟏/𝟐 mn(m + n - 2)
Chat With Us