Example: confidence

UNIVERSITI TEKNOLOGI MALAYSIA - comp.utm.my

1 SUBJECT CODE : SCSJ 2203 SUBJECT NAME : SOFTWARE ENGINEERING SECTION : 2 SCSJ, 2 SCSR, 2 SCSD, 2 SCSB, 2 SCSV TIME : 3 HOURS DATE/DAY : VENUES : INSTRUCTIONS : SECTION A : 20 TRUE/FALSE QUESTIONS (20 MARKS) SECTION B : 4 STRUCTURED QUESTIONS (40 MARKS) SECTION C : 2 ESSAY QUESTIONS (40 MARKS) TOTAL (100 MARKS) PLEASE ANSWER ALL QUESTIONS IN THE BOOKLET. (Please Write Your Lecturer Name And Section In Your Answer Booklet) SULIT UNIVERSITI TEKNOLOGI MALAYSIA FINAL EXAMINATION SEMESTER II , 2014 / 2015 Faculty of Computing 2 Name I/C No. Year / Course Section Lecturer Name This questions paper consists of 8 printed pages including this page. SECTION A: TRUE/FALSE [20 marks] Instruction: Determine whether the following statements are TRUE [T] or FALSE [F].

UNIVERSITI TEKNOLOGI MALAYSIA FINAL EXAMINATION SEMESTER II , 2014 / 2015 Faculty of Computing. 2 Name I/C No. ... Year / Course Section Lecturer Name This questions paper consists of 8 printed pages including this page. SECTION A: TRUE/FALSE [20 marks] Instruction: Determine whether the following statements are TRUE [T] or FALSE [F].

Tags:

  Paper, Malaysia, Universiti, Teknologi, Universiti teknologi malaysia

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of UNIVERSITI TEKNOLOGI MALAYSIA - comp.utm.my

1 1 SUBJECT CODE : SCSJ 2203 SUBJECT NAME : SOFTWARE ENGINEERING SECTION : 2 SCSJ, 2 SCSR, 2 SCSD, 2 SCSB, 2 SCSV TIME : 3 HOURS DATE/DAY : VENUES : INSTRUCTIONS : SECTION A : 20 TRUE/FALSE QUESTIONS (20 MARKS) SECTION B : 4 STRUCTURED QUESTIONS (40 MARKS) SECTION C : 2 ESSAY QUESTIONS (40 MARKS) TOTAL (100 MARKS) PLEASE ANSWER ALL QUESTIONS IN THE BOOKLET. (Please Write Your Lecturer Name And Section In Your Answer Booklet) SULIT UNIVERSITI TEKNOLOGI MALAYSIA FINAL EXAMINATION SEMESTER II , 2014 / 2015 Faculty of Computing 2 Name I/C No. Year / Course Section Lecturer Name This questions paper consists of 8 printed pages including this page. SECTION A: TRUE/FALSE [20 marks] Instruction: Determine whether the following statements are TRUE [T] or FALSE [F].

2 1. The software architecture is the fundamental framework for structuring the system where the system performance, security and availability are influenced by the architecture used. 2. There are two major components of client-server model: a set of servers and a set of clients. 3. In the layered model, each layer provides services to the one inside it and acts as a client to the layer outside. 4. Function-oriented pipelining is suitable for interactive systems. 5. Reference models are derived from a study of the application domain rather than from existing systems. 6. Object-oriented approach combines data and processes into multiple entities called objects. 7. Object-oriented design (OOD) process involves designing object classes and relationship between these classes. 8. Encapsulation separates the implementation of objects behavior from its public interface.

3 9. A package does not promote modularity in software development. F 10. Classes with different properties can be grouped so that their common properties are only defined once. 11. The main objective of system testing is to establish that the system meets its functional and non-functional requirements. 12. White box testing strategy is most suitable in component testing, while black box 3 testing strategy is most suitable in integration testing. 13. Release testing is usually performed using black-box testing, whereby testers do not necessarily have knowledge of the system implementation. 14. Release testing is conducted during system development in order to discover bugs and defects in the system. 15. Equivalence partitioning is a strategy that can be used to reduce the number of test cases by dividing the input domain of a program into classes.

4 16. Validation is where the software should do what the user really requires. 17. Verification and validation in software engineering means that the software should be completely free of defects. 18. Confidence that the software is fit for purpose means that the software must be good enough for satisfying its purpose. 19. Software testing and code inspection are the examples of verification technique. 20. Software inspection technique requires execution of a system, hence, it may be used after software implementation. 4 SECTION B: STRUCTURED QUESTION (Q1-Q4) [40 marks] Question 1 [10 marks] (a) There is a significant overlap between requirements engineering and architectural design processes. Based on the outcomes of requirements specification activities, explain WHY the architectural design activities may be conducted before the requirements specification is completed.

