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

  1. A.

    {n,1}

  2. B.

    {n, n}

  3. C.

    {n2, 1}

  4. 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

Solutions and video are in the course

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

  1. A.

    Reflexive, not symmetric, transitive

  2. B.

    Not reflexive, not antisymmetric, transitive

  3. C.

    Reflexive, antisymmetric, transitive

  4. 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

Solutions and video are in the course

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

  1. A.

    1

  2. B.

    1/21

  3. C.

    0

  4. 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

Solutions and video are in the course

Question 4 Q12197

If x = -1 and x = 2 are extreme points of f(x) = α log |x| + β x2 + x then

  1. A.

    α = -6, β = -1/2

  2. B.

    α = 2, β = -1/2

  3. C.

    α = 2, β = 1/2

  4. 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

Solutions and video are in the course

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

  1. A.

    [-1, 0]

  2. B.

    [-1, 0)

  3. C.

    [-∞, 0]

  4. D.

    [-∞,1]

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

Question 6 Q12207

The proposition (P⇒Q)⋀(Q⇒P) is a

  1. A.

    tautology

  2. B.

    contradiction

  3. C.

    contingency

  4. D.

    absurdity

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

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

  1. A.

    ¬∃(x) [ T(x) ⋀ ¬P(x) ]

  2. B.

    ¬∃(x) [ T(x) ⋁ ¬P(x) ]

  3. C.

    ¬∃(x) [ ¬T(x) ⋀ ¬P(x) ]

  4. 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

Solutions and video are in the course

Question 8 Q12180

The number of elements in the power set of {{1, 2}, {2, 1, 1}, {2, 1, 1, 2}} is:

  1. A.

    3

  2. B.

    8

  3. C.

    4

  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

Solutions and video are in the course

Question 9 Q12179

The function f: [0,3]→[1,29] defined by f(x) = 2x3 - 15x2 + 36x + 1 is

  1. A.

    injective and surjective

  2. B.

    surjective but not injective

  3. C.

    injective but not surjective

  4. 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

Solutions and video are in the course

Question 10 Q98231

If vectors a⃗ = 2î + λĵ + k̂ and b⃗ = î − 2ĵ + 3k̂ are perpendicular to each other, then value of λ is

  1. A.

    2/5

  2. B.

    2

  3. C.

    3

  4. 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

Solutions and video are in the course

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

  1. A.

    6

  2. B.

    5

  3. C.

    4

  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

Solutions and video are in the course

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

  1. A.

    Linear hashing

  2. B.

    Extendible hashing

  3. C.

    B+ Tree

  4. 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

Solutions and video are in the course

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

  1. A.

    Names of sailors who have reserved all boats called Ganga

  2. B.

    Names of sailors who have not reserved any Gangaboat

  3. C.

    Names of sailors who have reserved at least one Gangaboat

  4. 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

Solutions and video are in the course

Question 14 Q12170

Type IV JDBC driver is a driver

  1. A.

    which is written in C++

  2. B.

    which requires an intermediate layer

  3. C.

    which communicates through Java sockets

  4. 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

Solutions and video are in the course

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:

  1. A.

    Not in 3NF, in BCNF

  2. B.

    In 3NF, not in BCNF

  3. C.

    In 3NF, in BCNF

  4. 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

Solutions and video are in the course

Question 16 Q12176

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:

  1. A.

    the index is only hash and clustered

  2. B.

    the index is only B+tree and clustered

  3. C.

    index can be hash or B+ tree and clustered or non-clustered

  4. 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

Solutions and video are in the course

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

  1. A.

    nonzero scalar matrix

  2. B.

    null matrix

  3. C.

    unit matrix

  4. 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

Solutions and video are in the course

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)

  1. A.

    O(n)

  2. B.

    O(2n)

  3. C.

    O(1)

  4. 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

Solutions and video are in the course

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

  1. A.

    O(log n)

  2. B.

    O(n2)

  3. C.

    O(n2 log n)

  4. 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

Solutions and video are in the course

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

  1. A.

    r, s, p, q

  2. B.

    r, p, s, q

  3. C.

    q, s, p, r

  4. 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

Solutions and video are in the course

