Computer Science and Information Technology Fundamentals
Mixed Test (CS and IT)
Questions
A fair dice is rolled twice. The probability that an odd number will follow an even number is
- 1/2
- 1/3
- 1
- 1/4
- None of these
If y is of integer type, then the expression 3 x (y-8)/9 and (y-8)/9 x 3
- may or may not yield the same value
- must yield the same value
- must yield different values
- Cannot be said
- None of these
The salary of an employee should not be greater than Rs. 2000. This is
- integrity constraint
- referential constraint
- over-defined constraint
- feasible constraint
- Any of the above
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]?
- ((((a+i)+j)+k)+l)
- a+i+j+k+l
- ((((**** a+i)+j)+k)+l)
- ((((a+i)+j)+k)+l)
- None of these
What is the probability that the system will not fail for four days if an error happens every 2 days?
- 0.5
- 0.25
- 0.375
- 0.0625
- None of these
Recursive functions are executed in
- LIFO
- FIFO
- parallel fashion
- All of the above
- None of these
Assume that transaction A holds a shared lock R. If transaction B also requests for a shared lock R, it will
- be a deadlock situation
- immediately be granted
- immediately be rejected
- be granted as soon as it is released by A
- depend on the wish of transaction A
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
- 0
- 1
- 23767
- 64535
- 15 15 15 15
Which of the following is not a phase of 'bath tub curve' of hardware reliability?
- Burn in
- Useful Life
- Test out
- Worn out
- Documentation
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
- X is class A, Y is class B, Z is class C.
- X is class C, Y is class A, Z is class B.
- X is class C, Y is class B, Z is class A.
- X is class A, Y is class C, Z is class B.
- X is class B, Y is class C, Z is class A.
A computer system having 32K memory will have its last address as
- 65536
- 32768
- 32767
- 65535
- 32
What is the contrapositive of the given statement?
If John is a poet, then he is poor.
- If John is poor, then he is not a poet.
- If John is poor, then he is a poet.
- If John is not poor, then he is a poet.
- If John is not poor, then he is not a poet.
- If John is not a poet, then he is not poor.
The store and forward mechanism is used in
- packet switching
- message switching
- circuit switching
- datagram switching
- None of these
The number of 1's in the binary representation of (3 x 4096 + 15 x 256 + 5 x 16 + 3) is
- 2
- 7
- 10
- 9
- 8
What is the output of the given C program?
main()
{
unsigned int m=32;
printf("%x",~m);
}
- ddfd
- ffdf
- ffff
- 0030
- 4563