MCQ Bank
The process that involves verification of product with respect to its written requirements is called _________.
- A) Debugging
- B) Developement
- C) Maintainance
- D) Testing
Vertical partitioning is also known as…..
- A) Factoring
- B) Mutating
- C) Parallelizing
- D) Balancing
Distributing the responsibilities to different subsystems so that we get a software system which is easy to maintain, is called ………the architecture.
- A) Subtracting
- B) Cloning
- C) Partitioning
- D) Balancing
The size of __________ plays a significant role in making the program easy or difficult to understand.
- A) none of the above
- B) object
- C) data type
- D) function
One of the main reasons to make functions is ________.
- A) Maintainability
- B) Reliability
- C) Reusability
- D) Effeciency
The greatest advantage of exception handling is its ability to handle:
- A) Memory errors
- B) Syntax errors
- C) Asynchronous errors
- D) Control Structure errors
Exception handling is a powerful technique that separates error-handling code from
______ code.
- A) Normal
- B) Buggy
- C) Complex
- D) Faulty
The number __________ is the most abused symbol in programs written in C or C++.
- A) 1
- B) 2
- C) 3
- D) 0
_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model View Controller pattern
- A) C++
- B) PASCAL
- C) Smalltalk
- D) JAVA
80/20 rule states that:
- A) you spend 20 percent of your time in 80 percent of the code
- B) We should try to optimized 80 percent or at least 20 percent of the code
- C) We should try to optimized 20 percent or at least 80 percent of the code
- D) you spend 80 percent of your time in 20 percent of the code
Performance, Security and maintainability are the types of ________ requirements.
- A) Domain
- B) Functional
- C) Business
- D) Non-Functional
A useful technique for evaluating the overall complexity of a proposed architecture is to look at the component's _______ .
- A) number and size of components
- B) function points
- C) flow dependencies and sharing dependencies
- D) size and cost
Collaboration diagram can show _______________. a. Binary messages b. Asynchronous messages c. Synchronous messages
- A) b only
- B) both b and c
- C) a only
- D) c only
Sequence of messages can be present in: a. Use case diagram b. Sequence diagram c. Collaboration diagram
- A) b only
- B) a only
- C) b and c
- D) c only
Exception handling is a powerful technique that separates error-handling code from ______ code.
- A) Buggy
- B) Faulty
- C) Normal
- D) Complex
In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
- A) STL
- B) CMMI
- C) ISO
- D) ANSI
1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;
- A) Statement (1) is more complex than (2)
- B) Both statements are very complex
- C) Statement (2) is more complex than (1)
- D) None of the given options
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 = false;
- B) str = NULL;
- C) str = ‘\0’;
- D) str = 0.0;
Consider the following statement: int a,b=10; Which of the following is correct:
- A) variable "a" is initialized to 10
- B) Variable "b" is initialized to 10
- C) variables can not be initialized this way
- D) Both variables "a" and "b" are initialized to 10