You are on page 1of 59

Computer

organization

Operating
System

Programmin
g

Database

10

10

10

10

20

20

20

20

20

30

30

30

30

30

40

40

40

40

40

50

50

50

50

50

None

Architecture

Operating
System

Programmin
g

Database

Data
Structures

10

10

10

10

10

20

20

20

20

20

30

30

30

30

30

40

40

40

40

40

50

50

50

50

50

Architecture

Operating
System

Programmin
g

Database

Data
Structures

10

10

10

10

10

20

20

20

20

20

30

30

30

30

30

40

40

40

40

40

50

50

50

50

50

Architecture

Operating
System

Programmin
g

Database

Data
Structures

10

10

10

10

10

20

20

20

20

20

30

30

30

30

30

40

40

40

40

40

50

50

50

50

50

Category 1 questions follow

Questio
n

FFFF will be the last memory location in a


memory of size
A) 1 k
B) 16 k
C) 32 k
D) 64 k

Category 1

10

Answe
r

D) 64 k
64 k is 216 bytes i.e 164 bytes i.e 10000
bytes in hex code

Category 1

10

Questio
n

A computer uses 8-digit mantissa and 2digit exponent. IF a = 0.052 and b = 28E
+ 11, then b+a-b will
A) Result is an overflow error
B) Result is an underflow error
C) Be 0
D) Be 5.28E + 11

Category 1

20

Answe
r
C) 0

Addition will be performed first. a+b will


be evaluated to b as the significant
digits of a will be lost when it is
converted to exponent 11.

Category 1

20

Questio
n

The Boolean expression X + XY equals


A) X+Y
B) X+XY
C) Y+YX
D) XY+YX

Category 1

30

Answe
r

A) X+Y
X(1+Y)+XY
= X+ XY+XY
= X+Y(X+X)
= X+Y

Category 1

30

Questio
n

If (12A)3 = (123)A , the value of A is


A) 3
B) 3 or 4
C) 2
D) None of the above

Category 1

40

Answe
r

D) None of the above


A + 2*3 + 1*3*3 = 3 + 2*A + 1*A*A
Solving for A, we get A = -4 or 3. Both are
infeasible

Category 1

40

Questio
n

To achieve parallelism, one needs a


minimum of
A) 2 processors
B) 3 processors
C) 4 processors
D) None of the above

Category 1

50

Answe
r

D) None of the above


Even with a single processor parallelism
can be achieved by overlapping
instruction fetch, decode, address
calculation, operand fetch and execution
of different instructions simultaneously

Category 1

50

Category 2 questions follow

Questio
n

To avoid the race condition, the number of


processes that may be simultaneously
inside their critical section is
A. 8
B. 1
C. 16
D.0

Category 2

10

Answe
r
B. 1

Category 2

10

Questio
n

In a paged memory, the page hit ratio is


0.35. the time required to access a page
in secondary memory is equal to 100ns.
The time required to access a page in
primary memory is 10ns. The average
time required to access a page is
A) 3.0ns
B) 68.0ns
C) 68.5ns
D) 78.5ns

20

Answe
r

C) 68.5ns
0.35*10 + (1-0.35) * 100 = 68.5 nss

Category 2

20

Questio
n

A computer system has 6 tape drives,


with n processes competing for them
Each process may need 3 tape drives. The
maximum value of n for which the
system is guaranteed to be deadlock free
is
A) 2
B) 3
C) 4
D) 1

Category 2

30

Answe
r
A)2

2 process can never lead to deadlock as


the peak time demand of 6(3+3) tape
drives can be satisfied. But 3 process can
lead to a deadlock if each hold 2 drives
and then demand one more

Category 2

30

Questio
n

In a multi user OS, 20 request are made


to use a particular resource per hour, on
an avg. The probability that no requests
are made in 45 mins is
A) e-15
B) e-5
C) 1-e-5
D) 1-e-10

Category 2

40

Answe
r

A) e-15
Arrival pattern is a Poisson distribution
P(k requests) = e-xt (xt)k /K!
K=0 , x = 20, T = 3/4

Category 2

40

Questio
n

IF there are 32 segments, each of size


