Computer Science and Information Technology Fundamentals

Mixed Test (CS and IT)

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A fair dice is rolled twice. The probability that an odd number will follow an even number is

  1. 1/2
  2. 1/3
  3. 1
  4. 1/4
  5. None of these
Question 2 Multiple Choice (Single Answer)

If y is of integer type, then the expression 3 x (y-8)/9 and (y-8)/9 x 3

  1. may or may not yield the same value
  2. must yield the same value
  3. must yield different values
  4. Cannot be said
  5. None of these
Question 3 Multiple Choice (Single Answer)

The salary of an employee should not be greater than Rs. 2000. This is

  1. integrity constraint
  2. referential constraint
  3. over-defined constraint
  4. feasible constraint
  5. Any of the above
Question 4 Multiple Choice (Single Answer)

What would be the equivalent pointer expression for referring the array element a[i][j][k][l]?

  1. ((((a+i)+j)+k)+l)
  2. a+i+j+k+l
  3. ((((**** a+i)+j)+k)+l)
  4. ((((a+i)+j)+k)+l)
  5. None of these
Question 5 Multiple Choice (Single Answer)

What is the probability that the system will not fail for four days if an error happens every 2 days?

  1. 0.5
  2. 0.25
  3. 0.375
  4. 0.0625
  5. None of these
Question 6 Multiple Choice (Single Answer)

Recursive functions are executed in

  1. LIFO
  2. FIFO
  3. parallel fashion
  4. All of the above
  5. None of these
Question 7 Multiple Choice (Single Answer)

Assume that transaction A holds a shared lock R. If transaction B also requests for a shared lock R, it will

  1. be a deadlock situation
  2. immediately be granted
  3. immediately be rejected
  4. be granted as soon as it is released by A
  5. depend on the wish of transaction A
Question 8 Multiple Choice (Single Answer)

If 2's complement of a 16 bit number (one sign bit and 15 magnitude bits) is FFFF, then its magnitude in decimal representation is

  1. 0
  2. 1
  3. 23767
  4. 64535
  5. 15 15 15 15
Question 9 Multiple Choice (Single Answer)

Which of the following is not a phase of 'bath tub curve' of hardware reliability?

  1. Burn in
  2. Useful Life
  3. Test out
  4. Worn out
  5. Documentation
Question 10 Multiple Choice (Single Answer)

Which of the following statements is correct?

There are three IP addresses as given below:

X=202.23.14.150
Y=168.19.200.12
Z=72.192.52.210

  1. X is class A, Y is class B, Z is class C.
  2. X is class C, Y is class A, Z is class B.
  3. X is class C, Y is class B, Z is class A.
  4. X is class A, Y is class C, Z is class B.
  5. X is class B, Y is class C, Z is class A.
Question 11 Multiple Choice (Single Answer)

A computer system having 32K memory will have its last address as

  1. 65536
  2. 32768
  3. 32767
  4. 65535
  5. 32
Question 12 Multiple Choice (Single Answer)

What is the contrapositive of the given statement?

If John is a poet, then he is poor.

  1. If John is poor, then he is not a poet.
  2. If John is poor, then he is a poet.
  3. If John is not poor, then he is a poet.
  4. If John is not poor, then he is not a poet.
  5. If John is not a poet, then he is not poor.
Question 13 Multiple Choice (Single Answer)

The store and forward mechanism is used in

  1. packet switching
  2. message switching
  3. circuit switching
  4. datagram switching
  5. None of these
Question 14 Multiple Choice (Single Answer)

The number of 1's in the binary representation of (3 x 4096 + 15 x 256 + 5 x 16 + 3) is

  1. 2
  2. 7
  3. 10
  4. 9
  5. 8
Question 15 Multiple Choice (Single Answer)

What is the output of the given C program?

main()

{

  unsigned int m=32;

   printf("%x",~m);

}

  1. ddfd
  2. ffdf
  3. ffff
  4. 0030
  5. 4563