+ All Categories
Home > Documents > Software Architecture & Complexity By:- Pardesi Band Group .

Software Architecture & Complexity By:- Pardesi Band Group .

Date post: 16-Jan-2016
Category:
Upload: kenneth-burke
View: 221 times
Download: 0 times
Share this document with a friend
59
Software Architecture & Complexity By:- Pardesi Band Group www.ramkumarsjava.com
Transcript

Cyclomatic Complexity is a concept to reduce?

Software Architecture & Complexity

By:-Pardesi Band Groupwww.ramkumarsjava.comProgramming [email protected] programming languagea>is a tool for instructing machines.b>a way of expressing relationships between concepts.c>allows a programmer to communicate with the machine h/w and control them.d>All of the above.Ans. D.

www.ramkumarsjava.comQ2. Assembly language uses ____ to translate assembly language statements into the target computers machine code.a>Translatorb> Assembler c> compilersd>none of the above`Ans. B.

www.ramkumarsjava.comQ3. A typical machine that follows von Neumann architecture has:a>Processing unitb>Control unitc>Memoryd>External mass Storagee> All of the abovef> I am not sure

Ans. e.www.ramkumarsjava.comQ5.The wide spread use of programming language began with the arrival of ___.a>PASCALb>COBOLc>ALGOL 60d>FORTRANe>NONE OF THESEf>I DONT CARE

Ans. D.

www.ramkumarsjava.comQ4. ___ is used to translate source code into machine language.a>Operating Systemb>Browerc>Compilersd>Assemblers

Ans. C.

www.ramkumarsjava.comLanguage Implementationwww.ramkumarsjava.comA process where source code is translated into object codeInterpretationCompilation

www.ramkumarsjava.comInterpretation process convertsIntermediate object code machine codeSource code machine codeSource code - Intermediate object code

www.ramkumarsjava.comCyclomatic Complexitywww.ramkumarsjava.comCyclomatic Complexity is a concept to reduce?No. Of linearly independent pathThe no. Of path that one should test.Both 1 and 2Either 1 Or 2www.ramkumarsjava.comBoth 1 & 2www.ramkumarsjava.comIf Complexity = 10 then Minimum 10 cases will :Cover all the code.Test decision logicTest the interaction between code constructTest the UIwww.ramkumarsjava.comAll except 4www.ramkumarsjava.comCyclomatic Complexity is a metric s/w used to:Measure the complexity of the programIndicate the complexity of the SoftwareOnly 1Both 1 and 2

www.ramkumarsjava.comAns : 4www.ramkumarsjava.comCyclomatic Complexity was developed by:Thomas J. McCabe, Sr. In 1976Sir Ravindra Jadeja in 1967Sir Gabbar Singh in 1984Sir Asaram Bapu in 2014www.ramkumarsjava.comAns : u better knowwww.ramkumarsjava.comThe Complexity (M) is defined as :M = E N + 2PM = E N + PM = N E + 2PM = N P + 2Ewww.ramkumarsjava.comCyclomatic Complexity helps to :Measure no. Of linearly independent path in a prog module.It provides relative complexity of various design.Compute complexity early in life cycle.Guide the testing process by limiting the program logic during development.All of the above.

www.ramkumarsjava.comAns : 5www.ramkumarsjava.comM = 11 to 20 is ?Low Complexity High Complexity Medium Complexity Highly unstablewww.ramkumarsjava.comAns : 3www.ramkumarsjava.comCyclomatic Complexity help to :Redesign complex modulesAllow more time for building and testing complex modules.Assign more experienced personnel to the complex module.Execute complicated people in your life.1, 2, 3

www.ramkumarsjava.com Ans : Its obvious www.ramkumarsjava.comWhen the determination is made that the class method are complex then the action justified are:Re architect solution.Split chosen methods into smaller chunks.Generate detailed documentation.Undergo extra reviewsAll of the abovewww.ramkumarsjava.comAns : 5www.ramkumarsjava.comAdvantage of Cyclomatic Complexity is?Metric is directly related to maintainability and testabilty.It can be computed immediately in the development cycle.It warns the developer during the development itself where the code is complex.Measures the minimum effort for testing. www.ramkumarsjava.com Ans: All 4www.ramkumarsjava.comTools available to compute Complexity are? Acqt, Dqt (java)Visual studio 2010/2008 (.Net)Hammer Axe www.ramkumarsjava.comAns: 1 & 2www.ramkumarsjava.comAccenture developed template to compute complexity by:ManuallyAutomaticallyBothwww.ramkumarsjava.comAns : 1www.ramkumarsjava.comProgramming Implementation And Paradigms www.ramkumarsjava.com1. Expression notations in a programming language can be written as?1. Infix expression2. Prefix expression3. Postfix expression4. Mixfix expression5. All the above

Ans 5

www.ramkumarsjava.com2. Choose the following:

1. Mixfix Expression2. Infix Expression3. Postfix Expression4. Prefix Expression

a. a b + c /b. a > b then a else bc. / * a cd. (a * b) + c * (d e)1-a, 2-b, 3-c, 4-d;1-d, 2-c, 3-b, 4-a;1-b, 2-d, 3-c, 4-a;1-b, 2-d, 3-a, 4-c .www.ramkumarsjava.comAns 4www.ramkumarsjava.com3. ____________ is an exception where all arithmetic operators have same precedence and are left associative. 1. C++ 2. Visual Basic 3. Smalltalk-80 4. C#www.ramkumarsjava.comAns 3www.ramkumarsjava.com4. ____________ is the tree representation of the syntaxes of a language.1. Program 2. Semantics 3. Abstract Syntax Tree 4. Syntaxwww.ramkumarsjava.comAns 3www.ramkumarsjava.com5. The Paradigms into which Computer Programming languages are divided into:

a. Procedural Programmingb. Object-oriented Programmingc. Functional Programmingd. Logic Programming

1. a, b, c; 2. b, c, d; 3. a, b, c, d; 4. b and d.www.ramkumarsjava.comAns 3www.ramkumarsjava.com6. The basic unit of Procedural Programming is:

1. data 2. action 3. code 4. bit

www.ramkumarsjava.comAns 2www.ramkumarsjava.com7. Choose the following:Procedural ProgrammingObject-orientedFunctionalLogicLISP and SchemeFORTRAN, COBOL, CPrologSmalltalk, C++, Java1-d, 2-c, 3-b, 4-a;1-b, 2-d, 3-a, 4-c;1-b, 2-a, 3-d, 4-c;1-a, 2-b, 3-c, 4-d.www.ramkumarsjava.comAns 2www.ramkumarsjava.com8. Procedural paradigm is made up of:a. Declaration Segmentb. Invocation Segmentc. Definition Segmentd. Procedure Segment

1. a, c, d; 2. b, c, d; 3. a, b, c; 4. a, b, c, d.www.ramkumarsjava.comAns 3www.ramkumarsjava.com9. Advantages of Procedural programming are:1. Sequential Computation 2. Static Programs, Dynamic Computations 3. Structured Programming 4. Syntax-Directed Control Flow 5. Memory leaks 6. 1,2,3,4 7. All the abovewww.ramkumarsjava.comAns 6www.ramkumarsjava.com10. Choose the following:Procedural ProgrammingObject-oriented ProgrammingFunctional ProgrammingLogic ProgrammingA program is considered a mathematical function.Uses principle of logical reasoning to answer queries.Is an active agent that uses passive objects that we refer to as data or data items.Deals with active objects instead of passive objects.1-c, 2-b, 3-d, 4-a;1-d, 2-a, 3-b, 4-c;1-c, 2-d, 3-b, 4-a;1-c, 2-d, 3-a, 4-b.www.ramkumarsjava.comAns 4www.ramkumarsjava.com11. Features of Object-Oriented Programming:

1. Data Abstraction 2. Encapsulation 3. Inheritance 4. Polymorphism 5. All the abovewww.ramkumarsjava.comAns 5www.ramkumarsjava.com12. Attributes of a good programming language are:

1. Simplicity 2. Conceptual Integrity 3. Portability 4. Robust 5. Reliability 6. Efficiency 7. Data Integrity, Object-Oriented 8. Security, 9. Dynamic binding and Reusability 10. All the abovewww.ramkumarsjava.comAns 10www.ramkumarsjava.comThats All folks www.ramkumarsjava.com


Recommended