1kb, then the logical address should have
A) 13 bits
B) 14 bits
C) 15 bits
D) 16 bits

Category 2

50

Answe
r

C) 15 bits
To specify a particular segment, 5 bits are
required (25 = 32). Having selected a
page, to select a particular byte one
needs 10 bits ( 210 = 1 K byte ). So, totally
5+10 = 15 bits are needed.

Category 2

50

Category 3 questions follow

Questio
n

If integer needs two bytes of storage, then


maximum value of a signed integer is
A) 216 1
B) 215 1
C) 216
D) 215

Category 3

10

Answe
r

B) 215 1
In signed magnitude form, one bit is
dedicate to store the sigh. Only the
remaining 15 bits are available to store the
magnitude.

Category 3

10

Questio
n

class Base {
final public void show() {
System.out.println("Base::show() called");
}
}
class Derived extends Base {
public void show() {
System.out.println("Derived::show() called");
}
}
class Main {
public static void main(String[] args) {
Base b = new Derived();;
b.show();
}
}
A)
B)
C)
D)

Base::show() called
Derived::show() called
Compiler Error
Runtime Error

Category 3

20

Answe
r

C) Compiler Error
Final methods cannot be overridden.

Category 3

20

Questio
n

printf(%c,100);
A) Prints 100
B) Prints the ASCII equivalent of 100
C) Prints garbage
D) Compiler error

Category 3

30

Answe
r

B) Prints the ASCII equivalent of 100

Category 3

30

Questio
n

Consider the following declaration


int a, *b = &a, **c = &b;
The following program fragment
a = 4;
**c = 5;
A) Does not change the value of a
B) Assigns address of c to a
C) Assigns the value of b to a
D) Assigns 5 to a

Category 3

40

Answe
r

d) Assigns 5 to a
Address Value
100 4
a
120

100

135

120

Category 3

Name

40

Questio
n

printf (%d, printf(alex));


A) a syntax error
B) Outputs alex4
C) Outputs garbage
D) Prints alex and terminates abruptly

Category 3

50

Answe
r

B) Outputs alex4
Any function returns a value to the calling
environment. In this case, printf wil return
the number characters it printed. So the
output wil be alex4

Category 3

50

Category 4 questions follow

Questio
n

If no multivalued attributes exist and no


partial dependencies exist in a relation,
then the relation is in what normal form?
A. First normal form
B. Second normal form
C. Third normal form
D.Fourth normal form

Category 4

10

Answe
r

B) Second normal Form

Category 4

10

Questio
n

A transitive dependency is which of the


following?
A. A functional dependency between two
or more key attributes.
B. A functional dependency between two
or more nonkey attributes.
C. A relation that is in first normal form.
D.A relation that is in second normal form.

Category 4

20

Answe
r

B) A functional dependency between two


or more nonkey attributes

Category 4

20

Questio
n

Which normal form is considered


adequate for relationa database design?
A) 2 NF
B) 3 NF
C) 4 NF
D) BCNF

Category 4

30

Answe
r

B)BCNF

Category 4

30

Questio
n

In a SQL code, uninitialized variables of


type VARCHAR2 will have
A) Garbage value
B) NULL value
C) 0
D) None of the above

Category 4

40

Answe
r

b) NULL value

Category 4

40

Questio
n

Which of the following SQL commands can


be used to add data to a Table
A) ADD
B) Update
C) Append
D) Insert

Category 4

50

Answe
r

D) Insert

Category 4

50

Category 5 questions follow

Questio
n

Category 5 question for 10 points

Category 5

10

Answe
r

Category 5 answer for 10 points

Category 5

10

Questio
n

Category 5 question for 20 points

Category 5

20

Answe
r

Category 5 answer for 20 points

Category 5

20

Questio
n

Category 5 question for 30 points

Category 5

30

Answe
r

Category 5 answer for 30 points

Category 5

30

Questio
n

Category 5 question for 40 points

Category 5

40

Answe
r

Category 5 answer for 40 points

Category 5

40

Questio
n

Category 5 question for 50 points

Category 5

50

Answe
r

Category 5 answer for 50 points

Category 5

50

You might also like