Question 21 Q12190

For Σ={a,b} the regular expression r = (aa)*(bb)*b denotes

  1. A.

    Set of strings with 2 a’s and 2 b’s

  2. B.

    Set of strings with 2 a’s 2 b’s followed by b

  3. C.

    Set of strings with 2 a’s followed by b’s which is a multiple of 3

  4. 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

Solutions and video are in the course

Question 22 Q12193

Consider the grammar with productions

S → aSb | SS | ϵ

This grammar is

  1. A.

    not context-free, not linear

  2. B.

    not context-free, linear

  3. C.

    context-free, not linear

  4. 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

Solutions and video are in the course

Question 23 Q12192

Identify the language generated by the following grammar

S -> AB
 A -> aAb|ϵ
 B -> bB| b 
  1. A.

    {ambn | n>=m, m>0}

  2. B.

    {ambn | n>=m, m>=0}

  3. C.

    {ambn | n>m, m>0}

  4. 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

Solutions and video are in the course

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?

  1. A.

    L3 ∩ L1 is recursive

  2. B.

    L1 ∩ L2 ∩ L3 is recursively enumerable

  3. C.

    L1 ∪ L2 is context free

  4. 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

Solutions and video are in the course

Question 25 Q12195

Let L = {ap | p is a prime}. Then which of the following is true? ,

  1. A.

    It is not accepted by a Turing Machine

  2. B.

    It is regular but not context free

  3. C.

    It is context free but not regular

  4. 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

Solutions and video are in the course

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}

  1. A.

    A and B only

  2. B.

    A and C only

  3. C.

    B and C only

  4. 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

Solutions and video are in the course

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?

  1. A.

    R is NP-complete

  2. B.

    R is NP-hard

  3. C.

    Q is NP-complete

  4. 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

Solutions and video are in the course

Question 28 Q12222

The number of structurally different possible binary trees with 4 nodes is

  1. A.

    14

  2. B.

    12

  3. C.

    336

  4. D.

    168

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

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?

  1. A.

    Encryption : X’s private key followed by Y’s private key. Decryption : X’s public key followed by Y’s public key.

  2. B.

    Encryption : X’s private key followed by Y’s public key; Decryption : X’s public key followed by Y’s private key

  3. C.

    Encryption : X’s private key followed by Y’s public key; Decryption : Y’s private key followed by X’s public key.

  4. 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

Solutions and video are in the course

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

  1. A.

    P and S only

  2. B.

    P and Q only

  3. C.

    R and S only

  4. 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

Solutions and video are in the course

Question 31 Q12215

In the IPv4 addressing format, the number of networks allowed under Class C addresses is

  1. A.

    220

  2. B.

    224

  3. C.

    214

  4. D.

    221

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D

Solutions and video are in the course

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?

  1. A.

    245.248.136.0/21 and 245.248.128.0/22

  2. B.

    245.248.128.0/21 and 245.248.128.0/22

  3. C.

    245.248.132.0/22 and 245.248.132.0/21

  4. 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

Solutions and video are in the course

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?

  1. A.

    Network layer – 4 times, Data link layer – 4 times

  2. B.

    Network layer – 4 times, Data link layer – 6 times

  3. C.

    Network layer – 2 times, Data link layer – 4 times

  4. 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

Solutions and video are in the course

Question 34 Q12202

Generally TCP is reliable and UDP is not reliable. DNS which has to be reliable uses UDP because

  1. A.

    UDP is slower

  2. B.

    DNS servers has to keep connections

  3. C.

    DNS requests are generally very small and fit well within UDP segments

  4. 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

Solutions and video are in the course

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

  1. A.

    SMTP, HTTPS, IMAP

  2. B.

    SMTP, POP, IMAP

  3. C.

    SMTP, IMAP, HTTPS

  4. 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

Solutions and video are in the course

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?

  1. A.

    5

  2. B.

    10

  3. C.

    40

  4. D.

    80

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B

Solutions and video are in the course

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

  1. A.

    20, 7

  2. B.

    19, 8

  3. C.

    20, 8

  4. 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

