ISRO Scientist or Engineer Computer Science Dec 2017

For the following questions answer them individually

Consider the set of integers I. Let D denote “divides with an integer quotient” (e.g. 4D8 but 4D7). Then D is

A bag contains 19 red balls and 19 black balls. Two balls are removed at a time repeatedly and discarded if they are of the same colour, but if they are different, black ball is discarded and red ball is returned to the bag. The probability that this process will terminate with one red ball is

If x = -1 and x = 2 are extreme points of $$f(x) = \alpha \log \mid x \mid + \beta x^2 + x$$ then

If T (x) denotes x is a trigonometric function, P(x) denotes x is a periodic function and C(x) denotes x is a continuous function then the statement “It is not the case that some
trigonometric functions are not periodic” can be logically represented as

Consider the schema
Sailors(sid, sname, rating, age) with the following data

For the query
SELECT S.rating, AVG(S.age) AS avgage FROM Sailors S
Where S.age $$\ge$$ 18
GROUP BY S.rating
HAVING 1 $$<$$ (SELECT COUNT($$*$$) FROM Sailors S2 where S.rating $$=$$ S2.rating)
The number of rows returned is

Consider a table that describes the customers :
Customers(custid, name, gender, rating)
The rating value is an integer in the range 1 to 5 and only two values (male and female) are recorded for gender. Consider the query “how many male customers have a rating of 5”? The best indexing mechanism appropriate for the query is

Consider the following schema :
Sailors(sid,sname,rating,age)
Boats(bid,bname, colour)
Reserves(sid,bid,day)
Two boats can have the same name but the colour differentiates them.
The two relations
$$\rho(Tempsids, (\pi_{sid, bid}Reserves)/(\pi_{bid }(\sigma_{bname = 'Ganga'} Boats)))$$,
$$\pi_{sname}(Tempsids \bowtie Sailors)$$
If / is division operation, the above set of relations represents the query

Consider the following table : Faculty(facName, dept, office, rank, dateHired)

(Assume that no faculty member within a single department has same name. Each faculty member has only one office identified in office). 3NF refers to third normal form and BNCF
refers to Boyce-Codd normal form
Then Faculty is

Consider the following query :
SELECT E.eno, COUNT(*)
FROM Employees E
GROUP BY E.eno
If an index on eno is available, the query can be answered by scanning only the index if

For $$\sum = \left\{a, b\right\}$$ the regular expression $$r = (aa) * (bb) * b$$ denotes

Identify the language generated by the following grammar
$$S \rightarrow AB$$
$$A \rightarrow aAb \mid ε$$
$$B \rightarrow bB \mid b$$

Let $$L_1$$ be regular language, $$L_2$$ be a deterministic context free language and $$L_3$$ a recursively enumerable language, but not recursive. Which one of the following statements is false?

Let $$L = \left\{a^p \mid p is a prime \right\}$$. Then which of the following is true

Which of the following are context free?
$$A = \left\{a^nb^n a^mb^m \mid m, n \geq 0\right\}$$
$$B = \left\{a^mb^n a^mb^n \mid m, n \geq 0\right\}$$
$$C = \left\{a^mb^n\mid m \neq 2n, m, n \geq 0\right\}$$

Let S be an NP-complete problem. Q and R are other two problems not known to be NP. Q is polynomial time reducible to S and S is polynomial time reducible to R. Which of the
following statements is true?

Using public key cryptography, X adds a digital signature σ to a message M, encrypts $$\langle M, \sigma \rangle$$ and sends it to Y, where it is decrypted. Which one of the following sequence of keys is used for operations?

An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization A, and a quarter to Organization B, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to A and B?

Assume that Source S and Destination D are connected through an intermediate router R. How many times a packet has to visit the network layer and data link layer during a
transmission from S to D?

Consider the set of activities related to e-mail
A : Send an e-mail from a mail client to mail server
B : Download e-mail headers from mail box and retrieve mails from server to a cache
C : Checking e-mail through a web browser
The application level protocol used for each activity in the same sequence is

Station A uses 32 byte packets to transmit messages to Station B using a sliding window protocol. The round trip time delay between A and B is 40 ms and the bottleneck bandwidth
on the path A and B is 64 kbps. What is the optimal window size that A should use?

A two way set associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The physical address space is 4 GB. The number of bits in the TAG, SET fields are

