Question 1
Question 2
Given i = 0, j = 1, k = –1
x = 0.5, y = 0.0
What is the output of the following expression in C language ?
x * y < i + j || k
Question 3
In _______, the bodies of the two loops are merged together to form a single loop provided that they do not make any references to each other.
Loop unrolling
Strength reduction
Loop concatenation
Loop jamming
Question 4
Suppose there are four processes in execution with 12 instances of a Resource R in a system.
The maximum need of each process and current allocation are given below:
With reference to current allocation, is system safe ? If so, what is the safe sequence ?
Yes, P1P2P3P4
Yes, P4P3P1P2
Yes, P2P1P3P4
Question 5
In TCP/IP Reference model, the job of _______ layer is to permit hosts to inject packets into any network and travel them independently to the destination. (1)Physical (2)Transport (3)Application (4)Host-to-network
(1)
(2) and (3)
(3) and (4)
(1), (2), (3) and (4)
Question 6
Question 7
Which of the following is not an inherent application of stack?
Implementation of recursion
Evaluation of a postfix expression
Job scheduling
Reverse a string
Question 8
Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?
Underflow occurs
Stack operations are performed smoothly
Overflow occurs
None of the above
Question 9
The following statement in ‘C’
int (*f())[ ];
declares
a function returning a pointer to an array of integers.
a function returning an array of pointers to integers.
array of functions returning pointers to integers.
an illegal statement.
Question 10
There are 50 questions to complete.