Solutions and video are in the course

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

  1. A.

    16384

  2. B.

    512

  3. C.

    2048

  4. D.

    1024

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

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

  1. A.

    –232 to 232

  2. B.

    –231 to 232-1

  3. C.

    –231 to 231-1

  4. 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

Solutions and video are in the course

Question 40 Q12187

Let M = 11111010 and N = 00001010 be two 8 bit two’s complement number. Their product in two’s complement is

  1. A.

    11000100

  2. B.

    10011100

  3. C.

    10100101

  4. D.

    11010101

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

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?

  1. A.

    A and B only

  2. B.

    B and C only

  3. C.

    B only

  4. 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

Solutions and video are in the course

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?

  1. A.

    Smaller block size incurs lower cache miss penalty

  2. B.

    Smaller block size implies better spatial locality

  3. C.

    Smaller block size implies smaller cache tag

  4. 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

Solutions and video are in the course

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

  1. A.

    Immediate addressing

  2. B.

    Register addressing

  3. C.

    Register Indirect addressing

  4. 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

Solutions and video are in the course

Question 44 Q12156

A sorting technique is called stable if

  1. A.

    If it takes O(n log n) time

  2. B.

    It uses divide and conquer technique

  3. C.

    Relative order of occurrence of non-distinct elements is maintained

  4. 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

Solutions and video are in the course

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)

  1. A.

    q, r, p

  2. B.

    p, q, r

  3. C.

    q, p, r

  4. 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

Solutions and video are in the course

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

  1. A.

    i + j

  2. B.

    j + i(i - 1)/2

  3. C.

    i + j - 1

  4. 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

Solutions and video are in the course

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?

  1. A.

    7, 8, 9, 5, 6

  2. B.

    5, 9, 6, 7, 8

  3. C.

    7, 8, 9, 6, 5

  4. 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

Solutions and video are in the course

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

  1. A.

    C1 > C2

  2. B.

    C1 = C2

  3. C.

    C1 < C2 

  4. 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

Solutions and video are in the course

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?

  1. A.

    61, 52, 14, 17, 40, 43

  2. B.

    10, 65, 31, 48, 37, 43

  3. C.

    81, 61, 52, 14, 41, 43

  4. 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

Solutions and video are in the course

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

  1. A.

    Y

  2. B.

    C

  3. C.

    M

  4. D.

    P

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

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

  1. A.

    9, 8, 6, 4, 2, 3, 0, 1, 5, 7

  2. B.

    0, 1, 2, 3, 4, 5, 6, 7, 8, 9

  3. C.

    0, 2, 4, 3, 1, 6, 5, 9, 8, 7

  4. 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

Solutions and video are in the course

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

  1. A.

    10, 8, 7, 5, 3, 2, 1

  2. B.

    10, 8, 7, 2, 3, 1, 5

  3. C.

    10, 8, 7, 1, 2, 3, 5

  4. 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

Solutions and video are in the course

Question 53 Q12153

The minimum number of stacks needed to implement a queue is

  1. A.

    3

  2. B.

    1

  3. C.

    2

  4. D.

    4

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

Question 54 Q12221

A strictly binary tree with 10 leaves

  1. A.

    cannot have more than 19 nodes

  2. B.

    has exactly 19 nodes

  3. C.

    has exactly 17 nodes

  4. 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

Solutions and video are in the course

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.

  1. A.

    2

  2. B.

    3

  3. C.

    4

  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

Solutions and video are in the course

Question 56 Q12218

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

  1. A.

    Every simple path from a node to a descendant leaf contains the same number of black nodes.

  2. B.

    If a node is red, then one child is red and the other is black.

  3. C.

    If a node is red, then both its children are red.

  4. 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

Solutions and video are in the course

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

  1. A.

    e d b g f c a

  2. B.

    e d b f g c a

  3. C.

    d e b f g c a

  4. 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

Solutions and video are in the course

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?

  1. A.

    Both M and N are true and N is the reason for M

  2. B.

    Both M and N are true and N is not the reason for M

  3. C.

    Both M and N are false

  4. 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

Solutions and video are in the course

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

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    4

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

Question 60 Q12149

A process executes the following code

for (i = 0; i < n; i ++) fork( );

