MCQ Bank
If a function changes the value of some other accessible data object along with returning its value after execution, is called ___________.
- A) Short Circuiting
- B) Side Effects
- C) Abstraction
- D) Modularity
_________ cause major portability issues
- A) Conditional Structures
- B) Sizes of data types
- C) Bugs in code
- D) Loops
“Description of communicating objects and classes that are customized to solve a general design problem in a particular context.” is called ----------
- A) System Design
- B) Design Method
- C) Design Pattren
- D) System Pattren
Which indent size eliminates the chance of code lines splitting?
- A) 4
- B) 2
- C) 3
- D) 6
Exception handling provides:
- A) Error Handling mechanism
- B) Both Portability & Code Usability mechanism
- C) Portability mechanism
- D) Code Usability mechanism
1) x = (a + 2 > 3)? a : a-1 ;
2) if((a + 2)> 3)
x = a;
else
x = a - 1;
- A) None of the given options
- B) Both statements are very complex
- C) Statement (2) is more complex than (1)
- D) Statement (1) is more complex than (2)
Some bit field members are stored:
I) left to right
II) right to left
III) in circular array
- A) Both (I) and (II) are true
- B) Only (II) is true
- C) only (I) is true
- D) Only (III) is true
Switch statement is equal to ___________ statement.
- A) if-else
- B) nested if
- C) if-else if
- D) if
Charles Simonyi first discussed Hungarian Notation.
He was of ------ .
- A) IBM
- B) Microsoft
- C) Cisco
- D) Dell
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 <<