You are on page 1of 7

Assignment No.

02

SEMESTER SPRING 2019

CS706 – Software Quality Assurance

Due Date:June10, 2019

Instructions to Solve Assignments

The purpose of assignments is 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. 02 direct copy and paste from the research paper will be awarded zero
marks.
 No assignment after due date will be accepted.

I have need 80 marks in this subject. Please help me. This is my last 8 semester last
chance of degree.
Question No. 1 (a)
Consider the following two modules named “Assignment Module” and “MDB Module” taken
from design of LMS of Virtual University of Pakistan. The tasks performed by each module are
given in the form of the functions.Keeping in mind the quality issues adhered to “Software
Design”, highlight the main issues with the design of these modules. Also provide a better
design.
Assignment Module:
SubmitAssignment()
DeclareResult()
CheckResult()
Login()
Logout()
CheckUserAuthenticationLevel()

Answer:

Assignment Module:

Assignment module lets student/instructor interact for assignment related tasks. Students and
instructors can perform all the assignment related assigned activities through this module e.g. students
can download assignment file, upload their solution, check their marks, see comments etc. Instructors
on the other hand can upload assignment files, marked solutions, comments etc.

 Administrator Logged the system. If the user name and password is no valid then a
message will show that user does not exist or password might be wrong.
 No assignment does not submit. Quality issue
 Due to slow internet speed problem.
 Less marks problem in academic research paper.
 Link down on VULMS. issue
 Open the page and type User ID and Password then click Log – In button.
 If any text box filed is empty then the validation control return errors.
 Administrator, and Student successfully access account.
 Login successfully or pass
 User does logout of VULMS

Step 1:
 Open web browser and enter vulms.vu.edu.pk
 Enter your roll number as student ID and password given to you at the time of
admission

Step 2:
 After successfully login to VULMS, you can see your courses in this
semester.
 Click the Assignment tab of the course which has a notification of

Step 3:
 Now click the 'Submit' button
 new assignment

Step 4:
 Click the 'Browse' button and select the file from your computer's
local drive(s)

Step 5:
 After selecting the file, finally, click the 'Submit it' button to submit
the file. Then a message 'Assignment Submitted Successfully' will
shown.

MDB Module
SubmitStudentMDB()
SubmitOtherStudentComments()
UpdateSudentMDB()
CheckStudentBlockStatus()
GetStudentEmail()
GetStudentCellNo()
SendEmail()
SendMessage()

Answer:
Main quality issue
Get Student Email

Get Student Cell No

Send Email

MDB Module

Moderated Discussion Board (MDB) is another module in VULMS that lets students and instructors
interact with each other for all the students’ academic queries. Students can ask any question through
MDB where teacher can reply the questions. A student can post as many questions in MDB of each
lesson.

SubmitOtherStudentComments() SendMessage()

 Due to link down student or instructor can’t send message from MDB.

UpdateSudentMDB()

After close MDB, student can’t message about of topic.

CheckStudentBlockStatus()

Step 1:

1. Open web browser and enter vulms.vu.edu.pk


2. Enter your roll number as student ID and password given to you at the time of admission

Step 2:

After successfully login to VULMS, you can see the courses you have in this semester
Click the MDB tab of this course.

Step 3:

Now you click 'View' link to post a query against a lecture.


Step 4:

Now click "Post Message" button to post a question.

Step 5:

After selecting "Post Message", a window will open where you post your question.
Question No. 1 (b)
Consider the following piece of code and identify the quality issues with it. Please ignore the
logical and syntatic errors
Line-1 integer b;
Line-2 integer n;
Line-3 integer main() {
Line-4 b=0;
Line-5 while (b NOT-EQUAL-TO 1) {
Line-6 Display "Enter no.";
Line-7 User-Input(n);
Line-8 b=MyFunction(n);
Line-9 if(b IS-EQUAL-TO 0)
Line-10 Display "Nnumber is Prime";
Line-11 else
Line-12 Display "Nunmber is not Prime"

Line-13 Display"Want to Exit (1/0)";


Line-14 User-Input (b);
Line-15 }
Line-16 }

Line-17 integer MyFunction(integer n)


Line-18 {
Line-19 integer i,b = 0;
Line-20 i=2;
Line-21 for(i = 2; i LESS-THAN-OR-EQUAL-TO(n/2);)
Line-22 {
Line-23 if((nMODULUSi) IS-EQUAL-TO 0)
Line-24 {
Line-25 b = 1;
Line-26 break;
Line-27 }
Line-28 i=i+1;
Line-29 }
Line-30 return b;
Line-31 }

Some necessary information aout the code is given below:


Line-1 and 2 declare two integer variables. Note that both of them have global scope
Line-3 declares Main function from where execution starts.
Line-5 defines a while-loop
Line-6 display the message “Enter no” on the user screen.
Line-7 takes input from user and stores it in variable “n”.
Line-8 calls a function named “Myfunction”
Line-9 cheks value of variable “b” if it is equal to zero then the message “Number is Prime” is
displayed on screen else “Number is not Prime” is diaplayed.
Line-13 displays message “Want to Exit(1/0)” on screen
Line-14 takes user input.
Line-17 defines a function named “MyFunction”. Function takes an integer as input and returns
an integer as output.
Line-21 defines a for-loop. For-loop runs upto halof of the value of “n”.
Line-23 defines an if-condition to check if the number is prime or not. First it takes modulus of
number and then checks if it is zero or not.
Line-28 increments loop variable “i” by “1” at each iteration
Line-30 the value of the variable “b” is returned.

Answer:
 Line 1 and 2 variable declaration without initializing
 No comment is used
 No indentation is used
 Function must be declared before their they are defined
 Before For loop , if codition and while are not used pre and post codition
 Not Exception handling
 Type mismatch
 No protyping
 Zero (0) and 1 are not considered as prime numbers.

Question no. 2
Please read the paper titled “Requirements of Software Quality Assurance Model” given with
this assignment folder and answer the following:
 Provide a to-the-point summary (not more than 250 words)
 Perform critical analysis of the paper and mention its strengths and weaknesses.

You might also like