cs504 Final Term Solved Mcqs by Junaid
cs504 Final Term Solved Mcqs by Junaid
134. In system development life cycle, defects cannot enter into the program
during _____ phase.
a. Requirement
b. Design
c. Coding
d. Implementation page 209
135. _____and _____ are important short circuiting logical operators.
a. AND b. OR c. NOTd. NOR
a. a & b pae 173
b. b&c
c. c&d
d. a & c.
136. _________ testing isolates every part of the program and shows that
the individual parts are correct.
a. White Box
b. Black Box
c. Unit Google
d. System
137. _______is not a white box testing technique.
a. Statement Coverage
b. Branch Coverage
c. Path Coverage
d. State Transition Coverage page 202
138. Chip level testing for hardware is equivalent to _______
a. White Box
b. Black Box
c. Unit testing page 207
149. The number _________ is the most abused symbol in programs written in C or
C++.
a. 1
b. 0 page169
c. 2
d. 3
150. _______ is a creative activity while____________ is a destructive activity.
a. Development, Testing
b. Testing, Development
c. Validation, Verification
d. Verification, Validation
151. Testing individual components independent of other components is called:
166. Bit fields are a convenient way to express many difficult operations.
However, bit fields suffer from one problem
a. Lack of usability
b. Lack of security
c. Lack of performance
d. Lack of portability page 183
167. Comma ( ,) is very dangerous because _____
a. Compiler does not recognize this symbol
b. It creates linkage problem
c. It causes side effects page 176
d. It does not causes side effects
168. Function testing falls under ______________testing technique
a. White Box
b. Black Box
c. Unit page 207
d. System
169. The greatest advantage of exception handling is its ability to handle:
a. Asynchronous errors page 184
b. Syntax errors
c. Memory errors
d. Control Structure errors
170. After integrating subsystems into a system, and then testing this system as a
whole is called
a. Unit testing
b. Component testing
c. Subsystem testing
d. System testing
unsigned int
f1:1; } pack;
Here in "packed_struct":
a. value of f1 = 1
b. size of f1 = 1 bit page 183
c. value of f1 should not exceede 1
d. None of given options
172. The C/C++ language has not specified whether _______ is arithmetic or
logical.
a. Right shift >> page 181
b. Right shift <<
c. &&
d. ||
173. There are______ basic coding structures.
a.
One
b.
Two
c.
Three
Four page 200
d.
174. In _______ control can take either of several branches.
a. IF
b. While
c. Case statement page 201
d. Sequence
175. __________ cause major portability issues
a. Loops
b. Bugs in code
c. Sizes of data types page 179
d. Conditional Structures
176. A good program must contain _________ infeasible paths.
a. 0 page 206
b. 1
c. N
d. Infinite
177. We do not use flow graphs to ___________.
a. Show flow of data
193. When a small set of functions (which use each other) is so overwhelmingly
the bottleneck, there are two alternatives:
a. use a better algorithm OR re-write the code page 177
b. debug the code OR place assertions in code
c. remove the functions OR add more functions
d. changed programming language OR compiler at least
194. The first step in any OOA process model is to____________________
a. build an object-relationship model
b. define collaborations between objects
c. elicit customer requirements Page603
d. select a representation language
213. The statements given below are associated with system development,
testing and maintenance. Identify the correct statement from among
them:
a. Some of the activities in the implementation phase are building individual
system components, writing of programs and development of user
interfaces.
b. The post implementation review is performed to see that the computer
system is working.
c. None of Given
d. System development phase consists of a development phase and an
implementation phase.
214. Quantitative methods for assessing the quality of proposed architectural
designs are readily available.