Prev
quiz
Today quiz CS 504
Today quiz CS 504
Q.Comma is very dangerous
because
Compiler does not recognize it
It creates linkage problem
Side effects
All of the above Correct
It creates linkage problem
Side effects
All of the above Correct
Q.C++ header files have
extention----& source files have extention------
.h & .cpp
Q.Names representing methods
& functions should be---- & written in mixed case starting with ------
Verb & lower
Q.Str=0; more inline with
Str=’\0’;
Q.Code should not be
Commented
Cryptic
Cryptic
Q.MVC stands for
Model view
controller
Q.Logical operators r evaluated
from
Left to right
Q.A self documenting code is
that explains itself without need of comments & extraneous documentation,
like
Flow charts
UML diagram
PFS diagram
All Correct
UML diagram
PFS diagram
All Correct
Q.---- & ------- r
important short circuiting logical operators a.AND, b. OR, c. NOT, d.NOR
A & b
CS504 - Software Engineering - I Quiz No.4
Spring 2013
The number __________ is the most abused symbol in programs written in C or C++.
Ans = 0
Names representing methods and functions should be----and written in mixed case starting with -----case.
Ans= Verb & lower
STL Stnads for ------------------
Ans=Standard Template Library
Charles Simonyi first discussed Hungarian Notation. He was of ------ .
Ans=Microsoft
If a function changes the value of some other accessible data object along with returning its value after execution, is called
Ans=
str = 0; // str is string Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
Ans=Str = ‘\0;
Which of following is/are among ten things,which the basic template of GOF design pattern includes.
Ans=
Problem
Context
Forces
All of the given
The number __________ is the most abused symbol in programs written in C or C++.
Ans = 0
Names representing methods and functions should be----and written in mixed case starting with -----case.
Ans= Verb & lower
STL Stnads for ------------------
Ans=Standard Template Library
Charles Simonyi first discussed Hungarian Notation. He was of ------ .
Ans=Microsoft
If a function changes the value of some other accessible data object along with returning its value after execution, is called
Ans=
str = 0; // str is string Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
Ans=Str = ‘\0;
Which of following is/are among ten things,which the basic template of GOF design pattern includes.
Ans=
Problem
Context
Forces
All of the given
Question
# 2 of 10 ( Start time: 01:40:07 PM ) Total Marks: 1
________ and ________ are important short circuiting logical operators. a.AND b. OR c. NOT d. NOR
Select correct option:
a & b
b & c
c & d
a & c
Question # 3 of 10 ( Start time: 01:41:38 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 # 4 of 10 ( Start time: 01:43:08 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 # 5 of 10 ( Start time: 01:44:20 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 and lower
Noun ---upper
Noun----upper
Question # 6 of 10 ( Start time: 01:45:10 PM ) Total Marks: 1
"is" prefix should be used for------ variables and methods.
Select correct option:
General
Boolean
Constant
None of the given
Question # 7 of 10 ( Start time: 01:45:58 PM ) Total Marks: 1
The size of __________ plays a significant role in making the program easy or difficult to understand.
Select correct option:
________ and ________ are important short circuiting logical operators. a.AND b. OR c. NOT d. NOR
Select correct option:
a & b
b & c
c & d
a & c
Question # 3 of 10 ( Start time: 01:41:38 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 # 4 of 10 ( Start time: 01:43:08 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 # 5 of 10 ( Start time: 01:44:20 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 and lower
Noun ---upper
Noun----upper
Question # 6 of 10 ( Start time: 01:45:10 PM ) Total Marks: 1
"is" prefix should be used for------ variables and methods.
Select correct option:
General
Boolean
Constant
None of the given
Question # 7 of 10 ( Start time: 01:45:58 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 # 8 of 10 ( Start time: 01:47:26 PM ) Total Marks: 1
for (i =0, col = 0; i < 27; i++, j++) In the above line of the code, 27 is representing____________.
Select correct option:
Real Numbers
Magic nuumbers
Constant Numbers
Positive Numbers
Question # 9 of 10 ( Start time: 01:48:58 PM ) Total Marks: 1
In case of using unrelated operators in a single expression, _________ would be the best choice to prevent the logical errors.
Select correct option:
Comments
Indents
parenthesis
Short Cuts
Question # 10 of 10 ( Start time: 01:50:31 PM ) Total Marks: 1
Goto statements violate the idea of
Select correct option:
object oriented code
Structured code
control structure
repetition structure
object
data type
none of the above
Question # 8 of 10 ( Start time: 01:47:26 PM ) Total Marks: 1
for (i =0, col = 0; i < 27; i++, j++) In the above line of the code, 27 is representing____________.
Select correct option:
Real Numbers
Magic nuumbers
Constant Numbers
Positive Numbers
Question # 9 of 10 ( Start time: 01:48:58 PM ) Total Marks: 1
In case of using unrelated operators in a single expression, _________ would be the best choice to prevent the logical errors.
Select correct option:
Comments
Indents
parenthesis
Short Cuts
Question # 10 of 10 ( Start time: 01:50:31 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: 08:18:59 PM ) Total Marks: 1
Code should not be:
Select correct option:
Commented
indented
cryptic
aligned
Question # 2 of 10 ( Start time: 08:19:15 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 # 3 of 10 ( Start time: 08:20:09 PM ) Total Marks: 1
________ and _________ are two important tools that helps in managing the program complexity.
Select correct option:
Composition, Inheritance
Abstraction and encapsulation
Aggregation, Inheritance
Modularity, Composition
Question # 4 of 10 ( Start time: 08:21:30 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 above
Question # 5 of 10 ( Start time: 08:22:42 PM ) Total Marks: 1
Global variables in C++ should always be referred to by using the
Select correct option:
:: operator
: operator
Without an operator
Code should not be:
Select correct option:
Commented
indented
cryptic
aligned
Question # 2 of 10 ( Start time: 08:19:15 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 # 3 of 10 ( Start time: 08:20:09 PM ) Total Marks: 1
________ and _________ are two important tools that helps in managing the program complexity.
Select correct option:
Composition, Inheritance
Abstraction and encapsulation
Aggregation, Inheritance
Modularity, Composition
Question # 4 of 10 ( Start time: 08:21:30 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 above
Question # 5 of 10 ( Start time: 08:22:42 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
Question # 6 of 10 ( Start time: 08:23:50 PM ) Total Marks: 1
The number __________ is the most abused symbol in programs written in C or C++.
Select correct option:
1
0
2
3
Question # 8 of 10 ( Start time: 08:25:41 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 # 9 of 10 ( Start time: 08:26:46 PM ) Total Marks: 1
Which indent size eliminates the chance of code lines splitting?
Select correct option:
2
4
3
6
Question # 10 of 10 ( Start time: 08:27:51 PM ) Total Marks: 1
Class variables should never be declared public. Public variables violate which of the following:
Select correct option:
Information hiding
Encapsulation
Information hiding encapsulation
None of the given
Top to bottom
Bottom to top
Question # 9 of 10 ( Start time: 08:26:46 PM ) Total Marks: 1
Which indent size eliminates the chance of code lines splitting?
Select correct option:
2
4
3
6
Question # 10 of 10 ( Start time: 08:27:51 PM ) Total Marks: 1
Class variables should never be declared public. Public variables violate which of the following:
Select correct option:
Information hiding
Encapsulation
Information hiding encapsulation
None of the given
Question
# 1 of 10 ( Start time: 02:09:21 PM ) Total Marks: 1
Code should not be:
Select correct option:
commented
indented
cryptic
aligned
Question # 2 of 10 ( Start time: 02:10:52 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
Question # 3 of 10 ( Start time: 02:12:17 PM ) Total Marks: 1
MVC stands for ---------------
Select correct option:
Model view controller
Modern View Center
Model View Center
Modern View Controller
Question # 4 of 10 ( Start time: 02:13:01 PM ) Total Marks: 1
80/20 rule states that:
Select correct option:
You spend 80% of your time in 20% of 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 # 5 of 10 ( Start time: 02:14:06 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: 02:15:28 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 # 7 of 10 ( Start time: 02:16:13 PM ) Total Marks: 1
Which of the following is used for multi level commenting?
Select correct option:
Code should not be:
Select correct option:
commented
indented
cryptic
aligned
Question # 2 of 10 ( Start time: 02:10:52 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
Question # 3 of 10 ( Start time: 02:12:17 PM ) Total Marks: 1
MVC stands for ---------------
Select correct option:
Model view controller
Modern View Center
Model View Center
Modern View Controller
Question # 4 of 10 ( Start time: 02:13:01 PM ) Total Marks: 1
80/20 rule states that:
Select correct option:
You spend 80% of your time in 20% of 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 # 5 of 10 ( Start time: 02:14:06 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: 02:15:28 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 # 7 of 10 ( Start time: 02:16:13 PM ) Total Marks: 1
Which of the following is used for multi level commenting?
Select correct option:
// comment
/* Comment */
(Comment)
*/ Comment/*
Question # 8 of 10 ( Start time: 02:17:43 PM ) Total Marks: 1
Constant values used in the program are called_________.
Select correct option:
Real Numbers
Magic numbers
Constant Numbers
Positive Numbers
Question # 9 of 10 ( Start time: 02:18:57 PM ) Total Marks: 1
________ and ________ are important short circuiting logical operators. a.AND b. OR c. NOT d. NOR
Select correct option:
/* Comment */
(Comment)
*/ Comment/*
Question # 8 of 10 ( Start time: 02:17:43 PM ) Total Marks: 1
Constant values used in the program are called_________.
Select correct option:
Real Numbers
Magic numbers
Constant Numbers
Positive Numbers
Question # 9 of 10 ( Start time: 02:18:57 PM ) Total Marks: 1
________ and ________ are important short circuiting logical operators. a.AND b. OR c. NOT d. NOR
Select correct option:
a & b
b & c
c & d
a & c
Question # 10 of 10 ( Start time: 02:20:02 PM ) Total Marks: 1
Charles Simonyi first discussed Hungarian Notation. He was of ------ .
Select correct option:
b & c
c & d
a & c
Question # 10 of 10 ( Start time: 02:20:02 PM ) Total Marks: 1
Charles Simonyi first discussed Hungarian Notation. He was of ------ .
Select correct option:
Microsoft
IBM
Dell
Cisco
IBM
Dell
Cisco
CS504-Software Engineering
Client Server model tries to data and
processing.
Distribute
Merge
Clone
Proceed
Merge
Clone
Proceed
Anti- Patterns is another concept that
corresponds to common in analysis and design.
Mistake
Issues
Problems
All of the given
Three tier architecture contains layers.
Presentation
Application
Database
All of the above
MVC stands for
Model View Controller
Modern View Center
Model View Center
Modern View Controller
Fat client model is one of the configurations of model.
Data-Centered
Layered
Reference
Client Server
Description of communicating objects and classes that are customized to solved a general problem in a particular context is called.
Design Pattern
System Patter
System Design
None of the Given
In the N-tire Architecture, the idea is to enhance scalability and by distributing both data and the application using multiple server machines.
Usability
Performance
Interpretability
None of the given
Thin Client model is one of the configurations of ….. model.
Data Centered
Client Server
Layered
Reference
Dynamic process model shows the process ….…….. of the system.
Components
Objects
Structure
Linkage
It ensures that a class only has one instance and provides a global point of access to it.
Singleton Pattern
Observer Pattern
Real Pattern
None of the given
STL Stnads for ------------------ .
Standard Template Library
Standard Type Link
Standard Tempo Line
None of the given
Three tier architecture contains ------------- layers.
Presentation
Application
Database
All of the above
Which of following is/are among ten things, which the basic template of GOF design pattern includes.
Problem
Context
Forces
All of the given
Vertical partitioning is also known as….. .
Balancing
Mutating
Parallelizing
Factoring
Vertical partitioning is also known as…...
Balancing
Mutating
Parallelizing
Factoring
Patterns are devices that allow programs to share knowledge about their -------.
Code
Design
Analysis
None of the given
Client server model tries to …….data and processing.
Distribute
Merge
Clone
Proceed
N-tier architecture stems from the struggle to find a ----------- between the fat-client architecture and the thin-client architecture.
Concurrency
Distribution point
Middle ground
Similarity
Vertical partitioning divides the architecture application from a …… making perspective.
Decision
Design
Conclusion
Move
Distributing the responsibilities to different subsystems so that we get a software system which is easy to maintain, is called ………the architecture.
Subtracting
Partitioning
Cloning
Balancing
The nominal case should be put in the if-part and the exception in the else-part of an if statement.
TURE
FALSE
Charles Simonyi first discussed Hungarian Notation. He was of ------. .
Microsoft
IBM
Dell
Cisco
The terms get/set must be used where an attribute is accessed.
Indirectly
Directly
A self documented program/code contains the following attribute(s):
Size of each function
Choice of variable
Choice of variable
All of the given choices
"is" prefix should be used for------ variables and methods.
General
Boolean
Constant
None of the given
The use of comments should be minimized by making the code self-documenting by appropriate name choices and an
explicit logical structure.
TRUE
FALSE
Variables should be initialized where they are ------and they should be declared in the ------scope possible.
defined and smallest
declared and medium
defined and medium
declared and smallest
Unrelated variables should be declared in the same statement.
True
False
which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2.
(1) and (3) only
(2) and (3) only
(1) and (2) only
All produce the same result
Goto statements violate the idea of.
object oriented code
structured code
control structure
repetition structure
MVC pattern was based on the --------------- pattern.
Observer
Structural
Behavioral
None of given
Which one is correct?
double total = 0.5;
double total = .5;
double total = .50;
all of the given
Code should not be:
commented
indented
cryptic
aligned
Global variables in C++ should always be referred to by using the.
:: operator
: operator
Without an operator
None of the given
_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model.
View Controller pattern
Smalltalk
PASCAL
JAVA
C++
Using proper paranthesis normally makes the code.
easy to read
easy to understand
less ambigous
All of the given options
Which of the following shows a commented statement in C++.
# Ans = first + second
// Ans = first + second
\\ Ans = first + second
/# Ans = first + second
The form for (;;) should be used for.
nested loop
empty loop
more than 1000 iterations
Identifier names also play a significant role in enhancing the -------- of a program.
Writ ability
Readability
Reliability
It ensures that a class only has one instance and provides a global point of access to it.
Singleton Pattern
Observer Pattern
Real Pattern
None of the given
Names representing methods and functions should be----and written in mixed case starting
with -----case.
Noun—lower
Verb----lower
Noun ---upper
A function should not be larger in any case and should not exceed ______ in length .
Half page
One page
Two pages
Three Pages
-----provides a unified interface to a set of interfaces in a sub-system.
Observer Pattern
Singleton Pattern
Façade Pattern
All of the above
MVC stands for ---------------.
Model View Controller
Modern View Center
Model View Center
Modern View Controller
A self documenting code is a code that explains itself without the need of comments and
extraneous documentation, like _______.
Flowcharts
UML diagrams
Process-flow state diagrams
All of the given choices
Complex expressions:
Make the code easy to modify
Make the code difficult to modify
Make the code easy to understand
Does not effect understandability
Comments should NOT be indented relative to their position in the code.
TRUE
FALSE
----Provides a unified interface to a set of interfaces in a sub-system.
Observer Pattern
Singleton Pattern
Façade Pattern
All of the above
In Client Server model, there application is modeled as a set so --- that are provided by server.
Application
Protocol
Services
All of the above
Vertical Partitioning is also know as.
Balancing
Mutating
Parallizing
Factoring
Façade Pattern provides a unified interface to a set of interfaces ina sub-system.
True
False
Which of the is/are among ten things which the basis template of GOF design pattern includes.
Problem
Context
Forces
All of the above
Thin Client Model places a heavy processing load on…….
Only Server
Only Network
Both Server and Network(Not Sure)
Neither server nor network
Zero install architecture does not need any installation on ____________.
Server side (not Sure)
Client side
Client & Server Side (Not Sure)
None of the above
Data-Centered Architectural Style is also called …..
Repository model
Client Server model
Sub system model
Reference model
Mistake
Issues
Problems
All of the given
Three tier architecture contains layers.
Presentation
Application
Database
All of the above
MVC stands for
Model View Controller
Modern View Center
Model View Center
Modern View Controller
Fat client model is one of the configurations of model.
Data-Centered
Layered
Reference
Client Server
Description of communicating objects and classes that are customized to solved a general problem in a particular context is called.
Design Pattern
System Patter
System Design
None of the Given
In the N-tire Architecture, the idea is to enhance scalability and by distributing both data and the application using multiple server machines.
Usability
Performance
Interpretability
None of the given
Thin Client model is one of the configurations of ….. model.
Data Centered
Client Server
Layered
Reference
Dynamic process model shows the process ….…….. of the system.
Components
Objects
Structure
Linkage
It ensures that a class only has one instance and provides a global point of access to it.
Singleton Pattern
Observer Pattern
Real Pattern
None of the given
STL Stnads for ------------------ .
Standard Template Library
Standard Type Link
Standard Tempo Line
None of the given
Three tier architecture contains ------------- layers.
Presentation
Application
Database
All of the above
Which of following is/are among ten things, which the basic template of GOF design pattern includes.
Problem
Context
Forces
All of the given
Vertical partitioning is also known as….. .
Balancing
Mutating
Parallelizing
Factoring
Vertical partitioning is also known as…...
Balancing
Mutating
Parallelizing
Factoring
Patterns are devices that allow programs to share knowledge about their -------.
Code
Design
Analysis
None of the given
Client server model tries to …….data and processing.
Distribute
Merge
Clone
Proceed
N-tier architecture stems from the struggle to find a ----------- between the fat-client architecture and the thin-client architecture.
Concurrency
Distribution point
Middle ground
Similarity
Vertical partitioning divides the architecture application from a …… making perspective.
Decision
Design
Conclusion
Move
Distributing the responsibilities to different subsystems so that we get a software system which is easy to maintain, is called ………the architecture.
Subtracting
Partitioning
Cloning
Balancing
The nominal case should be put in the if-part and the exception in the else-part of an if statement.
TURE
FALSE
Charles Simonyi first discussed Hungarian Notation. He was of ------. .
Microsoft
IBM
Dell
Cisco
The terms get/set must be used where an attribute is accessed.
Indirectly
Directly
A self documented program/code contains the following attribute(s):
Size of each function
Choice of variable
Choice of variable
All of the given choices
"is" prefix should be used for------ variables and methods.
General
Boolean
Constant
None of the given
The use of comments should be minimized by making the code self-documenting by appropriate name choices and an
explicit logical structure.
TRUE
FALSE
Variables should be initialized where they are ------and they should be declared in the ------scope possible.
defined and smallest
declared and medium
defined and medium
declared and smallest
Unrelated variables should be declared in the same statement.
True
False
which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2.
(1) and (3) only
(2) and (3) only
(1) and (2) only
All produce the same result
Goto statements violate the idea of.
object oriented code
structured code
control structure
repetition structure
MVC pattern was based on the --------------- pattern.
Observer
Structural
Behavioral
None of given
Which one is correct?
double total = 0.5;
double total = .5;
double total = .50;
all of the given
Code should not be:
commented
indented
cryptic
aligned
Global variables in C++ should always be referred to by using the.
:: operator
: operator
Without an operator
None of the given
_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model.
View Controller pattern
Smalltalk
PASCAL
JAVA
C++
Using proper paranthesis normally makes the code.
easy to read
easy to understand
less ambigous
All of the given options
Which of the following shows a commented statement in C++.
# Ans = first + second
// Ans = first + second
\\ Ans = first + second
/# Ans = first + second
The form for (;;) should be used for.
nested loop
empty loop
more than 1000 iterations
Identifier names also play a significant role in enhancing the -------- of a program.
Writ ability
Readability
Reliability
It ensures that a class only has one instance and provides a global point of access to it.
Singleton Pattern
Observer Pattern
Real Pattern
None of the given
Names representing methods and functions should be----and written in mixed case starting
with -----case.
Noun—lower
Verb----lower
Noun ---upper
A function should not be larger in any case and should not exceed ______ in length .
Half page
One page
Two pages
Three Pages
-----provides a unified interface to a set of interfaces in a sub-system.
Observer Pattern
Singleton Pattern
Façade Pattern
All of the above
MVC stands for ---------------.
Model View Controller
Modern View Center
Model View Center
Modern View Controller
A self documenting code is a code that explains itself without the need of comments and
extraneous documentation, like _______.
Flowcharts
UML diagrams
Process-flow state diagrams
All of the given choices
Complex expressions:
Make the code easy to modify
Make the code difficult to modify
Make the code easy to understand
Does not effect understandability
Comments should NOT be indented relative to their position in the code.
TRUE
FALSE
----Provides a unified interface to a set of interfaces in a sub-system.
Observer Pattern
Singleton Pattern
Façade Pattern
All of the above
In Client Server model, there application is modeled as a set so --- that are provided by server.
Application
Protocol
Services
All of the above
Vertical Partitioning is also know as.
Balancing
Mutating
Parallizing
Factoring
Façade Pattern provides a unified interface to a set of interfaces ina sub-system.
True
False
Which of the is/are among ten things which the basis template of GOF design pattern includes.
Problem
Context
Forces
All of the above
Thin Client Model places a heavy processing load on…….
Only Server
Only Network
Both Server and Network(Not Sure)
Neither server nor network
Zero install architecture does not need any installation on ____________.
Server side (not Sure)
Client side
Client & Server Side (Not Sure)
None of the above
Data-Centered Architectural Style is also called …..
Repository model
Client Server model
Sub system model
Reference model
In the switch statement, cases should always end with a
-------statment.
Switch
Go
Break
Stop
Switch
Go
Break
Stop
Bit fields allow the packing of data in a structure. using Bit fields we can:
Read 9 bit integers
avoid memory leakages
avoid memory overflow
Avoid syntax errors
A tricky sequence of fallthrough code using switch statement with no Break statments used, causes more trouble than being helpful.
True
False
Be very careful when you use functions with side effects – functions that change the values of the ________
Objects
Classes
Structures
Variables
Complex expressions:
Make the code difficult to modify
The C/C++ language does not define the alignment of items within
Structures
Classes
Unions
All of the given options
Some bit field members are stored: I) left to right II) right to left III) in circular array
only (I) is true
Only (II) is true
Both (I) and (II) are true
All of the options (I, II and III) are true
_________ cause major portability issues
Loops
Bugs in code
Sizes of data types
Conditional Structures
The order in which bytes of one word are stored is _________ dependent
Hardware
Software
Language
Syntax
x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
x = false
x = NULL
x = 0.0;
x = ‘\0’
Str = 0;// str is string
Which rewritten from of above line of code is more in line with the
self-documentation philosophy than the code above.
Str = false;
Str = NULL;
Str = ‘\0;
Str = 0.0;
Struct packed_struct { unsigned int f1:1;} pack; Here in
“packed_struct”:
Value of f1 =1
Size of f1 = 1 bit
Value of f1 should
not exceede 1 (Not Sure)
None of given options
In the switch statement, cases should always end with a
-------statment.
Switch
Go
Break
Stop
Bit fields are a convenient way to express many difficult operations.
However, bit fields suffer from one problem
Lack of Usability
Lack of Security
Lack of Performance
Lack of Portability
If(!(block < activeBlock)) is equvivalent to:
If ((block < activeBlock))
If ((block == activeBlock))
If ((block >= activeBlock))
None of the given
Bit fields allow the packing of data in a structure. Using Bit fields
we can:
Read 9 bit integers
Avoid memory leakages
Avoid memory overflow
Avoid syntax errors
The order in which bytes of one word are stored is _________ dependent
Hardware
Software
Language
Syntax
In order to write a portable code which of the following guideline will
be helpful:
Stick to the standards
Program in the mainstream
Size of data types
All of give options
Complex expressions:
Make the code easy to
modify
Make the code difficult to modify
Make the code easy to understand
Does not effect understandability
In the switch statement, cases should always end with a
-------statment.
Switch
Go
Break
Stop
x = 0; // x is floating pt Which rewritten form of above line of code
is more in line with the self-documentation philosophy than the code above.
x = false
x = NULL
x = 0.0;
x = ‘\0’
using proper paranthesis normally makes the code
easy to read
easy to understand
less ambiguous
All of the given
options
The use of comments should be minimized by making the code
self-documenting by appropriate name choices and an explicit logical structure.
True
False
Bit fields allow the packing of data in a structure. using Bit fields
we can:
Read 9 bit integers
Avoid memory leakages
Avoid memory overflow
Avoid syntax errors
1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a
- 1;
Statement (2) is more
complex than (1)
Statement (2) is more complex than (1)
Both statements are very complex
None of the given options
80/20 rule states that:
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.
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.
Be very careful when you use functions with side effects – functions
that change the values of the ________
Objects
Classes
Structures
Variables
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 (Not Sure)
The C/C++ language has not specified whether ____ is arithmetic or logical.
Select correct option:
Right shift >>
Right shift
&&
||
Select correct option:
Compiler does not recognise this symbol
It creates linkage problem
It causes side effects
All of the given options (Not Sure)
The C/C++ language has not specified whether ____ is arithmetic or logical.
Select correct option:
Right shift >>
Right shift
&&
||
In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
Select correct option:
STL
ANSI
ISO
CMMI
The order in which bytes of one word are stored is _________ dependent
Select correct option:
hardware
software
language
syntax
Be very careful when you use functions with side effects – functions that change the values of the ________
Select correct option:
Objects
Classes
Structures
Variables
When a small set of functions (which use each other) is so overwhelmingly the bottleneck, there are two alternatives:
Select correct option:
use a better algorithm OR re-write the code
debug the code OR place assertions in code
remove the functions OR add more functions
changed programming language OR compiler at least
_______ cause major portability issues
Select correct option:
Loops (Not Sure)
Bugs in code
Sizes of data types
Conditional Structures
In the switch statement, cases should always end with a -------statment.
Select correct option:
Switch
Go
Break
Stop
Some bit field members are
stored: I) left to right II) right to left III) in circular array
Select correct option:
only (I) is true
Only (II) is true
Both (I) and (II) are true
All of the options (I, II and III) are true
Select correct option:
only (I) is true
Only (II) is true
Both (I) and (II) are true
All of the options (I, II and III) are true
x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
x = false
x = NULL
x = 0.0;
x = ‘\0’
Comma ( , ) is very dangerous because
Compiler does not recognise this symbol
It creates linkage problem
It causes side effects
All of the given
options(Not sure)
using proper paranthesis normally makes the code
easy to read
easy to understand
less ambiguous
All of the given
options
The use of comments should be minimized by making the code
self-documenting by appropriate name choices and an explicit logical structure.
True
False
Bit fields allow the packing of data in a structure. using Bit fields
we can:
Read 9 bit integers
avoid memory leakages
avoid memory overflow
Avoid syntax errors
1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a
- 1;
Statement (2) is more
complex than (1)
Statement (2) is more complex than (1)
Both statements are very complex
None of the given options
80/20 rule states that:
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.
Be very careful when you use functions with side effects – functions
that change the values of the ________
Objects
Classes
Structures
Variables
A test case involves
Input/output specification plus a statement of the function under test
Steps to perform the function
Expected results that the software application produces
All of the given options
Input/output specification plus a statement of the function under test
Steps to perform the function
Expected results that the software application produces
All of the given options
The C/C++ language has not specified whether ____ is
arithmetic or logical.
Select correct
option:
Right shift >>
Right shift
&&
||
Right shift >>
Right shift
&&
||
If an application fulfills its specifications but deviates from users
expectations or their desired behavior. This means, software is verified but
not ------------
Select correct option:
Validated
Corrected
Checked
Traced
The raising of the imaginary error flag is simply called raising or ________ an error
Select correct option:
Catching
Casting
Throwing
None of given options
In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
Select correct option:
STL
ANSI
ISO
CMMI
struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":
Select correct option:
value of f1 = 1
size of f1 = 1 bit
value of f1 should not exceede 1
None of given options
The idea behind exception handling is to raise some error flag every time ________
Select correct option:
The code compiles
The code links
Memory is allocated
Something goes wrong
Bit fields allow the packing of data in a structure. using Bit fields we can:
Select correct option:
Read 9 bit integers
avoid memory leakages
avoid memory overflow
Avoid syntax errors
The order in which bytes of one word are stored is _________ dependent
Select correct option:
hardware
software
language
syntax
A __________ is a variance from a desired product attribute.
Select correct option:
Exception
Error
Mistake
Defect
The C/C++ language does not define the alignment of items within
Select correct option:
structures
classes
unions
All of the given options
The raising of the imaginary error flag is simply called raising or ________ an error
Select correct option:
Catching
Casting
Throwing
None of given options
Consider the following statement: int a,b=10; Which of the following is correct:
Select correct option:
variable "a" is initialized to 10
Variable "b" is initialized to 10
Both variables "a" and "b" are initialized to 10
variables can not be initialized this way
Exception handling is a powerful technique that separates error-handling code from ______ code.
Select correct option:
Normal
Faulty
Buggy
Complex
Bit fields are a convenient way to express many difficult operations. However, bit fields suffer from one problem
Select correct option:
Lack of usability
Lack of security
Lack of performance
Lack of portability
The complexity of a program may ______ if there are exceptional paths in it
Select correct option:
Decrease
Increase
Remain same
All of given options
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.
When an error is thrown the overall system (on the lookout for this error flag) responds by ______ the error.
Select correct option:
Ignoring
Casting
Catching
All of the given options(Not Sure)
Select correct option:
Validated
Corrected
Checked
Traced
The raising of the imaginary error flag is simply called raising or ________ an error
Select correct option:
Catching
Casting
Throwing
None of given options
In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
Select correct option:
STL
ANSI
ISO
CMMI
struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":
Select correct option:
value of f1 = 1
size of f1 = 1 bit
value of f1 should not exceede 1
None of given options
The idea behind exception handling is to raise some error flag every time ________
Select correct option:
The code compiles
The code links
Memory is allocated
Something goes wrong
Bit fields allow the packing of data in a structure. using Bit fields we can:
Select correct option:
Read 9 bit integers
avoid memory leakages
avoid memory overflow
Avoid syntax errors
The order in which bytes of one word are stored is _________ dependent
Select correct option:
hardware
software
language
syntax
A __________ is a variance from a desired product attribute.
Select correct option:
Exception
Error
Mistake
Defect
The C/C++ language does not define the alignment of items within
Select correct option:
structures
classes
unions
All of the given options
The raising of the imaginary error flag is simply called raising or ________ an error
Select correct option:
Catching
Casting
Throwing
None of given options
Consider the following statement: int a,b=10; Which of the following is correct:
Select correct option:
variable "a" is initialized to 10
Variable "b" is initialized to 10
Both variables "a" and "b" are initialized to 10
variables can not be initialized this way
Exception handling is a powerful technique that separates error-handling code from ______ code.
Select correct option:
Normal
Faulty
Buggy
Complex
Bit fields are a convenient way to express many difficult operations. However, bit fields suffer from one problem
Select correct option:
Lack of usability
Lack of security
Lack of performance
Lack of portability
The complexity of a program may ______ if there are exceptional paths in it
Select correct option:
Decrease
Increase
Remain same
All of given options
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.
When an error is thrown the overall system (on the lookout for this error flag) responds by ______ the error.
Select correct option:
Ignoring
Casting
Catching
All of the given options(Not Sure)
Comments are not syntax checked
TRUE
FALSE
Modularity is a tool that can help us in increasing the size of
individual functions, making them less readable.
True
False
1:
Which of the following is not part of software architecture?
§ database
§ data design ( 2 true)
§ program structure
§ algorithm details
2:
Defining the services of an object means
§ what it does?(true)
§ what it knows?
§ who knows it?
§ whome it knows?
3:
Zero install architecture does not need any installation on
...........
§ server side
§ client side(true)
§ client & server side
§ non of the above
4:
Which of following is/ are among ten things ,which the
basic template of GOF design pattern
§ includes
§ problem
§ context
§ forces
§ All of the given
(true)
5:
the focus of sequence diagrams is:
§ on static model of system
§ on object constraints
§ on object(and
classes ) and message exchanged among them.(true)
6:
in client server model, the application is modeled
as a set of........that are provided by server.
§ requests
§ protocols
§ services(true)
§ requirements
7:
vertical patitioning divides the architecture
application from a ........making perspective.
§ decision(true)
§ design
§ cosclusion
§ move
8:
The criteria used to assess the quality of an
architectural design should be based on system.
§ accessibilty and
reliability (true)
§ data and control
§ functionality
§ implementation details
9:
An architectural style encompasses which of the
following elements?
§ constraints
§ set of components
§ semantic models
§ All of the
given(true)
10:
in the aarchitecture trade-off analysis method the
architectural style should be described using the.....
§ data flow view
§ module view
§ process view (true)
§ All of the given
11:
Anti-petterns is another
concept that corresponds to common .......in analysis and design
§ mistakes(true)
§ issues
§ problems
§ All of the given
12:
Dynamic process model shows the process .........of
the system
§ components
§ objects
§ structure(true)
§ linkage
13:
thin client model places a
heavy processing load on.....
§ only server
§ only network
§ both server and
network(true)
§ neither derver nor network
14:
the key objective(s) of OOD process should
achieve the following
§ the class as far as possible should be independent.but could be dependent on only a few
classes
§ interaction between two classes should be
explicit.
§ class hierarchy should be built on
specialization of higher class
§ All of the given options
15:
client server model tries to .....data and
processing.
§ distribute(true)
§ merge
§ clone
§ proceed
15: process view in
krutchen,4+1 architectural view model captures........
object model of the design
concurrency and synchronization aspects of design (trues)
mapping(s) of the software onto the hardware and reflects its distributed aspect
static organization of the software in its development enviroment
object model of the design
concurrency and synchronization aspects of design (trues)
mapping(s) of the software onto the hardware and reflects its distributed aspect
static organization of the software in its development enviroment
y
today quizzzzzz
1: In sequence diagram, the solid lines depict:
1: In sequence diagram, the solid lines depict:
§ Objects (or classes) 1
§ Messages being sent from one object to the
other
§ Life-time of an object( not sure)
§ None of the given option
2:
To determine the architectural style or
combination of styles that best fits the Proposed system, requirements
engineering is used to uncover
§ algorithmic complexity
§ characteristics and constraints
§ control and data
§ design patterns
3:
Vertical partitioning divides the architecture application
from a …… making perspective.
§ Decision( true)
§ Design
§ Conclusion
§ Move
Question
# 4 of 10 ( Start time: 05:10:11 AM ) Total Marks: 1
Zero install architecture does not need any installation on ____________.
Zero install architecture does not need any installation on ____________.
§ server side
§ client side(true)
§ client & server side
§ non of the above
5:
An architectural style encompasses which of
the following elements?
§ constraints
§ set of components
§ semantic models
§ All of the
given(true)
6:
Which of the following is not part of software
architecture?
§ database
§ data design ( 2 true)
§ program structure
§ algorithm details
Question # 7 of 10 ( Start time: 05:11:56 AM ) Total Marks: 1
________ has become a standard notation for object oriented system modeling.
§ UML 1
§ c++
§ OCL (object Constraint Language)
§ None of the given options
8:
The clients and servers, in a client server
environment, are connected through _____________________.
§ Framework
§ Interface
9:
A necessary supplement to transform or transaction mapping
needed to create a complete architectural design is
§ entity relationship diagrams
§ the data dictionary
§ processing
narratives for each module( true)
§ test cases for each
module
10:
Different messages in sequence diagrams includes:







0 comments:
Post a Comment