CS504 Quiz Solved by CS-Boy
CS504 Quiz Solved by CS-Boy
sec(s) 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
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
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
CS Boy
(2) and (3) only
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 control structure repetition structure
structured code
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
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;
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
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
CS Boy
Select correct option:
# Ans = first + second
sec(s) 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
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 Reliability
Readability
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:
Nounlower
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 Faade 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:
sec(s)
CS Boy
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
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