CS706 Assignment 2 Solution and Discussion


  • Cyberian's Gold

    Assignment No. 02
    SEMESTER Fall 2019

    CS706 – Software Quality Assurance

    Due Date: December 05, 2019

    Instructions to Solve Assignments

    The purpose of assignments is to provide you with application-oriented exercise to strength the concepts. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.

    • Cheating from any source will result in zero marks in the assignment.
    • In case of cheating from any other student, both students will be awarded “F” grade in the course.
    • In case of question No. 03 direct copy and paste from the research paper will be awarded zero marks.
    • No assignment after due date will be accepted.

    Question No. 1 [Marks 21]
    You have studied different types of cohesion e.g. procedural cohesion, temporal cohesion, communicational cohesion etc. In the table below you are given Different code snippets, some details are also given against each code piece. You are required to identify and mention the type of cohesion each of these code snippets represents:
    ea56fdcd-0ec9-4d80-b92a-be3445b16767-image.png1bfdb614-c0e6-4a41-8410-08fee3762492-image.png

    Question No. 2 [Marks 09]
    Given below is pseudo code of a “BankAccount” Module. You are required to identify the issue(s) with this module (from quality perspective). Justify you answer with solid reasons.

    Class BankAccount {
    Public String AccountNo;
    Public String AccountType
    Public Float AccountBalance;
    Private OpenCurrentAccount() {
    }
    Private UpdateCurrentAccount() {
    }
    Private CloseCurrentAccount() {
    }
    Private OpenSavingAccount() {
    }
    Private UpdateSavingAccount() {
    }
    CloseSavingAccount() {
    }
    } // Comment: End of Class
    

    Description: Module contains three public/global data members to store different contents of information about a bank account. Module also has different private/local functions to perform different types of operations. Furthermore, module can handle two types of accounts which are current accounts and saving accounts.

    Question No. 3 [Marks 20]
    Read the paper titled “Continuous Code Quality: Are We (Really) Doing That?” attached with this assignment and answer the following questions:

    1. Provide a brief summary of the paper (less than or equal to 250 words)
    2. Provide critical review (i.e. strengths and weaknesses of the paper)


Quiz 100% Result
| |