ISRO Scientist or Engineer Computer Science 2018

Pipes forbid random accessing, while regular files do allow this.

All of the above

View Solution Video Solution

A class of 30 students occupy a classroom containing 5 rows of seats, with 8 seats in each row. If the students seat themselves at random, the probability that the sixth seat in the fifth row will be empty is

View Solution Video Solution

The domain ofthe function $$\log(\log \sin(x))$$ is

None of the above

View Solution Video Solution

The following paradigm can be usedto find the solution of the problem in minimum time:
Given a set of non-negative integer, and a value K, determine if there is a subset of the given set with sum equalto K:

Divide and Conquer

Branch and Bound

View Solution Video Solution

(G, *) is an abelian group. Then

$$x = x^$$, for any x belonging to G

$$x = x^2$$, for any x belonging to G

$$(x * y)^2 = x^2 * y^2$$, for any x, y belonging to G

G is of finite order

View Solution Video Solution

Consider the following C code segment:
#include
main()
int i, j, x;
scanf("%d", &x);
i = 1; j = 1;
while(1 < 10)j = j * i;
i = i + 1;
if(i == x)break;
>

>
For the program fragment above, which of the following statements about the variables i and j must be true after execution of this program? [ !(exclamation) sign denotes factorial in the answer ]

$$(j = (x - 1)!) \wedge (i \geq x)$$

$$(j = 9!) \wedge (i = 10)$$

$$((j = 10!) \wedge (i = 10)) \vee ((j = (x - 1)!) \wedge (i = x))$$

$$((j = 9!) \wedge (i \geq 10)) \vee ((j = (x - 1)!) \wedge (i = x))$$