The total number of child processes created is

  1. A.

    n2

  2. B.

    2n+1 - 1

  3. C.

    2n

  4. 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

Solutions and video are in the course

Question 61 Q12213

Consider the following Scheduling:

image.png

Matching the table in the order A,B,C gives:

  1. A.

    t, u, s

  2. B.

    s, t, u

  3. C.

    u, s, t

  4. 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

Solutions and video are in the course

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?

  1. A.

    96

  2. B.

    100

  3. C.

    97

  4. D.

    92

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

Question 63 Q12150

Which of the following is false?

  1. A.

    User level threads are not scheduled by the kernel

  2. B.

    Context switching between user level threads is faster than context switching between kernel level threads

  3. C.

    When a user thread is blocked all other threads of its processes are blocked

  4. 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

Solutions and video are in the course

Question 64 Q12214

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

  1. A.

    In deadlock prevention, the request for resources is always granted if resulting state is safe

  2. B.

    In deadlock avoidance, the request for resources is always granted, if the resulting state is safe

  3. C.

    Deadlock avoidance requires knowledge of resource requirements a priori

  4. 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

Solutions and video are in the course

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

  1. A.

    A and B only

  2. B.

    A, D and B only

  3. C.

    A and D only

  4. 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

Solutions and video are in the course

Question 66 Q12163

Which languages necessarily need heap allocation in the run time environment?

  1. A.

    Those that support recursion

  2. B.

    Those that use dynamic scoping

  3. C.

    Those that use global variables

  4. 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

Solutions and video are in the course

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?

  1. A.

    The code contains loop invariant computation

  2. B.

    There is scope of common sub-expression elimination in this code

  3. C.

    There is scope of strength reduction in this code

  4. 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

Solutions and video are in the course

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 :

  1. A.

    p, q, r, s

  2. B.

    q, r, s, p

  3. C.

    r, s, q, p

  4. 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

Solutions and video are in the course

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?

  1. A.

    190

  2. B.

    238

  3. C.

    233

  4. D.

    276

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B

Solutions and video are in the course

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

  1. A.

    0

  2. B.

    13

  3. C.

    18

  4. D.

    5

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

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

  1. A.

    16

  2. B.

    18

  3. C.

    17

  4. D.

    19

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): B

Solutions and video are in the course

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

GATECS2006Q39
  1. A.

    cout · ¬(an−1 ⊕ bn−1)

  2. B.

    an−1bn−1¬cn−1 + ¬an−1¬bn−1cn−1

  3. C.

    cout ⊕ cn−1

  4. 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

Solutions and video are in the course

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

  1. A.

    89

  2. B.

    90

  3. C.

    91

  4. D.

    92

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): C

Solutions and video are in the course

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

  1. A.

    9

  2. B.

    8

  3. C.

    0

  4. D.

    10

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): A

Solutions and video are in the course

Question 75 Q12212

In IEEE floating point representation, the hexadecimal number 0xC0000000 corresponds to

  1. A.

    -3.0

  2. B.

    -1.0

  3. C.

    -4.0

  4. 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

Solutions and video are in the course

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.

  1. A.

    XOR gates, NOT gates

  2. B.

    AND gates, XOR gates and 1

  3. C.

    2 to 1 multiplexer

  4. 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

Solutions and video are in the course

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.

  1. A.

    r, p, s, q

  2. B.

    p, r, q, s

  3. C.

    s, r, q, p

  4. 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

Solutions and video are in the course

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

  1. A.

    Regression

  2. B.

    Decision Tree

  3. C.

    Clustering

  4. 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

Solutions and video are in the course

Question 79 Q12174

Which of the following related to snowflake schema is true?

  1. A.

    Each dimension is represented by a single dimensional table

  2. B.

    Maintenance efforts are less

  3. C.

    Dimension tables are normalised

  4. 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

Solutions and video are in the course

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

  1. A.

    SI

  2. B.

    IT

  3. C.

    T1

  4. D.

    17

Official answer key

Official answer key (ISRO Scientist/Engineer SC Computer Science 2017 ISRO Scientist/Engineer SC December 2017 · Computer Science): D

Solutions and video are in the course