ISRO Scientist/Engineer SC Computer Science 2017 — ISRO Scientist/Engineer SC December 2017 · Computer Science
Computer Science · 80 of 80 questions publicly available
Held on: 2017-12-17
Question 1 Q12178
Suppose A is a finite set with n elements. The number of elements and the rank of the largest equivalence relation on A are
- A.
{n,1}
- B.
{n, n}
- C.
{n2, 1}
- D.
{1, n2}
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 2 Q12182
Consider the set of integers I. Let D denote “divides with an integer quotient” (e.g. 4D8 but 4D̸7). Then D is
- A.
Reflexive, not symmetric, transitive
- B.
Not reflexive, not antisymmetric, transitive
- C.
Reflexive, antisymmetric, transitive
- D.
Not reflexive, not antisymmetric, not transitive
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 3 Q12177
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
- A.
1
- B.
1/21
- C.
0
- D.
0.5
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 4 Q12197
If x = -1 and x = 2 are extreme points of f(x) = α log |x| + β x2 + x then
- A.
α = -6, β = -1/2
- B.
α = 2, β = -1/2
- C.
α = 2, β = 1/2
- D.
α = -6, β =1/2
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 5 Q12181
Let f(x) = log|x| and g(x) = sin x . If A is the range of f(g(x)) and B is the range of g(f(x)) then A ∩ B is
- A.
[-1, 0]
- B.
[-1, 0)
- C.
[-∞, 0]
- D.
[-∞,1]
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 6 Q12207
The proposition (P⇒Q)⋀(Q⇒P) is a
- A.
tautology
- B.
contradiction
- C.
contingency
- D.
absurdity
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 7 Q12206
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
- A.
¬∃(x) [ T(x) ⋀ ¬P(x) ]
- B.
¬∃(x) [ T(x) ⋁ ¬P(x) ]
- C.
¬∃(x) [ ¬T(x) ⋀ ¬P(x) ]
- D.
¬∃(x) [ T(x) ⋀ P(x) ]
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 8 Q12180
The number of elements in the power set of {{1, 2}, {2, 1, 1}, {2, 1, 1, 2}} is:
- A.
3
- B.
8
- C.
4
- D.
2
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 9 Q12179
The function f: [0,3]→[1,29] defined by f(x) = 2x3 - 15x2 + 36x + 1 is
- A.
injective and surjective
- B.
surjective but not injective
- C.
injective but not surjective
- D.
neither injective nor surjective
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 10 Q98231
If vectors a⃗ = 2î + λĵ + k̂ and b⃗ = î − 2ĵ + 3k̂ are perpendicular to each other, then value of λ is
- A.
2/5
- B.
2
- C.
3
- D.
5/2
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 11 Q12173
Consider the schema Sailors(sid, sname, rating, age) with the following data:
sid | sname | rating | age |
|---|---|---|---|
22 | Dustin | 7 | 45 |
29 | Borg | 1 | 33 |
31 | Pathy | 8 | 55 |
32 | Robert | 8 | 25 |
58 | Raghu | 10 | 17 |
64 | Herald | 7 | 35 |
71 | Vishnu | 10 | 16 |
74 | King | 9 | 35 |
85 | Archer | 3 | 26 |
84 | Bob | 3 | 64 |
96 | Flinch | 3 | 17 |
For the query
SELECT S.rating, AVG(S.age) AS avgage FROM Sailors S
Where S.age >= 18
GROUP BY S.rating
HAVING 1 < (SELECT COUNT(*) FROM Sailors S2 where S.rating = S2.rating)The number of rows returned is
- A.
6
- B.
5
- C.
4
- D.
3
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 12 Q12175
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
- A.
Linear hashing
- B.
Extendible hashing
- C.
B+ Tree
- D.
Bit-mapped index
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 13 Q12171
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
ρ (Tempsids, (Ⲡ sid, bid Reserves)/(Ⲡ bid ( σ bname ='Ganga' Boats))),
Ⲡ sname (Tempsids ⋈ Sailors)If / is division operation, the above set of relations represents the query
- A.
Names of sailors who have reserved all boats called Ganga
- B.
Names of sailors who have not reserved any Gangaboat
- C.
Names of sailors who have reserved at least one Gangaboat
- D.
Names of sailors who have reserved at most one Ganga boat
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 14 Q12170
Type IV JDBC driver is a driver
- A.
which is written in C++
- B.
which requires an intermediate layer
- C.
which communicates through Java sockets
- D.
which translates JDBC function calls into API not native to DBMS
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 15 Q12172
Consider the following relation: Faculty(facName, dept, office, rank, dateHired).
facName | dept | office | rank | dateHired |
|---|---|---|---|---|
Ravi | Art | A101 | Professor | 1975 |
Murali | Math | M201 | Assistant | 2000 |
Narayanan | Art | A101 | Associate | 1992 |
Lakshmi | Math | M201 | Professor | 1982 |
Mohan | CSC | C101 | Professor | 1980 |
Sreeni | Math | M203 | Associate | 1990 |
Tanuja | CSC | C101 | Instructor | 2001 |
Ganesh | CSC | C105 | Associate | 1995 |
(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:
- A.
Not in 3NF, in BCNF
- B.
In 3NF, not in BCNF
- C.
In 3NF, in BCNF
- D.
Not in 3NF, not in BCNF
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 16 Q12176
Consider the following query:
SELECT E.eno, COUNT(*)
FROM Employees E
GROUP BY E.enoIf an index on eno is available, the query can be answered by scanning only the index if:
- A.
the index is only hash and clustered
- B.
the index is only B+tree and clustered
- C.
index can be hash or B+ tree and clustered or non-clustered
- D.
index can be hash or B+ tree and clustered
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 17 Q12185
If C is a skew-symmetric matrix of order n and X is n x 1 column matrix, then XTCX is a
- A.
nonzero scalar matrix
- B.
null matrix
- C.
unit matrix
- D.
matrix will all elements 1
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 18 Q12155
Consider the recurrence equation
T(n) = 2T(n-1), if n>0
= 1, otherwise
Then T(n) is (in big O order)
- A.
O(n)
- B.
O(2n)
- C.
O(1)
- D.
O(log n)
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 19 Q12154
Consider the program
void function(int n) {
int i, j, count=0;
for (i=n/2; i <= n; i++)
for (j = 1; j <= n; j = j*2)
count++;}The complexity of the program is
- A.
O(log n)
- B.
O(n2)
- C.
O(n2 log n)
- D.
O(n log n)
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 20 Q12167
Match the following and choose the correct answer for the order A, B, C, D
A. Strassen matrix multiplication p. Decrease and Conquer
B. Insertion sort q. Dynamic Programming
C. Guassian Elimination r. Divide and Conquer
D. Floyd shortest path algorithm s. Transform and Conquer
- A.
r, s, p, q
- B.
r, p, s, q
- C.
q, s, p, r
- D.
s, p, q, r
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 21 Q12190
For Σ={a,b} the regular expression r = (aa)*(bb)*b denotes
- A.
Set of strings with 2 a’s and 2 b’s
- B.
Set of strings with 2 a’s 2 b’s followed by b
- C.
Set of strings with 2 a’s followed by b’s which is a multiple of 3
- D.
Set of strings with even number of a’s followed by odd number of b’s
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 22 Q12193
Consider the grammar with productions
S → aSb | SS | ϵThis grammar is
- A.
not context-free, not linear
- B.
not context-free, linear
- C.
context-free, not linear
- D.
context free, linear
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 23 Q12192
Identify the language generated by the following grammar
S -> AB
A -> aAb|ϵ
B -> bB| b - A.
{ambn | n>=m, m>0}
- B.
{ambn | n>=m, m>=0}
- C.
{ambn | n>m, m>0}
- D.
{ambn | n>m, m>=0}
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 24 Q12191
Let L1 be regular language, L2 be a deterministic context free language and L3 a recursively enumerable language, but not recursive. Which one of the following statements is false?
- A.
L3 ∩ L1 is recursive
- B.
L1 ∩ L2 ∩ L3 is recursively enumerable
- C.
L1 ∪ L2 is context free
- D.
L1 ∩ L2 is context free
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 25 Q12195
Let L = {ap | p is a prime}. Then which of the following is true? ,
- A.
It is not accepted by a Turing Machine
- B.
It is regular but not context free
- C.
It is context free but not regular
- D.
It is neither regular nor context free, but accepted by a Turing Machine
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 26 Q12194
Which of the following are context free?
A = {aⁿbⁿaᵐbᵐ | m, n ≥ 0}
B = {aᵐbⁿaᵐbⁿ | m, n ≥ 0}
C = {aᵐbⁿ | m ≠ 2n, m, n ≥ 0}
- A.
A and B only
- B.
A and C only
- C.
B and C only
- D.
C only
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 27 Q12196
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?
- A.
R is NP-complete
- B.
R is NP-hard
- C.
Q is NP-complete
- D.
Q is NP-hard
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 28 Q12222
The number of structurally different possible binary trees with 4 nodes is
- A.
14
- B.
12
- C.
336
- D.
168
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 29 Q12208
Using public key cryptography, X adds a digital signature σ to a message M, encrypts (M,σ) and sends it to Y, where it is decrypted. Which one of the following sequence of keys is used for operations?
- A.
Encryption : X’s private key followed by Y’s private key. Decryption : X’s public key followed by Y’s public key.
- B.
Encryption : X’s private key followed by Y’s public key; Decryption : X’s public key followed by Y’s private key
- C.
Encryption : X’s private key followed by Y’s public key; Decryption : Y’s private key followed by X’s public key.
- D.
Encryption : X’s public key followed by Y’s private key; Decryption : Y’s public key followed by X’s private key.
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 30 Q12209
Which of the following are used to generate a message digest by the network security protocols? (P) SHA-256 (Q) AES (R) DES (S) MD5
- A.
P and S only
- B.
P and Q only
- C.
R and S only
- D.
P and R only
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 31 Q12215
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
- A.
220
- B.
224
- C.
214
- D.
221
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 32 Q3798
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?
- A.
245.248.136.0/21 and 245.248.128.0/22
- B.
245.248.128.0/21 and 245.248.128.0/22
- C.
245.248.132.0/22 and 245.248.132.0/21
- D.
245.248.136.0/24 and 245.248.132.0/21
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 33 Q12151
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?
- A.
Network layer – 4 times, Data link layer – 4 times
- B.
Network layer – 4 times, Data link layer – 6 times
- C.
Network layer – 2 times, Data link layer – 4 times
- D.
Network layer – 3 times, Data link layer – 4 times
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 34 Q12202
Generally TCP is reliable and UDP is not reliable. DNS which has to be reliable uses UDP because
- A.
UDP is slower
- B.
DNS servers has to keep connections
- C.
DNS requests are generally very small and fit well within UDP segments
- D.
None of these
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 35 Q12204
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
- A.
SMTP, HTTPS, IMAP
- B.
SMTP, POP, IMAP
- C.
SMTP, IMAP, HTTPS
- D.
SMTP, IMAP, POP
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 36 Q12203
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.
5
- B.
10
- C.
40
- D.
80
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 37 Q12198
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.
20, 7
- B.
19, 8
- C.
20, 8
- D.
21, 9
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 38 Q12199
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.
16384
- B.
512
- C.
2048
- D.
1024
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 39 Q12186
A computer with 32 bit word size uses 2s complement to represent numbers. The range of integers that can be represented by this computer is
- A.
–232 to 232
- B.
–231 to 232-1
- C.
–231 to 231-1
- D.
–231-1 to 232-1
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 40 Q12187
Let M = 11111010 and N = 00001010 be two 8 bit two’s complement number. Their product in two’s complement is
- A.
11000100
- B.
10011100
- C.
10100101
- D.
11010101
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 41 Q12200
For a pipelines CPU with a single ALU, consider the following: A. The j + 1st instruction uses the result of jth instruction as an operand B. Conditional jump instruction C. jth and j + 1st instructions require ALU at the same time Which one of the above causes a hazard?
- A.
A and B only
- B.
B and C only
- C.
B only
- D.
A , B and C
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 42 Q12159
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?
- A.
Smaller block size incurs lower cache miss penalty
- B.
Smaller block size implies better spatial locality
- C.
Smaller block size implies smaller cache tag
- D.
Smaller block size implies lower cache hit time
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 43 Q12201
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
- A.
Immediate addressing
- B.
Register addressing
- C.
Register Indirect addressing
- D.
Indexed addressing
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 44 Q12156
A sorting technique is called stable if
- A.
If it takes O(n log n) time
- B.
It uses divide and conquer technique
- C.
Relative order of occurrence of non-distinct elements is maintained
- D.
It takes O(n) space
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 45 Q12168
Match the following and choose the correct answer in the order A, B, C
A. Heap Construction p. O(n log n)
B. Hash table construction with linear probing q. O(n2)
C. AVL Tree construction r. O(n)
(Bounds given may or may not be asymptotically tight)
- A.
q, r, p
- B.
p, q, r
- C.
q, p, r
- D.
r, q, p
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 46 Q12184
In a compact one-dimensional array representation for a lower triangular matrix (all elements above the diagonal are zero) of size n x n, non-zero elements of each row are stored one after another, starting from the first row, the index of (i, j)th element in this new representation is
- A.
i + j
- B.
j + i(i - 1)/2
- C.
i + j - 1
- D.
i + j(j - 1)/2
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 47 Q12152
Which of the following permutation can be obtained in the same order using a stack assuming that input is the sequence 5, 6, 7, 8, 9 in that order?
- A.
7, 8, 9, 5, 6
- B.
5, 9, 6, 7, 8
- C.
7, 8, 9, 6, 5
- D.
9, 8, 7, 5, 6
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 48 Q12157
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
- A.
C1 > C2
- B.
C1 = C2
- C.
C1 < C2
- D.
Cannot say anything for arbitrary n
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 49 Q12224
A binary search tree is used to locate the number 43. Which one of the following probe sequences is not possible during the search?
- A.
61, 52, 14, 17, 40, 43
- B.
10, 65, 31, 48, 37, 43
- C.
81, 61, 52, 14, 41, 43
- D.
17, 77, 27, 66, 18, 43
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 50 Q42768
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) mod 10
If linear probing is used to resolve collisions, then the following insertion causes collision
- A.
Y
- B.
C
- C.
M
- D.
P
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 51 Q12223
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.
9, 8, 6, 4, 2, 3, 0, 1, 5, 7
- B.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- C.
0, 2, 4, 3, 1, 6, 5, 9, 8, 7
- D.
9, 8, 7, 6, 5, 4, 3, 2, 1, 0
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 52 Q102614
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
- A.
10, 8, 7, 5, 3, 2, 1
- B.
10, 8, 7, 2, 3, 1, 5
- C.
10, 8, 7, 1, 2, 3, 5
- D.
10, 8, 7, 3, 2, 1, 5
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 53 Q12153
The minimum number of stacks needed to implement a queue is
- A.
3
- B.
1
- C.
2
- D.
4
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 54 Q12221
A strictly binary tree with 10 leaves
- A.
cannot have more than 19 nodes
- B.
has exactly 19 nodes
- C.
has exactly 17 nodes
- D.
has exactly 20 nodes
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 55 Q12219
What is the maximum height of any AVL tree with 7 nodes? Assume that height of tree with single node is 0.
- A.
2
- B.
3
- C.
4
- D.
5
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 56 Q12218
Which one of the following property is correct for a red-black tree?
- A.
Every simple path from a node to a descendant leaf contains the same number of black nodes.
- B.
If a node is red, then one child is red and the other is black.
- C.
If a node is red, then both its children are red.
- D.
Every leaf node (sentinel node) is red.
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 57 Q12220
The in-order and pre-order traversal of a binary tree are d b e a f c g and a b d e c f g respectively. The post order traversal of a binary tree is
- A.
e d b g f c a
- B.
e d b f g c a
- C.
d e b f g c a
- D.
d e f g b c a
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 58 Q12166
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?
- A.
Both M and N are true and N is the reason for M
- B.
Both M and N are true and N is not the reason for M
- C.
Both M and N are false
- D.
M is false, but N is true
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 59 Q12148
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.
1
- B.
2
- C.
3
- D.
4
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 60 Q12149
A process executes the following code
for (i = 0; i < n; i ++) fork( );The total number of child processes created is
- A.
n2
- B.
2n+1 - 1
- C.
2n
- D.
2n - 1
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 61 Q12213
Consider the following Scheduling:

Matching the table in the order A,B,C gives:
- A.
t, u, s
- B.
s, t, u
- C.
u, s, t
- D.
u, t, s
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 62 Q12165
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?
- A.
96
- B.
100
- C.
97
- D.
92
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 63 Q12150
Which of the following is false?
- A.
User level threads are not scheduled by the kernel
- B.
Context switching between user level threads is faster than context switching between kernel level threads
- C.
When a user thread is blocked all other threads of its processes are blocked
- D.
Kernel level threads cannot utilize multiprocessor systems by splitting threads on different processors or cores
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 64 Q12214
Which of the following is not true with respect to deadlock prevention and deadlock avoidance schemes?
- A.
In deadlock prevention, the request for resources is always granted if resulting state is safe
- B.
In deadlock avoidance, the request for resources is always granted, if the resulting state is safe
- C.
Deadlock avoidance requires knowledge of resource requirements a priori
- D.
Deadlock prevention is more restrictive than deadlock avoidance
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 65 Q12210
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
- A.
A and B only
- B.
A, D and B only
- C.
A and D only
- D.
A, C and D only
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 66 Q12163
Which languages necessarily need heap allocation in the run time environment?
- A.
Those that support recursion
- B.
Those that use dynamic scoping
- C.
Those that use global variables
- D.
Those that allow dynamic data structures
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 67 Q12226
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;For this optimization analysis, assume that x and y were initialized before the segment and that the value assigned to m is used afterward.
Which one of the following is false?
- A.
The code contains loop invariant computation
- B.
There is scope of common sub-expression elimination in this code
- C.
There is scope of strength reduction in this code
- D.
There is scope of dead code elimination in this code
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 68 Q12158
Consider the following table :
A. Activation record p. Linking loader
B. Location counter q. Garbage collection
C. Reference counts r. Subroutine call
D. Address relocation s. Assembler
Matching A, B, C, D in the same order gives :
- A.
p, q, r, s
- B.
q, r, s, p
- C.
r, s, q, p
- D.
r, s, p, q
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 69 Q12164
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?
- A.
190
- B.
238
- C.
233
- D.
276
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 70 Q12160
A counting semaphore was initialized to 7. Then 20 P (wait) operations and x V (signal) operations were completed on this semaphore. If the final value of semaphore is 5, then the value x will be
- A.
0
- B.
13
- C.
18
- D.
5
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 71 Q12189
A 32-bit adder is formed by cascading 4-bit CLA adders. The gate delays (latency) for getting the sum bits is
- A.
16
- B.
18
- C.
17
- D.
19
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 72 Q12211
We consider the addition of two 2’s compliment numbers bn−1bn−2…b0 and an−1an−2…a0. A binary adder for adding two unsigned binary numbers is used to add two binary numbers. The sum is denoted by cn−1cn−2…c0. The carry out is denoted by cout. The overflow condition is identified by

