Classical Software Engineering

Computing

Quiz 15 :

Implementation

Quiz 15 :

Implementation

Question Type
search
arrow
How do coding standards for a software company that develops and maintains software for intensive-care units differ from those in an organization that develops and maintains accounting products?
Free
Essay
Answer:

Answer:

Coding standards are a set of guidelines that developers follow when they write a code. Coding standards defines the programming style. It is not concerned whether a code is right or wrong, it only tells the rules and guidelines for the formatting of source code. The common coding standards are:-
• Naming convention
• File naming
• Formatting and Indentation
• Comments and documentation
• Classes, functions and Interface
• Pointer usage
The difference between the coding standards for software of intensive care unit and software of accounts is as follows:
• The coding standards for the intensive care unit software should capture, manage and report the data instantly generated in ICU.
• It should give complete electronic medical records and decision support with fewer errors.
• The storage and retrieval of information should be done in short term.
So, the coding standards for an intensive care unit should be easy to use as the users of the product are medical experts. Each unit can be coded in its own required style as per the medical use.
• The coding standards for accounting software should include asset tracking, auditing features, general ledger, payment processing, and cash flow and credit management.
• It should integrate bank and credit card accounts.
• The development team should define each person's role in the project.
• It is also important to maintain internal controls such as monthly reviews of activities, capitalized and expenses amounts.
The coding standards for an accounting software should be consistent and style of all the code should be same else the accounts can be badly interpreted and reflected.
Thus, there is a vast difference between the coding standards of intensive care unit software and accounting software because the working and goal of both the software is completely different.

Tags
Choose question tag
close menu
arrow
Repeat Problem 15.15 for linear code sequences.
Free
Essay
Answer:

Answer:

Linear code sequence executes code from start of the program or from point of control flow and terminates when the program ends or control flow ends. In the Naur text processing code fragment the linear code sequence will start from for loop and will end with termination of loop. The code fragment for Naur Text processing problem is shown below
img The test cases with linear code sequence for Naur text processing problem is as follows;
img

Tags
Choose question tag
close menu
arrow
Repeat Problem 15.1 for the product that determines whether a bank statement is correct (Problem 8.8).
Free
Essay
Answer:

Answer:

The issue of which programming language to use often can be decided by using cost benefit analysis in which management compute the cost and benefits of an implementation. This computation must be repeated for every language under consideration and the language with largest gain is selected. Also risk analysis can be done to decide which programming language to implement.
The list of various languages available with their advantages and disadvantages are:-
• Java-This language is robust, scalable for web application, platform independent, handles all the hardware and is free on internet but it is not suited for low level programming. Sometimes it does not perform well on older computers and is complex for small programs.
• C++-It is best suited for general purpose and low level programming. It is extremely fast, works well for GUI programming. It is good language to write operating system, drives and platform dependent applications but it is complex and difficult to debug when used for web application. Although it is platform independent but it is mostly used for platform specific applications only.
• C#- It can be used for web applications on Microsoft computers. It has marketable skill set and works well with Microsoft product line but it locks you into the Microsoft Platform.
• VB-It is extremely easy to use, even for people who are not computer programmers. It is excellent for writing little programs and piece of programs but it is not a true object oriented. Sometimes it becomes complex and difficult to manage on very large programs.
The appropriate language that can be chosen to determine whether a bank statement is correct can be Object Oriented Language. The most widely used object oriented programming language is C++. The C++ programming language is used specially for those organisation in which product is organised around objects and classes instead of functions. Bank statement correction determination is most suitable to use C++ because:-
• Bank statement contains list of all the transactions processed by bank account which includes deposits, withdrawal, bank fees, and balance information along with the account holder information.
• Features of C++ such as functions, class, and objects can be used for above item of bank statement.
• Inheritance will very helpful in the resuse of the code.
• Exception handling feature of C++ can help to find the error in case there will is wrong entry in the statement.
• If-else statement and switch cases will be suitable for determining whether the bank statement is correct by matching the data according to the condition.
• Private and public data can be encapsulated using C++.
Thus, after studying the advantages and disadvantages of various programming languages, the most suited programming language to determine whether a bank statement is correct or not will be C++.

Tags
Choose question tag
close menu
arrow
Consider the statement condition 1 condition 2 As stated at the end of Section 15.3, in Java and C++ the semantics of the operator are such that if condition 1 is false, then condition 2 is not evaluated. What is the technical term for this?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Why does deep nesting of if -statements frequently lead to code that can be difficult to read?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.1 for the elevator problem (Section 12.7.1).
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.15 for branch coverage.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Consider the statement condition 1 and condition 2 In what programming languages is condition 2 evaluated even if condition 1 is false?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.1 for the automated teller machine (Problem 8.9).
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Your instructor has asked you to implement the Chocoholics Anonymous product (Appendix A).Which language would you choose for implementing the product, and why? Of the various languages available to you, list their benefits and their costs. Do not attempt to attach dollar values to your answers.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.15 for all-definition-use-path coverage.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Why has it been suggested that modules ideally should consist of between 35 and 50 statements?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Using your solution to Problem 6.14 (or code distributed by your instructor), set up statement coverage test cases. For each test case, state what is being tested and the expected outcome of that test case.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
How do coding standards for a one-person software production company differ from those in organizations with 300 software professionals?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Set up black-box test cases for Naur's text-processing problem (Section 6.5.2). For each test case, state what is being tested and the expected outcome of that test case.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Why should backward goto statements be avoided, whereas a forward goto may be used for error handling?
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.15 for path coverage.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
You are the owner and sole employee of One-Person Software Company. You bought the programming workbench described in Section 5.8. List its five capabilities in order of importance to you, giving reasons.
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Draw a flowchart of your solution to Problem 6.14 (or code distributed by your instructor). Determine its cyclomatic complexity. If you are unable to determine the number of branches, consider the flowchart as a directed graph. Determine the number of edges e, nodes n, and connected components c. (Each method constitutes a connected component.) The cyclomatic complexity M is then given by the formula [McCabe, 1976] M = e ? n + 2 c
Essay
Answer:
Tags
Choose question tag
close menu
arrow
Repeat Problem 15.1 for the automated library circulation system (Problem 8.7).
Essay
Answer:
Tags
Choose question tag
close menu
Showing 1 - 20 of 41