Question # 1 of 10 ( Start time: 01:35:10 PM ) Total Marks: 1
The nominal case should be put in the if-part and the exception in the else-part of an if statement.
Select correct option:
TURE
FALSE
sec(s)
Question # 2 of 10 ( Start time: 01:35:59 PM ) Total Marks: 1
Charles Simonyi first discussed Hungarian Notation. He was of —— .
Select correct option:
Microsoft
IBM
Dell
Cisco
sec(s)
Question # 3 of 10 ( Start time: 01:36:25 PM ) Total Marks: 1
The terms get/set must be used where an attribute is accessed
Select correct option:
Indirectly
Directly
sec(s)
Question # 4 of 10 ( Start time: 01:36:37 PM ) Total Marks: 1
A self documented program/code contains the following attribute(s):
Select correct option:
Size of each function
Choice of variable
Choice of variable
All of the given choices
sec(s)
Question # 5 of 10 ( Start time: 01:37:42 PM ) Total Marks: 1
“is” prefix should be used for—— variables and methods.
Select correct option:
General
Boolean
Constant
None of the given
sec(s)
Question # 6 of 10 ( Start time: 01:38:16 PM ) Total Marks: 1
The use of comments should be minimized by making the code self-documenting by appropriate name choices and an
explicit logical structure.
Select correct option:
TRUE
FALSE
sec(s)
Question # 7 of 10 ( Start time: 01:38:44 PM ) Total Marks: 1
Variables should be initialized where they are ——and they should be declared in the ——scope possible.
Select correct option:
defined and smallest
declared and medium
defined and medium
declared and smallest
Question # 8 of 10 ( Start time: 01:39:56 PM ) Total Marks: 1
Unrelated variables should be declared in the same statement.
Select correct option:
True
False
sec(s)
Question # 9 of 10 ( Start time: 01:40:22 PM ) Total Marks: 1
which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2
Select correct option:
(1) and (3) only
(2) and (3) only
(1) and (2) only
All procduce the same result
sec(s)
Question # 10 of 10 ( Start time: 01:41:38 PM ) Total Marks: 1
Goto statements violate the idea of
Select correct option:
object oriented code
structured code
control structure
repetition structure
sec(s)
Question # 2 of 10 ( Start time: 01:44:29 PM ) Total Marks: 1
MVC pattern was based on the ————— pattern.
Select correct option:
Observer
Structural
Behavioral
None of given
sec(s)
Question # 3 of 10 ( Start time: 01:44:56 PM ) Total Marks: 1
Which one is correct?
Select correct option:
double total = 0.5;
double total = .5;
double total = .50;
all of the given
sec(s)
Question # 4 of 10 ( Start time: 01:46:09 PM ) Total Marks: 1
Code should not be:
Select correct option:
commented
indented
cryptic
aligned
sec(s)
Question # 5 of 10 ( Start time: 01:46:41 PM ) Total Marks: 1
Global variables in C++ should always be referred to by using the
Select correct option:
:: operator
: operator
Without an operator
None of the given
sec(s)
Question # 6 of 10 ( Start time: 01:47:17 PM ) Total Marks: 1
_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model
View Controller pattern
Select correct option:
Smalltalk
PASCAL
JAVA
C++
sec(s)
Question # 7 of 10 ( Start time: 01:47:56 PM ) Total Marks: 1
using proper paranthesis normally makes the code
Select correct option:
easy to read
easy to understand
less ambigous
All of the given options
sec(s)
Question # 9 of 10 ( Start time: 01:48:58 PM ) Total Marks: 1
Which of the following shows a commented statement in C++
Select correct option:
# Ans = first + second
// Ans = first + second
\\ Ans = first + second
/# Ans = first + second
Question # 1 of 10 ( Start time: 01:51:42 PM ) Total Marks: 1
The form for (;;) should be used for
Select correct option:
nested loop
empty loop
more than 1000 iterations
sec(s)
sec(s)
Question # 2 of 10 ( Start time: 01:52:09 PM ) Total Marks: 1
Identifier names also play a significant role in enhancing the ——– of a program.
Select correct option:
Writ ability
Readability
Reliability
sec(s)
Question # 3 of 10 ( Start time: 01:53:08 PM ) Total Marks: 1
It ensures that a class only has one instance and provides a global point of access to it.
Select correct option:
Singleton Pattern
Observer Pattern
Real Pattern
None of the given
sec(s)
Question # 4 of 10 ( Start time: 01:53:49 PM ) Total Marks: 1
Names representing methods and functions should be—-and written in mixed case starting
with —–case.
Select correct option:
Noun—lower
Verb—-lower
Noun —upper
Noun—-upper
sec(s)
Question # 5 of 10 ( Start time: 01:54:45 PM ) Total Marks: 1
A function should not be larger in any case and should not exceed ______ in length .
Select correct option:
Half page
One page
Two pages
Three Pages
sec(s)
Question # 7 of 10 ( Start time: 01:55:56 PM ) Total Marks: 1
—–provides a unified interface to a set of interfaces in a sub-system.
Select correct option:
Observer Pattern
Singleton Pattern
Façade Pattern
All of the above
sec(s)
Question # 8 of 10 ( Start time: 01:56:35 PM ) Total Marks: 1
MVC stands for —————
Select correct option:
Model View Controller
Modern View Center
Model View Center
Modern View Controller
sec(s)
Question # 8 of 10 ( Start time: 01:59:40 PM ) Total Marks: 1
A self documenting code is a code that explains itself without the need of comments and
extraneous documentation, like _______
Select correct option:
Flowcharts
UML diagrams
Process-flow state diagrams
All of the given choices
sec(s)
Question # 10 of 10 ( Start time: 02:00:38 PM ) Total Marks: 1
Complex expressions:
Select correct option:
Make the code easy to modify
Make the code difficult to modify
Make the code easy to understand
Does not effect understandablity
Question # 10 of 10 ( Start time: 01:49:27 PM ) Total Marks: 1
Comments should NOT be indented relative to their position in the code
Select correct option:
TRUE
FALSE