Question # 1 of 10 ( Start time: 11:18:46 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
Question # 2 of 10 ( Start time: 11:19:21 PM ) Total Marks: 1
Be very careful when you use functions with side effects – functions that change the values of the ________
Select correct option:
Objects
Classes
Structures
Variables
Question # 3 of 10 ( Start time: 11:20:10 PM ) Total Marks: 1
________ is a tool that can help us in reducing the size of individual functions.
Select correct option:
Inheritance
Modularity
Association
Abstraction
Question # 4 of 10 ( Start time: 11:20:38 PM ) Total Marks: 1
The expressions with logical operators can be evaluated only from ___________________.
Select correct option:
Right to left
Left to right
Top to bottom
Bottom to top
Question # 5 of 10 ( Start time: 11:21:06 PM ) Total Marks: 1
80/20 rule states that:
Select correct option:
you spend 80 percent of your time in 20 percent of the code
you spend 20 percent of your time in 80 percent of the code
We should try to optimized 80 percent or at least 20 percent of the code
None of the given options.
Question # 6 of 10 ( Start time: 11:21:30 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
Question # 7 of 10 ( Start time: 11:22:02 PM ) Total Marks: 1
Which of following is/are among ten things,which the basic template of GOF design pattern includes.
Select correct option:
Problem
Context
Forces
All of the given
Question # 8 of 10 ( Start time: 11:22:29 PM ) Total Marks: 1
________ and _________ are two important tools that helps in managing the program complexity.
Select correct option:
Composition, Inheritance
Abstraction, Encapsulation
Aggregation, Inheritance
Modularity, Composition
Question # 9 of 10 ( Start time: 11:22:55 PM ) Total Marks: 1
Comma ( , ) is very dangerous because
Select correct option:
Compiler does not recognise this symbol
It creates linkage problem
It causes side effects
All of the given options
Question # 10 of 10 ( Start time: 11:23:20 PM ) Total Marks: 1
Goto statements violate the idea of
Select correct option:
object oriented code
structured code
control structure
repetition structure
Question # 1 of 10 ( Start time: 10:41:25 PM ) Total Marks: 1
If a function changes the value of some other accessible data object along with returning its value after execution, is called ___________.
Select correct option:
Short Circuiting
Modularity
Side Effects
Abstraction
Question # 2 of 10 ( Start time: 10:41:47 PM ) Total Marks: 1
if a major rework is required to translate a program written for one environment to another, it means code is not or less _________
Select correct option:
Secure
Bug Free
plateform dependent
Portable
Question # 3 of 10 ( Start time: 10:42:21 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
Question # 4 of 10 ( Start time: 10:42:55 PM ) Total Marks: 1
Code should not be:
Select correct option:
commented
indented
cryptic
aligned
Question # 5 of 10 ( Start time: 10:43:16 PM ) Total Marks: 1
In case of header files, construction is to avoid ------ errors. The construction should appear in the top of the file (before the file header).
Select correct option:
compilation
run time
logical
All of the given
Question # 6 of 10 ( Start time: 10:43:46 PM ) Total Marks: 1
The size of __________ plays a significant role in making the program easy or difficult to understand.
Select correct option:
function
object
data type
none of the above
Question # 7 of 10 ( Start time: 10:44: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
All of the given choices
Question # 8 of 10 ( Start time: 10:44:39 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
Question # 9 of 10 ( Start time: 10:45:00 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++
Question # 10 of 10 ( Start time: 10:45:42 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
Question # 1 of 10 ( Start time: 10:34:01 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 ok
Observer Pattern
Real Pattern
None of the given
Question # 2 of 10 ( Start time: 10:34:41 PM ) Total Marks: 1
Anti-patterns is another concept that corresponds to common ------------- in analysis and design.
Select correct option:
mistakes ok
issues
problems
All of the given
Question # 3 of 10 ( Start time: 10:35:18 PM ) Total Marks: 1
Complex expressions:
Select correct option:
Make the code easy to modify
Make the code difficult to modify ok
Make the code easy to understand
Does not effect understandablity
Question # 4 of 10 ( Start time: 10:35:52 PM ) Total Marks: 1
The expressions with logical operators can be evaluated only from ___________________.
Select correct option:
Right to left
Left to right
Top to bottom
Bottom to top
Question # 5 of 10 ( Start time: 10:36:40 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 ok
Two pages
Three Pages
Question # 6 of 10 ( Start time: 10:37:20 PM ) Total Marks: 1
Patterns are devices that allow programs to share knowledge about their -------------.
Select correct option:
Code
Design ok
Analysis
None of the given
Question # 7 of 10 ( Start time: 10:37:56 PM ) Total Marks: 1
In case of header files, construction is to avoid ------ errors. The construction should appear in the top of the file (before the file header).
Select correct option:
compilation ok
run time
logical
All of the given
Question # 8 of 10 ( Start time: 10:38:28 PM ) Total Marks: 1
Which indent size eliminates the chance of code lines splitting?
Select correct option:
2 ok
4
3
6
Question # 9 of 10 ( Start time: 10:38:59 PM ) Total Marks: 1
________ is a tool that can help us in reducing the size of individual functions.
Select correct option:
Inheritance
Modularity ok
Association
Abstraction
Question # 10 of 10 ( Start time: 10:39:52 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 ok