Summary

This document is a tutorial one for Software Engineering course. It contains true/false questions and answers.

Full Transcript

Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department True/False Questions 1. Software costs often dominate computer system costs. a) True....

Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department True/False Questions 1. Software costs often dominate computer system costs. a) True. b) False. Answer: a 2. Agile-driven processes are processes where all the process activities are planned in advance and progress is measured against this plan. (Agile-driven processes involve incremental planning and adaptability to changes) a) True. b) False. Answer: b 3. The waterfall model is a plan-driven model. a) True. b) False. Answer: a 4. In incremental development model, specification, development, and validation are not interleaved. (In incremental development, these phases are interleaved.) a) True. b) False. Answer: b 5. Software engineering focuses on theory and fundamentals while computer science is concerned with the practicalities of developing and delivering useful software. (Software engineering is more focused on practicalities, while computer science emphasizes theory and fundamentals.) a) True. b) False. 1 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Answer: b 6. In the waterfall model, the cost of accommodating changing customer requirements is reduced. (The waterfall model makes it expensive to accommodate changes.) a) True. b) False. Answer: b 7. The waterfall model is only appropriate when the requirements are well-understood, and changes will be fairly limited during the design process. a) True. b) False. Answer: a 8. System engineering is a part of the software engineering process. (Software engineering is part of the broader field of system engineering.) a) True. b) False. Answer: b 9. In generic software, the specification of what the software should do is owned by the software developer. a) True. b) False. Answer: a 10. Change is inevitable in all large software projects. a) True. b) False. Answer: a 2 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 11. User requirements are mainly written for the customers. a) True. b) False. Answer: a 12. System requirements are mainly written for the customers. (System requirements are typically more technical and aimed at developers.) a) True. b) False. Answer: b 13. Agile methods are usually aims to produce detailed system requirements. (Agile methods focus on flexibility and adapting to evolving requirements rather than producing detailed requirements upfront.) a) True. b) False. Answer: b 14. It is easy to produce a complete and consistent requirements document. (Producing a complete and consistent requirements document is challenging due to evolving requirements.) a) True. b) False. Answer: b 15. Requirements consistency means that the requirements should include descriptions of all facilities required. (Requirements consistency means there are no conflicting requirements.) 3 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department a) True. b) False. Answer: b 16. Requirements consistency means that the requirements have no conflicts in the descriptions of the system facilities. a) True. b) False. Answer: a 17. Non-functional requirements may be more critical than functional requirements. a) True. b) False. Answer: a 18. Non-functional requirements can be ignored during the development of the system. (Non-functional requirements are crucial for system quality and cannot be ignored.) a) True. b) False. Answer: b 19. A goal is a statement using some measure that can be objectively tested. (A goal is often broader and may not be directly measurable; an objective is measurable.) a) True. b) False. Answer: b 20. Closed interviews depend on predetermined list of questions. a) True. b) False. 4 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Answer: a 21. Open interviews depend on predetermined list of questions. (Open interviews are more flexible and do not strictly follow a predetermined list.) c) True. d) False. Answer: b 22. Real-time systems are often event-driven, with minimal data processing. a) True. b) False. Answer: a 23. Event-driven modeling shows how a system responds to external and internal events. a) True. b) False. Answer: a 24. Data-driven system are controlled by the data input to the system, with relatively little external event processing. a) True. b) False. Answer: a 25. Class diagram is a static structural model that shows the object classes in the system and the associations between these classes. a) True. b) False. Answer: a 26. Testing can reveal the presence of errors NOT their absence. 5 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department a) True. b) False. Answer: a 27. In validation testing, the test cases are designed to expose errors. (Validation testing is designed to show that the system meets its requirements.) a) True. b) False. Answer: b 28. Defect testing demonstrates to the developer and the system customer that the software meets its requirements. (Defect testing aims to find faults, not demonstrate requirements satisfaction.) a) True. b) False. Answer: b 29. Software inspection is a dynamic verification process. (Software inspection is a static verification process.) a) True. b) False. Answer: b 30. Inspections and testing are complementary verification techniques. a) True. b) False. Answer: a 6 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 31. Inspections can check non-functional characteristics such as performance, usability, etc. (Inspections are generally focused on code quality, correctness, and adherence to standards rather than non-functional characteristics.) a) True. b) False. Answer: b 7 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Multiple Choice Questions 1. …….. is concerned with theories, methods, and tools for professional software development. a) Software engineering. b) System engineering. c) Computer science. d) None of the mentioned. Answer: a 2. Good software should be ……... a) Maintainable. b) Dependable. c) Usable. d) All the mentioned. Answer: d 3. Software failure reasons include ……. a) Increasing system complexity. b) Using software engineering tools. c) Inefficient use of software engineering tools. d) a & c. Answer: d 4. The fundamental software engineering activities include ……. a) Software specification. b) Software development. c) Software validation. d) All the mentioned. Answer: d 8 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 5. …….. is a software engineering activity where the software is modified to reflect changing customer and market requirements. a) Software specification. b) Software development. c) Software validation. d) Software evolution. Answer: d 6. ……. is a software that is commissioned by a specific customer to meet their own needs. a) Generic Product. b) Customized Product. c) a & b. d) None of the mentioned. Answer: b 7. ……. are application systems that run on a local computer, such as a PC. a) Stand-alone applications. b) Interactive transaction-based applications. c) Embedded control systems. d) Data collection systems. Answer: a 8. ……. are software control systems that control and manage hardware devices. a) Stand-alone applications. b) Interactive transaction-based applications. c) Embedded control systems. d) Data collection systems. Answer: c 9. …….. software means that it should not cause physical or economic damage when s system failure occurs. a) Maintainable. b) Dependable. c) Efficient. 9 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Acceptable. Answer: b 10. …….. software means that it should not make wasteful use of system resources such as memory and processor cycles. a) Maintainable. b) Dependable. c) Efficient. d) Acceptable. Answer: c 11. Issues of professional responsibility of the software engineer include ……. a) Confidentiality. b) Competence. c) Preserving the intellectual property rights. d) All the mentioned. Answer: d 12. Software process models include ……. model. a) The waterfall. b) Incremental development. c) Integration and configuration. d) All the mentioned. Answer: d 13. In …….... model, reused elements may be configured to adapt their behavior and functionality to a user’s requirements. a) The waterfall. b) Incremental development. c) Integration and configuration. d) All the mentioned. Answer: c 14. …...... requirements are statements in natural language plus diagrams of the services the system provides and its operational constraints. a) User. b) System. c) Functional. 10 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Non-functional. Answer: a 15. …...... requirements is a structured document setting out detailed descriptions of the system’s functions, services and operational constraints. a) User. b) System. c) Functional. d) Non-functional. Answer: b 16. Any person or organization who is affected by the system in some way and so who has a legitimate interest is called a/an…..... a) End user. b) System Manager. c) Product owner. d) Stakeholder. Answer: d 17. ….... requirements are constraints on the system from the domain of operation. a) Domain. b) System. c) Functional. d) Non-functional. Answer: a 18. …........ requirements are constraints on the services or functions offered by the system such as timing constraints, constraints on the development process, standards, etc. a) Domain. b) System. c) Functional. d) Non-functional. Answer: d 19. …...... requirements may affect the overall architecture of a system rather than the individual components. a) Domain. b) System. c) Functional. 11 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Non-functional. Answer: d 20. In …........, software engineers work with a range of system stakeholders to find out about the application domain, the services that the system should provide, the required system performance, hardware constraints, etc. a) Requirements elicitation. b) Requirements analysis. c) Requirements validation. d) Requirements management. Answer: a 21. Which one of the following is not a step of requirement engineering? a) Requirements elicitation. b) Requirements design. c) Requirements analysis. d) Requirements specification. Answer: b 22. Which of the following is good for getting requirements that are derived from the way that people actually work? a) Interview. b) Use cases. c) Ethnography. d) Test cases. Answer: c 23. Requirements elicitation techniques are …... a) Reviews, Prototyping, and test-case generation. b) Interviews, Ethnography, and Scenarios. c) Interviews, Prototyping, and Test-case generation. d) Reviews, Use cases, and Prototyping. Answer: b 24. ….... is an observational technique that can be used to understand operational processes. a) Use cases. b) Stories. c) Ethnography. 12 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Interviews. Answer: c 25. ….... is a real-life example of how a system can be used. a) Interview. b) Scenario. c) Test case. d) Use case. Answer: b 26. ….... is a structured form of user story. a) Template. b) Scenario. c) Test case. d) Use case. Answer: b 27. ….... is the process of writing down the user and system requirements in a requirements document. a) Requirements elicitation. b) Requirements analysis. c) Requirements validation. d) Requirements specification. Answer: d 28. ….... is an approach to write the requirements where the freedom of the requirements' writer is limited and the requirements are written in a standard way. a) Natural language. b) Structured natural language. c) Design description languages. d) Graphical notations. Answer: b 29......... is an approach to write the requirements using a language that looks like programming languages. a) Natural language. b) Structured natural language. c) Design description languages. 13 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Graphical notations. Answer: c 30. …..... is a problem of using natural language to write the requirements where several different requirements may be expressed together. a) Requirements amalgamation. b) Requirements confusion. c) Requirements inconsistency. d) Lack of clarity. Answer: a 31. …….. is a part of the software requirements document that defines the expected readership of the document and describes its version history. a) Introduction. b) Glossary. c) Index. d) Preface. Answer: d 32. …..... is a part of the software requirements document that defines the technical terms used in the document. a) Introduction. b) Glossary. c) Index. d) Preface. Answer: b 33. …..... is concerned with demonstrating that the requirements define the system that the customer really wants. a) Requirements elicitation. b) Requirements analysis. c) Requirements validation. d) Requirements specification. Answer: c 34. ……... makes sure whether the requirements can be implemented given available budget and technology. a) Validity checking. b) Consistency checking. c) Realism checking. 14 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Verifiability checking. Answer: c 35. ……... makes sure whether the requirements can be tested. a) Validity checking. b) Consistency checking. c) Realism checking. d) Verifiability checking. Answer: d 36. ……... makes sure whether the system provides the functions which best support the customer’s needs. a) Validity checking. b) Consistency checking. c) Realism checking. d) Verifiability checking. Answer: a 37. …...... is a requirement validation in which systematic manual analysis of the requirements is done. a) Requirements reviews. b) Test case generation. c) Scenarios. d) Requirements specification. Answer: a 38. …...... is requirements review check which attempts to answer the question "Is the requirement realistically testable?". a) Verifiability. b) Comprehensibility. c) Traceability. d) Adaptability. Answer: a 39. …...... is requirements review check which attempts to answer the question "Is the requirement properly understood?". a) Verifiability. b) Comprehensibility. c) Traceability. 15 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Adaptability. Answer: b 40. …...... is requirements review check which attempts to answer the question "Is the origin of the requirement clearly stated?". a) Verifiability. b) Comprehensibility. c) Traceability. d) Adaptability. Answer: c 41. …...... is requirements review check which attempts to answer the question "Can the requirement be changed without a large impact on other requirements?". a) Verifiability. b) Comprehensibility. c) Traceability. d) Adaptability. Answer: d 42. …..... is the process of managing changing requirements during the requirements engineering process and system development. a) Requirements elicitation. b) Requirements analysis. c) Requirements validation. d) Requirements management. Answer: d 43. …..... diagrams show the interactions between a system and its environment. a) Use case. b) Sequence. c) Class. d) State. Answer: a 44. …..... diagrams show interactions between actors and the system and between system components. a) Use case. b) Sequence. c) Class. 16 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) State. Answer: b 45. …..... diagrams show how the system reacts to internal and external events. a) Use case. b) Sequence. c) Class. d) State. Answer: d 46. …..... shows what lies outside the system boundaries. a) Context model. b) Architectural model. c) Sequence model. d) State model. Answer: a 47. ….... show the system and its relationship with other systems. a) Context model. b) Architectural model. c) Sequence model. d) State model. Answer: b 48. …..... allows us to infer that different members of the classes have some common characteristics. a) Generalization. b) Association. c) Aggregation. d) None of the mentioned. Answer: a 49. …..... is a class relationship that can be described as "kind of" or "is a" relationship. a) Generalization. b) Association. c) Aggregation. d) None of the mentioned. 17 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Answer: a 50. ……... shows how classes are composed of other classes. a) Generalization. b) Association. c) Aggregation. d) None of the mentioned. Answer: c 51. Testing is intended to ……... a) Show that a program does what it is intended to do. b) Discover program defects before it is put into use. c) a & b. d) None of the mentioned. Answer: c 52. Checking "Are we building the product right” is the main concern of the ……. process a) Validation. b) Verification. c) a & b. d) None of the mentioned. Answer: b 53. Checking "Are we building the right product” is the main concern of the ……. process a) Validation. b) Verification. c) a & b. d) None of the mentioned. Answer: a 54. The level of confidence that should be established in a certain software depends on ……... a) Software purpose. b) User expectations. c) Marketing environment. d) All the mentioned. 18 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Answer: d 55. ……… concerned with analysis of the static system representation to discover problems. a) Software testing. b) Software inspections. c) a & b. d) None of the mentioned. Answer: b 56. ………. is conducted by a separate testing team who tests a complete version of the system before it is delivered to users. a) Development testing. b) Release testing. c) User testing. d) All the mentioned. Answer: b 57. Which of the following is conducted by the development team? a) Unit testing. b) Component testing. c) System testing. d) All the mentioned. Answer: d 58. …….. is the process of testing individual components in isolation. a) Unit testing. b) Component testing. c) System testing. d) All the mentioned. Answer: a 59. …….. identifies groups of inputs that have common characteristics and should be processed in the same way. a) Unit testing. b) Component testing. c) System testing. 19 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department d) Partition testing. Answer: d 60. ………. focus on showing that the component interface behaves according to its specification. a) Unit testing. b) Component testing. c) System testing. d) Partition testing. Answer: b 20 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department Essay Questions 1. List the essential attributes of good software. Answer: o Maintainability o Dependability and security o Efficiency o Acceptability 2. Differentiate between the following terms: o Generic and customized products. o Plan-Driven Processes and Agile Process. o User Requirements and System Requirements. o Functional and Non-functional Requirements. o Requirements Completeness and Requirement Consistency. o Validation Testing and Defect Testing. Answer:  Generic products ▪ Stand-alone systems that are marketed and sold to any customer who wishes to buy them. ▪ Examples – PC software such as graphics programs, project management tools; CAD software; software for specific markets such as appointments systems for dentists.  Customized products ▪ Software that is commissioned by a specific customer to meet their own needs. ▪ Examples – embedded control systems, air traffic control software, traffic monitoring systems. 21 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department ---------------------------  Plan-driven processes are processes where all the process activities are planned in advance and progress is measured against this plan.  Agile processes, planning is incremental and it is easier to change the process to reflect changing customer requirements. ---------------------------  User requirements ▪ Statements in natural language plus diagrams of the services the system provides and its operational constraints. ▪ Written for customers.  System requirements ▪ A structured document setting out detailed descriptions of the system’s functions, services and operational constraints. ▪ Defines what should be implemented so may be part of a contract between client and contractor. ---------------------------  Requirements Completeness ▪ They should include descriptions of all facilities required.  Requirements Consistency ▪ There should be no conflicts or contradictions in the descriptions of the system facilities. ---------------------------  Validation Testing ▪ To demonstrate to the developer and the system customer that the software meets its requirements.  Defect Testing ▪ To discover faults or defects in the software where its behavior is incorrect or not in conformance with its specification. 22 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 3. List and explain the common software process activities. Answer: 1. Software specification, where customers and engineers define the software that is to be produced and the constraints on its operation. 2. Software development, where the software is designed and programmed. 3. Software validation, where the software is checked to ensure that it is what the customer requires. 4. Software evolution, where the software is modified to reflect changing customer and market requirements. 4. List and briefly describe the different software process models. Answer:  The waterfall model ▪ Plan-driven model. ▪ Separate and distinct phases of specification and development.  Incremental development ▪ Specification, development and validation are interleaved. ▪ May be plan-driven or agile.  Integration and configuration ▪ The system is assembled from existing configurable components. ▪ May be plan-driven or agile. 5. List and briefly explain the problems of requirements elicitation. o Stakeholders don’t know what they really want. o Stakeholders express requirements in their own terms. o Different stakeholders may have conflicting requirements. o Organisational and political factors may influence the system requirements. o The requirements change during the analysis process. 23 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 6. List the different application types (Hint: At least 6 types). Answer: o Stand-alone applications o Interactive transaction-based applications o Embedded control systems o Batch processing systems o Entertainment systems o Systems for modelling and simulation o Data collection systems o Systems of systems 7. Draw the block diagram of the waterfall model. Answer: 24 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 8. Draw the block diagram of the incremental development model. Answer: 9. Draw the block diagram of the reuse-oriented software engineering. Answer: 25 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 10. Draw the general model of the design process. Answer: 11. What are the different benefits of incremental development? Answer: o The cost of accommodating changing customer requirements is reduced. o It is easier to get customer feedback on the development work that has been done. o More rapid delivery and deployment of useful software to the customer is possible. 12. Draw the block diagram of inspection and testing process. Answer: 26 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 13. Draw the block diagram of the requirements elicitation and analysis process. 14. List and briefly explain the problems of using the natural language in requirements specification. Answer: o Lack of clarity: Precision is difficult without making the document difficult to read. o Requirements confusion: Functional and non-functional requirements tend to be mixed-up. o Requirements amalgamation: Several different requirements may be expressed together. 15. List the different activities of requirements engineering process. Answer: o Requirements elicitation. 27 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department o Requirements analysis. o Requirements validation. o Requirements management. 16. Compare between the release testing and system testing. Answer: Release Testing System Testing Performed by a separate testing team. Performed by the development team. A black-box process. A white-box process. Checks that the system meets its Focuses on discovering bugs in the system requirements and is good enough for (defect testing). external use (validation testing). 17. List and explain the different system perspectives. Answer: 1. An external perspective, where you model the context or environment of the system. 2. An interaction perspective, where you model the interactions between a system and its environment, or between the components of a system. 3. A structural perspective, where you model the organization of a system or the structure of the data that is processed by the system. 4. A behavioral perspective, where you model the dynamic behavior of the system and how it responds to events. 28 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 18. An automated teller machine (ATM) or the automatic banking machine (ABM) is a banking subsystem (subject) that provides bank customers with access to financial transactions in a public space without the need for a cashier, clerk, or bank teller. In addition, ATM Technician provides Maintenance and Repairs. All these use cases also involve Bank whether it is related to customer transactions or to the ATM servicing. Given the above description, draw the use case model for this subsystem. Answer: 29 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 19. A railway reservation system in which the traveller can check the availability of the ticket, pay fare amount, book a ticket, fill the requied information, and cancel a ticket. In addition, the clerck can cancel a ticket including refunding the money. Given the above description, draw the use case model for this system. Answer: 30 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 20. Draw the class diagram for the following scenario: o In a university there are different classrooms, offices, and departments. A department has a name, and it contains many offices. A person working at the university has a unique ID and can be a professor or an employee. o A professor can be a full, associate, or assistant professor and he/she is enrolled in one department. o Offices and classrooms have a number ID, and a classroom has a number of seats. 31 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department o Every employee works in an office. Answer: 21. Draw the class diagram for an order system in which the customer can make orders and pay using different payment methods including cash, check, and credit cards. Answer: 32 Kingdom of Saudi Arabia Ministry of Higher Education CSC 206: Software Engineering Arab East Colleges Tutorial One Computer Department 33

Use Quizgecko on...
Browser
Browser