MCQ Bank
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
if (!(block < activeBlock))
is equvivalent to:
- A) if ((block == activeBlock))
- B) None of the given
- C) if ((block < activeBlock))
- D) if ((block >= activeBlock))
Bit fields are a convenient way to express many difficult operations. However, bit fields suffer from one problem
- A) Lack of security
- B) Lack of usability
- C) Lack of portability
- D) Lack of performance
There are ……layers in OSI reference model.
- A) 6
- B) 8
- C) 7
- D) 5
Goto statements violate the idea of
- A) structured code
- B) object oriented code
- C) repetition structure
- D) control structure
if a major rework is required to translate a program written for one environment to another, it means code is not or less _________
- A) Bug Free
- B) plateform dependent
- C) Secure
- D) Portable
using proper paranthesis normally makes the code
- A) easy to understand
- B) All of the given options
- C) less ambigous
- D) easy to read
Vertical partitioning divides the architecture application from a …… making perspective.
- A) Decision
- B) Conclusion
- C) Move
- D) Design
Which of the following is used for multi level commenting?
- A) */ Comment/*
- B) // Comment
- C) /* Comment */
- D) (Comment)
for (i =0, col = 0; i < 27; i++, j++)
In the above line of the code, 27 is representing____________.
- A) Positive Numbers
- B) Constant Numbers
- C) Real Numbers
- D) Magic Numbers
________ and _________ are two important tools that helps in managing the program complexity.
- A) Composition, Inheritance
- B) Abstraction, Encapsulation
- C) Modularity, Composition
- D) Aggregation, Inheritance
The three basic principles that guide maintainability are:
(a)clarity
(b)enhancement
(c)flexibility
(d)simplicity
(
- A) (a),(b) and (c)
- B) (a),(c) and (d)
- C) All of above
- D) (b),(c) and (d)