- A.
cout · ¬(an−1 ⊕ bn−1)
- B.
an−1bn−1¬cn−1 + ¬an−1¬bn−1cn−1
- C.
cout ⊕ cn−1
- D.
an−1 ⊕ bn−1 ⊕ cn−1
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 73 Q12161
Consider the function
int fun(x: integer)
{
If x > 100 then fun = x – 10;
else
fun = fun(fun(x + 11));
}For the input x = 95, the function will return
- A.
89
- B.
90
- C.
91
- D.
92
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 74 Q12162
Consider the function
int func(int num) {
int count = 0;
while(num) {
count++;
num >>= 1;
}
return(count) ;
}For func(435) the value returned is
- A.
9
- B.
8
- C.
0
- D.
10
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 75 Q12212
In IEEE floating point representation, the hexadecimal number 0xC0000000 corresponds to
- A.
-3.0
- B.
-1.0
- C.
-4.0
- D.
-2.0
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D
Question 76 Q98232
Which of the following set of components is sufficient to implement any arbitrary Boolean function? Assume that only the components explicitly listed in each choice are available; no additional constant inputs are supplied.
- A.
XOR gates, NOT gates
- B.
AND gates, XOR gates and 1
- C.
2 to 1 multiplexer
- D.
Three input gates that output (A.B) + C for the inputs A, B, C
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 77 Q12205
Consider the following :
List‑I | List‑II |
|---|---|
A. Condition Coverage | p. Black Box Testing |
B. Equivalence Class Partitioning | q. System Testing |
C. Volume Testing | r. White Box Testing |
D. Beta Testing | s. Performance Testing |
Matching A, B, C, D in the same order gives.
- A.
r, p, s, q
- B.
p, r, q, s
- C.
s, r, q, p
- D.
q, r, s, p
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A
Question 78 Q12217
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 dataset 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
- A.
Regression
- B.
Decision Tree
- C.
Clustering
- D.
Association Rules
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B
Question 79 Q12174
Which of the following related to snowflake schema is true?
- A.
Each dimension is represented by a single dimensional table
- B.
Maintenance efforts are less
- C.
Dimension tables are normalised
- D.
It is not an extension of star schema
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C
Question 80 Q12169
Consider the following C function
C#include <stdio.h>
int main(void)
{
char c[ ] = "ICRBCSIT17";
char *p=c;
printf("%s", c+2[p] – 6[p] – 1);
return 0;
}
The output of the program is
- A.
SI
- B.
IT
- C.
T1
- D.
17
Official answer key
Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D