MCQ Bank
The expressions with logical operators can be evaluated only from ___________________.
- A) Left to right
- B) Right to left
- C) Bottom to top
- D) Top to bottom
A function should not be larger in any case and should not exceed ______ in length .
- A) Half page
- B) Three Pages
- C) One page
- D) Two pages
which of the following statements are same in output:
1) a = a >> 2
2) a = a / 4
3) a = a * 2
- A) (1) and (2) only
- B) All procduce the same result
- C) (1) and (3) only
- D) (2) and (3) only
In the switch statement, cases should always end with a -------statment.
- A) Stop
- B) Switch
- C) Go
- D) Break
"is" prefix should be used for------ variables and methods.
- A) Constant
- B) Boolean
- C) General
- D) None of the given
In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
- A) ISO
- B) CMMI
- C) ANSI
- D) STL
A __________ is a variance from a desired product attribute.
- A) Error
- B) Exception
- C) Defect
- D) Mistake
C++ header files should have the extension---- Source files can have the extension ----
- A) .h and .cpp
- B) All of the given
- C) .c and .h
- D) .cc and .h
Software _________ is the process of examining the software product against its requirements.
- A) Exception handling
- B) Fixing
- C) Debugging
- D) Testing
N-tier architecture stems from the struggle to find a ----------- between the fat-client
architecture and the thin-client architecture.
- A) Distribution point
- B) Similarity
- C) Concurrency
- D) Middle ground
The C/C++ language has not specified whether ______ is arithmetic or logical.
- A) &&
- B) Right shift >>
- C) ||
- D) Right shift <<
Complex expressions:
- A) Make the code difficult to modify
- B) Make the code easy to modify
- C) Does not effect understandablity
- D) Make the code easy to understand
When an error is thrown the overall system (on the lookout for this error flag) responds by ______ the error.
- A) Pass over
- B) Casting
- C) Ignoring
- D) Catching
str = 0; // str is string
Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
- A) str = 0.0;
- B) str = false;
- C) str = ‘\0’;
- D) str = NULL;
________ and ________ are important short circuiting logical operators.
a.AND b. OR c. NOT d. NOR
- A) a & c
- B) c & d
- C) b & c
- D) a & b
Verification and validation are the processes in which we check a product against its _________ and the __________ of the users who will be using it
- A) specifications, expectations
- B) specifications , arguments
- C) statements, expectations
- D) statements, arguments
Which of following is among ten things, which the basic template of GOF design pattern includes.
- A) Requirements
- B) Context
- C) Performance
- D) IQ
The raising of the imaginary error flag is simply called raising or ________ an error
- A) Throwing
- B) Repress
- C) Casting
- D) Catching
Which one is correct?
- A) all of the given
- B) double total = 0.5;
- C) double total = .50;
- D) double total = .5;
Bit fields allow the packing of data in a structure. using Bit fields we can:
- A) Avoid syntax errors
- B) Avoid memory overflow
- C) Read 9 bit integers
- D) Avoid memory leakages