Tuesday, January 11, 2011

CS504 Current Quiz

The nominal case should be put in the if-part and the exception in the else-part of an if statement.
TURE
Names representing methods and functions should be----and written in mixed case starting with -----case.
-------
Complex expressions:
Make the code easy to modify
Code should not be:
Commented
The form for (;;) should be used for
empty loop
A self documented program/code contains the following attribute(s):
All of the given choices
"is" prefix should be used for------ variables and methods.
Boolean
Façade Pattern provides a unified interface to a set of interfaces in a sub-system.
True
Name is the initial thing to be written in the GOF Design Pattern Format.
True
-----provides a unified interface to a set of interfaces in a sub-system.
Façade Pattern
Goto statements violate the idea of
structured code
Variables should be initialized where they are ------and they should be declared in the ------scope possible.
declared and smallest
MVC stands for ---------------
Model View Controller
Which one is correct?
double total = 0.5;
In case of header files, construction is to avoid ------ errors. The construction should appear in the top of the file (before the file header).
Compilation
A function should not be larger in any case and should not exceed ______ in length .
One page
Global variables in C++ should always be referred to by using the
:: operator
Flexibility helps in making the code easier to understand.
False
which of the following statements are same in output: (1) a = a >> 2    (2) a = a / 4    (3) a = a * 2
(1) and (2) only

No comments:

Post a Comment