Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Software Engineering Exercises and Questions, Exercises of Introduction to Software Engineering

Introduction to software engineering \ c Language \ coding

Typology: Exercises

2021/2022

Uploaded on 03/24/2023

mohammed-shalash
mohammed-shalash 🇹🇷

1 document

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
7.1 Questions & Exercises
1. Why would the number of lines in a program not be a good
measure of the complexity of the program?
. A long sequence of assignment statements is not as complex in the context of program design as a
few nested if statements
2. Suggest a metric for measuring software quality. What
weaknesses does your metric have?
the number of errors found after a fixed period of use, problem here is that this value cannot be
measured in advance
3. ******************************************
4. Identify two contexts in which the field of software
engineering has been or currently is progressing toward
improvements.
discovery of metrics, the development of prefabricated components, the development of CASE tools,
development of modeling and notational systems such as UML.
7.2 Questions & Exercises
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Software Engineering Exercises and Questions and more Exercises Introduction to Software Engineering in PDF only on Docsity!

7.1 Questions & Exercises

  1. Why would the number of lines in a program not be a good measure of the complexity of the program? . A long sequence of assignment statements is not as complex in the context of program design as a few nested if statements
  2. Suggest a metric for measuring software quality. What weaknesses does your metric have? the number of errors found after a fixed period of use, problem here is that this value cannot be measured in advance

  3. Identify two contexts in which the field of software engineering has been or currently is progressing toward improvements. discovery of metrics, the development of prefabricated components, the development of CASE tools, development of modeling and notational systems such as UML. 7.2 Questions & Exercises
  1. How does the development stage of the software life cycle affect the maintenance stage? Small efforts made during development can pay enormous dividends during maintenance
    1. Summarize each of the four stages (requirements analysis, design, implementation, and testing) within the development phase of the software life cycle. The requirements analysis phase concentrates on what the proposed system must accomplish. The design phase concentrates on how the system accomplishes its goals. The implementation phase concentrates on the actual construction of the system. The testing phase concentrates on making sure that the system does what it is intended to do.
  1. What is the role of a software requirements specification? . A software requirements specification is a written agreement between a client and a software engineering firm, stating the requirements and specifications of the software to be developed. 7.3 Questions & Exercises
  2. Summarize the distinction between the traditional waterfall model of software development and the newer incremental and iterative paradigms. The traditional waterfall approach dictates that the requirements analysis, design, implementation, and testing phases be performed in a linear manner. The newer models allow for a more relaxed trial-and- error approach.
  3. Identify three development paradigms that represent the move away from strict adherence to the waterfall model. incremental model, the iterative model, and XP

Coupling is linking between modules. Cohesion is the connectedness within a module. Information hiding is the restriction of information sharing.

  1. Extend the structure chart in Figure 7.3 to include the data coupling between the modules ControlGame() and UpdateScore(). Go to page 705 of the book
  2. Draw a diagram similar to that of Figure 7.5 to represent the sequence that would occur if PlayerA’s serve is ruled invalid. Go to page 705 of the book
  3. What is the difference between a traditional programmer and a component assembler? A traditional programmer writes programs in terms of statements such as those introduced in Chapter 6. A component assembler builds programs by linking prefabricated blocks called component
  4. Assuming most smartphones have a number of personal organization applications (calendars, contacts, clocks, social networking, email systems, maps, etc.), what combinations of component functions would you find useful and interesting? I don't want to answer this one🙂. 7.5 Questions & Exercises
  1. Draw a dataflow diagram representing the flow of data that occurs when a patron checks a book out of a library.
  2. Draw a use case diagram of a library records system.
  3. Draw a class diagram representing the relationship between travelers and the hotels in which they stay.
  4. Draw a class diagram representing the fact that a person is a generalization of an employee. Include some attributes that might belong to each.
  1. Identify two themes that are applied throughout the development process to enhance quality Record keeping and reviewing. . 4. When testing software, is a successful test one that does or does not find errors? The purpose of testing software is to find errors. In a sense, then, a test that does not reveal an error is a failure
  2. What techniques would you propose using to identify the modules within a system that should receive more thorough testing than others? One would be to consider the amount of branching in the modules. For instance, a procedural module containing numerous loops and if-else statements would probably be more prone to errors than a module with a simple logical structure.
  3. What would be a good test to perform on a software package that was designed to sort a list of no more than 100 entries? . Boundary value analysis would suggest that you test the software on a list with 100 entries as well as a list with no entries. You might also perform a test with a list that is already in the correct order. 7.7 Questions & Exercises
  4. In what forms can software be documented? form of user documentation, system documentation, and technical documentation.
  5. At what phase (or phases) in the software life cycle is system documentation prepared?

In both the development and modification phases… Go to page 707 for detailed answer

  1. Which is more important, a program or its documentation? Different people will have different opinions on this one …so Go to page 707 7.8 Questions & Exercises
  2. a. Identify an application of ergonomics in the field of humancomputer interface design. the ability to adjust the tilt of a display or the shape of a mouse? On smartphones, the use of touch screens instead of a mouse, tilting the phone to provide input b. Identify an application of cognetics in the field of humancomputer interface design. the layout of a window on the display, including the design of toolbars, scroll elevators, and pull-down menus? On a smartphone.
  3. A notable difference in the human-computer interface of a smartphone from that of a desktop computer are the techniques used to scroll a portion of the display. On a desktop, scroll is typically achieved by dragging the mouse on scrollbars displayed on the right and bottom sides of the scrolling region, or by using scroll wheels built into the mouse. On the other

7.9 Questions & Exercises

  1. What is the significance of a copyright notice in requirement specifications, design documents, source code, and the final product? The copyright notice asserts ownership of the work and identifies personnel authorized to use the work. All works including requirements specifications, design documents, source code, and the final product usually involve a considerable investment to produce. An individual or corporation should take the steps to insure that their ownership rights are reserved and that all intellectual property is not used by undesired parties.
  2. In what ways are copyright and patent laws designed to benefit society? Copyright and patent laws benefit society because they encourage creators of new products to make them available to the public. Without such protection, companies would hesitate to make major investments in new products
  3. To what extent are disclaimers not recognized by the courts? A disclaimer does not protect a company against negligence. اللهمّإنّي اسألك فهم النبيّين، وحفظ المرسلين والمالئكة المقربين، اللهمّاجعل ألسنتنا عامرة بذكرك، وقلوبنا بخشيتك، وأسرارنا بطاعتك، إنك على كل شيء قدير. اللهم استودعك شلش في االمتحانات ف احرسه من عيون المراقبين والمراقبات و اعنه على دراسته يارب امين 🙂