CMC
Company
Category
12) The following conditions are necessary for a deadlock
I) Mutual exclusion
II) Hold & wait
III) No preemption
IV) Circular waits
A) I, II, III only
B) II, III, IV only
C) I, II, IV only
D) All of the above
13) i=0; sum=0; j=0;
while (i<=50)
{
i = i + (j ? 2 : 3);
j = !j;
sum += i;
}
printf ("%d", sum);
What is the output?
A) 410
B) 630
C) 490
D) 530
14) If x then y else false
The above statement is equal to following Boolean expression
A) x OR y
B) x AND y
C) x XOR y
D) NOT x
15) Octal equivalent of hexadecimal number AB is:
A 523
B 253
C 171
D 1010 1011
16) Instruction sequencing is done by the following register:
A) Stack pointer
B) Instruction register
C) program counter
D) Accumulator
17) Find the odd one out
A) Semiconductor memory
B) magnetic memory
C) Charge coupled memory
D) Virtual memory
18) Which of the following is a valid flip-flop?
A) JK Flip-flop
B) S Flip-flop
C) R Flip-flop
D) None
19) Which of the following allows multiple program threads to share the same resource?
A) Mutex
B) Pipe
C) File Handle
D) Deadlock
20) Postfix representation of A / (B + C) * (D - E)
A) /A*+BC-DE
B) ABC+DE-*/
C) ABCDE-+*/
D) A+BC-DE*/
21) Range of signed integers represented by 8 bits:
A) 127 to 127
B) 128 to 127
C) 127 to 128
D) 128 to 128
22) 2's Complement of 1010001010110111
A) 0101110101001000
B) 0101110101001111
C) 0101110101000111
D) 0101110101000000
23) Which of the following is part of the CPU (Central Processing Unit)
A) Harddisk
B) Registers
C) RAM (Random Access Memory)
D) DMA (Dynamic Memory Access)
24) What is the 2 GB (Giga Bytes) equivalent value in decimal?
A) 2141592658
B) 2097152948
C) 2000000000
D) 2147483648
25) What is decimal and binary equivalent of an octal number 127?
A) 87 and 1010111
B) 78 and 1010110
C) 87 and 1010110
D) 78 and 1010111
26) What is the address space range of a microprocessor with 32-bit address bus?
A) 0x00000000-0xFFFFFFF
Read Solution (Total 2)
-
- 12)Ans-a
14)Ans-b
15)Ans-c
16)Ans-c
17)Ans-d
19)Ans-d
20)Ans-b
21)Ans-b
23)Ans-b
25)Ans-a - 10 years agoHelpfull: Yes(1) No(1)
- 12) D)
15) B)
18) A)
21) B)
24) D)
25) A) - 9 years agoHelpfull: Yes(1) No(0)
CMC Other Question
1) Which of the following is true?
A O(1) < O(n) < O(log n) < O(n log n) < O(n2 )
B O(1) < O(log n) < O(n) < O(n2) < O(n log n)
C O(1) < O(n) < O(n log n) < O(log n) < O(n2 )
D O(1) < O(log n) < O(n log n) < O(n2)
2) if c1 then statement1
else if c2 then statement2
else {
statement3;
if c3 then statement4;
statement5;
}
C1, c2, c3 are conditional tests yielding Boolean values:
c1 will be true with 40% of probability
c2 will be true with 50% of probability
c3 will be true with 10% of probability
27) Which of the following statement is valid regarding recursive function?
A) May have a potential of stack overflow error
B) Cannot pass pointers as arguments to the recursive function.
C) The function is called in a 'for' or 'while' loop by the calling program.
D) Best to use in implementing quick sort
28) Left shift of bits in binary data is equivalent to?
A) Addition of 2
B) Division by 2
C) In some other binary number depending on the initial data
D) Multiplication by 2
29) !( A || (B && C) ) can also be represented as : ( Note : ! is negation )
A) !A || !B && !C
B) !A && !(B && C)
C) !A || !(B && C)
D) !A && ( !B || !C&& A)
30. RACE condition means:
A) two threads of a single program trying to update the same memory at the same point of time resulting in unpredictable data in the memory.
B) A condition where multiple processes are waiting for the CPU time.
C) A condition which results in deadlocks.
D) Two threads halted without further execution, each waiting for the lock obtained by the other thread to be released.
31) What is REENTRANT code segment?
A) Code that can be part of a for or while loop.
B) Code that is part of a recursive function.
C) Code that guarantees safe and defined behavior even when parallelly executed by two threads.
D) Code that may result in a race condition.
32) Decimal equivalent of octal number 888 is:
A) 8 + 8*8 + 8*8*8
B) (8*8*8*8) - 1
C) 888
D) None of the above
33) What is the lowest and highest number that can be represented by a N-digit number in Octal number system
A) Zero and (N raised to the power of 8)
B) Zero and (8 raised to the power of N)
C) Zero and ((8 raised to the power of N) minus 1)
D) Zero and ((N raised to the power of 8) minus 1)
34) For “C” language, what is the best reference manual?
A) “C” language from Microsoft
B) “C” language by Balaguru swamy
C) “C” language by Kernighan & Ritche
D) None of the above
35. RDBMS is related to:
A) Theory of Relativity
B) Relational Data structures with Business Management System
C) Relational Algebra
D) All of the above
36) Choose a set that has an odd element:
A) Windows, Linux, DOS
B) Oracle, SQL Server, Visual Studio
C) Mouse, Keyboard, Touch screen
D) All of the above
37) There are two tables in a database namely EMPLOYEE and DEPARTMENT. EMPLOYEE table has 6 columns, 60000 rows and DEPARTMENT table has 4 columns, 40000 rows. What is the output of the following SQL query?
Select count (*) from EMPLOYEE, DEPARTMENT
A) 24
B) 10
C) 100000
D) 2400000000
38) Input and outputs of a compiler:
A) Object file, Symbol table
B) Source code, Object File
C) Object File, Windows Application
D) None of these
39) Given 110112 which of the following is false?
A) In unsigned notation it is 27 base 10
B) In 1's complement notation it i