A CPU has a 32 KB direct mapped cache with 128 byte block size. Suppose A is a 2 dimensional array of size 512  512 with elements that occupy 8 bytes each. Consider the
code segment
for (i =0; i < 512; i++) {
for (j =0; j < 512; j++) {
x += A[i][j];
}
}
Assuming that array is stored in order A[0][0], A[0][1], A[0][2]……, the number of cache misses is

A computer with 32 bit word size uses 2s compliment to represent numbers. The range of integers that can be represented by this computer is

For a pipelines CPU with a single ALU, consider the following :
A. The $$j + 1^{st}$$ instruction uses the result of $$j^{th}$$ instruction as an operand
B. Conditional jump instruction
C. $$j^{th}$$ and $$j + 1^{st}$$ instructions require ALU at the same time
Which one of the above causes a hazard?

In designing a computer’s cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct in this context?

Consider an instruction of the type LW R1, 20(R2) which during execution reads a 32 bit word from memory and stores it in a 32 bit register R1. The effective address of the memory location is obtained by adding a constant 20 and contents of R2. Which one best reflects the source operand

In a compact one dimensional array representation for lower triangular matrix (all elements above diagonal are zero) of size $$n \times n$$, non zero elements of each row are stored one after another, starting from first row, the index of $$(i, j)^{th}$$ element in this new representation is

Quick sort is run on 2 inputs shown below to sort in ascending order
A. 1, 2, 3……n
B. n, n - 1, n - 2 …… 1
Let C1 and C2 be the number of comparisons made for A and B respectively.
Then

The characters of the string K R P C S N Y T J M are inserted into a hash table of size of size 10 using hash function
h(x) = (ord(x) - ord(A) + 1)
If linear probing is used to resolve collisions, then the following insertion causes collision

Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the reversal ordering on natural numbers i.e. 9 is assumed to be smallest and 0 is assumed to be largest. The in-order traversal of the resultant binary search tree is

A priority queue is implemented as a Max-heap. Initially it has 5 elements. The level order traversal of the heap is 10, 8, 5, 3, 2. Two new elements ‘1’ and ‘7’ are inserted into the heap in that order. The level order traversal of the heap after the insertion of the elements is

Which one of the following property is correct for a red-black tree?

A virtual memory system uses FIFO page replacement policy and allocates a fixed number of frames to the process. Consider the following statements
M : Increasing the number of page frames allocated to a process sometimes increases the page fault rate
N : Some programs do not exhibit locality of reference
Which one of the following is true?

Consider three CPU intensive processes, which require 10, 20, 30 units and arrive at times 0,2,6 respectively. How many context switches are needed if shortest remaining time first is implemented? Context switch at 0 is included but context switch at end is ignored

A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 50 distinct pages in some order and then accesses the same 50 pages in reverse order. How many page faults will occur?

Which of the following is false?

Which of the following is not true with respect to deadlock prevention and deadlock avoidance schemes?

Which one of the following are essential features of object oriented language?
A. Abstraction and encapsulation
B. Strictly-typed
C. Type-safe property coupled with sub-type rule
D. Polymorphism in the presence of inheritance

Consider the code segment
int i, j, x, y, m, n;
n = 20;
for (i = 0, i < n; i++)
{
for (j = 0; j < n; j++)
{
if (i % 2)
{
x + = ((4*j) + 5*i);
y += (7 + 4*j);
}
}
}
m = x + y;
Which one of the following is false?

Consider a disk sequence with 100 cylinders. The request to access the cylinder occur in the following sequence :
4, 34, 10, 7, 19, 73, 2, 15, 6, 20
Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all requests if it takes 2 ms to move from one cylinder to adjacent one and shortest seek time first policy is used?

We consider the addition of two 2’s compliment numbers $$b_{n - 1}b_{n - 2}.......b_{0}$$ and $$a_{n - 1}a_{n - 2}.........a_0$$. A binary adder for adding two unsigned binary numbers is used to add two binary numbers. The sum is denoted by $$c_{n - 1}c_{n - 2}.......c_{0}$$ The carry out is denoted by $$c_{out}$$. The overflow condition is identified by

Consider the results of a medical experiment that aims to predict whether someone is going to develop myopia based on some physical measurements and heredity. In this case, the input data set consists of the person’s medical characteristics and the target variable is binary: 1 for those who are likely to develop myopia and 0 for those who aren’t. This can be best classified as

Join CAT 2026 course by 5-Time CAT 100%iler

Crack CAT 2026 & Other Exams with Cracku!