5 [4 marks] (b) Architectural design is a creative process to design the structure and organization of a system by decomposing it to the related sub-systems. Give TWO (2) factors that contribute to the architectural design decisions. [2 marks] (c) Describe how the Layered architectural pattern promotes the separation and independence approach that supports incremental development. [4 marks] Question 2 [10 marks] (a) Discuss the TWO (2) benefits of using an object-oriented analysis approach. Identify ONE (1) application domains where the object-oriented analysis approach does not fit. [4 marks] (b) What is super class (abstraction in class) ? Explain why should we design and implement super classes?

6 Give TWO (2) of their benefits? [6 marks] 5 Question 3 [10 marks] Suppose a buy-online-ticket application for a theme park is selling tickets at prices as shown in Table 1. The application will ask the buyer for his age, and the type of tickets he wants to buy. The application will then identify the required price for the ticket. Ticket Type Age (years) Price (RM) Daily 3-11 110 12-59 140 60-75 110 Annual Pass 10-60 275 Based on the description above, answer the following questions: Rules: Please answer question 3(a) and 3(c) using format in Table 2. Table 2: Equivalence class partitioning (a) Using the Equivalence Class Partitioning technique, derive one test case for each of the classes that you have identified for Daily ticket only. [5 marks] (b) Using the Boundary Value Analysis (BVA) technique, identify the boundary values required to perform a complete coverage for Annual Pass?

7 [3 marks] Equivalence Class Ticket type Age Expected output Table 1: Ticket Rate 6 (c) Based on your answer in (b), provide any TWO (2) appropriate test cases. [2 marks] Question 4 [10 marks] (a) Software testing is very important in software development process. Give TWO (2) main goals of software testing process? [2 marks] (b) Define the following terms: [2 marks] (a) Alpha Testing (b) Beta Testing (c) Integration testing and release testing are two distinct phases in system testing. Give ONE (1) difference between integration testing and release testing. [2 marks] (d) Draw a flow graph for the following code in Figure 1 and calculate the Cyclomatic Complexity. [4 marks] 7 Figure 1: Program code #include <iostream> int main() { int choice, months; double charges; do { displayMenu(); cin >> choice; if (choice >= 1 && choice <= 3) { cout << "For how many months?}}}

8 "; cin >> months; switch (choice) { case 1: charges = months * ; break; case 2: charges = months * ; break; case 3: charges = months * ; } cout << "The total charges are $" << charges << endl; } else if (choice != 4) { cout << "Invalid choice. Please try again.\n"; } } while (choice != 4); return 0; } 8 SECTION C: ESSAY QUESTION (Q1-Q2) [40 marks] Question 1 [20 marks] (a) Based on the above scenario of Online e-Commerce System, create a state-transition diagram for OrderProcessing objects. [10 marks] (b) You are a Software Engineer in the IT department of a car making company. Company has assigned you a task to create class level design of software. The software is needed to simulate the behavior of future automatic cars. The simulation software allows users to command the car (in the simulation) to accelerate to a given miles-per-hour (mph) number.

9 The design of simulation software currently supports two types of cars: regular car and luxury car. The Regular Car has Standard Engine, Standard Wheels, and An order processing object holds FIVE (5) status at a time, namely: i) Processing-order ii) Order-processed iii) Order-cancelled iv) Order-modified v) Money-refunded In an Online e-Commerce System, once a new order is being made by the customer, the initial state of the system is set to the Processing-order state. If an order is confirmed by the customer, the order processing object changes to the Order-processed. The order can be cancelled, as long as the order numbers are more than zero. If the order is cancelled then the state is changed to Order-cancelled. Once the order cancellation is executed, the order processing object is recorded to Money-refunded.

10 The order can be modified, as long as the order numbers are more than 0. If the order is modified then the state is changed to Order-modified. However, if the order is modified then order processing object does NOT change its state to Money-refunded. 9 Standard Seats. The Luxury Car has Luxury Engine, Luxury Wheels, and Luxury Seats. The regular car has the following functions/operations: Start, Stop, and Transmission mode manual. The luxury car has the following functions: Start, Stop, Transmission mode automatic, and Mobilephone-based doors lock. Each car has model name, model number, and color. Based on the case study in (b), create a class diagram to design this software that include the attributes and operations and make sure to show the appropriate relationship between classes, for example, composite relationship, inheritance and/or aggregation relationship.


Related search queries