Thursday, 23 November 2017


Software Engineering-II

Solved paper Section-B

Q4: Differentiate between LOC and FP?
A: Loc and FP both are used for measurement of program size. Line Of Code is used to measure the size of program by counting the Lines of Source code of the Program. Where Functional point used to measure the functional size.

Q5: Give solid reason for the actual benefits of documentation?
A:  Documentation is an important part of Software Engineering. It is a viable part of Software Development process and without it, it is hard to maintain any project and the developers have to re-invent the wheel.

Q6: When you feel that client don’t knot about their business environment in requirements gathering process. Which SDLC model you will preferred and why?
A: Agile SDLC will be preferred in this situation becuase;
     Customer satisfaction by rapid, continues delivery of useful software.
     Peoples and interactions are emphasized rather than process and tools.
     face to face communication and late requirements are welcome.

Q7: How extreme programming works for any given case of software development?
A: Extreme programming works in given case simply by placing two peoples together to work more faster than one person to overcome mistakes and errors. So in less time product is produced faster.

Q8: Is it possible that we can find the direct effort from FP analysis. If not give reason.
A: Yes this possible to find direct effort from functional points analysis as compare to other approach generation 2 that is known as COSMIC. That means it is worth to migrate from 1st generation method to 2nd generation.

Q9: Following are the partial requirements written for a module “Online Banking debate  crad activation” of xyz marketing system.
The requirements listed above are a part of specification document. We want to calculate the lack of ambiguity for the requirements listed above in the “ Online Buying” module. The result will help us in gathering the data for maintaining the metrics for specification quality.
You have to analyze these requirements and then you have to find the value for lack of ambiguity in these requirements. For this you also have to mention the functional, Non-functional, total and ambiguous requirements in the given set of requirements.

Req-01 System shall allow user to enter 5 digit pin code number
Req-02 System shall allow user to enter national id card no
Req-03 System shall allow user to select type of user (current, pls and administrator) from combo
Req-04 System should have good user interface
Req-05 System should be user friendly
Req-06 System should be able to perform operations efficiently
Req-07 System shall confirm activation after getting correct info

Metrics for specification quality,
 Software Requirements proposed by Davis in 1993
1. Functional requirements
2. Non-Functional requirements
Total Requirements (nr)= Functional req(nf) + Non-functional req(nnf)
Lack of ambiguity in requirements is calculated as;
Q = nui (ui = non-func req) / ur

Now calculate the un-ambiguity as follow;
check above table that how many are functional and non functional requirements in specification listed.

Req-01 (Functional) System shall allow user to enter 5 digit pin code number
Req-02 (Functional) System shall allow user to enter national id card no
Req-03 (Functional) System shall allow user to select type of user (current, pls & administrator)                                            from combo
Req-04 (Non-Fun)         System should have good user interface
Req-05 (Non-fun)         System should be user friendly
Req-06 (Non-fun)         System should be able to perform operations efficiently
Req-07 (Functional) System shall confirm activation after getting correct info

we  have Function req= 4, Non functional req= 3
Total Req= 4 ( Func_Req ) + 3 ( Non-Func_req)
Total Req= 7
Find Un-ambiguous efficiency:
Q = Non-Func_Req / Total Req
Q = 3 / 7
Q = .42%  (Un-ambiguous)

Q10: You are required to do functional point Analysis for these ease study given below.
This is real world example of FP Analysis. This will give you hand on experience of performing FP Analysis.
In the assignment you were provided with Library Information and Management system (LIMS). Consider only three tables from the same software (LIMS) named new_acc_no, Member and IssueHis.
1.  Newaccno: newacc keeps the record of books with all the details like title, Accession+, Author, Subauthor etx. max=40
2.  Member: member holds the data of the person who holds library membership Max=35
3.  IssueHis: This table holds the data of the books being issued. Max=14
The following operations are being performed on this system:

  • Add a book (with all it's details)
  • Delete the record of a book
  • Add a new member in the system
  • Generate a membership card for the library member
  • Generate a report that shows the number of books issued between two given dates
For this problem to do following:
a) Identify all ILF's, EIF's, DET's, EI's, EO's, and EQ's and calculate their complexities.
Calculate the understand FP count for the application.
Following support material for the problem.


1 - 45 - 15> 16
> 2AverageHighHigh

1 - 56 - 19> 20
2 - 3LowAverageHigh
> 3AverageHighHigh


1 - 1920-50> 51
> 5AverageHighHigh

FP contribution of different Analysis Components

Add bookYesNoNoEI
Del bookYesNoNoEI
Add memYesNoNoEI
Gen_Card    YesNoYesEO
Book IssuedNoNoNoEQ

Complexities of the Functional POint Analysis
Transaction          FTR      DET Complexity  FP
Add bookEIbook>16Avg4
Del bookEIbook>16Avg4
Add memEImember>16Avg4

Gen_Card    EOmem. Lib>20high6
Book IssuedEQlib,mem,book>20high5

From above given tables we find Functional Points:FP= ILF + EIF + EI +EO+ EQ
FP= ILF + EIF + 23
FP= ILF +   0   + 23

FP= 3*7 +   0   + 23
FP= 21   +   0   + 23
FP= 44% out of 100%

You can also download Word file solution copy for more clearance , click

23-nov-2017                                                          ALL-RIGHTS-RESERVED  ©DANIYALYOUNIS

Tuesday, 21 November 2017

Visual Basic

Chapter-1 checkpoints:

  1. List five major hardware components of a computer system.
  2.  The CPU, main memory, secondary storage devices, input devices, output devises. 
  1. What is main memory? What is its purpose? 
  2. Main memory is the computers work area. This is where the computer stores a program while the program is running, as well as the data that the program is working withRAM is volatile type memory. Temporary storage 
  1. Explain why computers have both main memory and secondary storage. 
  2.  Main memory does not save information as secondary storage does. 
  1. What are two general categories of software?
  2.  Operating systems and application software. Operating system is a set of programs that manages the computers hardware devices and control their processes. Applications of ware refers to programs that make the computer useful to the user.  
  1. What is an algorithm? 
  2. An algorithm is a set of well defined steps for performing a task or solving a problem 
  1. Why were computer programming languages invented? 
  2. They were invented to ease the task. They use words instead of numbers. 
  1. What is an object? What is a control?  
  2. An object is an item in a program that contains data and has the ability to perform operations . The data that an object contains is referred to as properties or attributes. A control is a specific type of object that usually appears in a programs graphical user interface. 
  1. What does event -driven mean? 
  2. An event is an action that takes place within a program , such as clicking of a control. If you wish for a control to respond to a specific event , you must write a set of programming statements known as event handler 
  1. What is a property? 
  2. A property is simply a piece of data that determines some characteristics of the control. 
  1. Why should the programmer change the name of a control from its default name? 
  2. Controls play an active role in the applications event handlers and their names appear in the applications programming statements. 
  1. If a control has the programmer -defined name txtRadius  what type of control is it? 
  2. Text box 
  1. What is the default name given to the first Text box control created in an application? 
  2. Text box 
  1. Is txtFirst+Lastname an acceptable control name? Why or why not?   
  2. The first three letters of the name should be a lowercase prefix indicating the controls type. The first letter of each word should be capitalized.  The part of the control name that appears after the three-letter prefix should describe the controls purpose in the application 
  1. What four items should be identified when defining what a program is to do? 
  2. Clearly define what the application is to do. Purpose , Input, Process , Output 
  1. Describe the importance of good planning in the process of creating a Visual Basic application. 
  1. Clearly define what the application is to do. 
  1. Visualize the application running on the computer and design it’s user interface. 
  1. Determine the controls needed 
  1. Define the values of each controls relevant properties 
  1. Determine the event handlers and other code needed for each control  
  1. Create a flowchart or pseudo code version of the code 
  1. Check the flowchart or pseudo code for errors  
  1. Start Visual Studio and create the forms and other controls identified in step 3 
  1. Use the flowcharts or pseudo code version of the code  
  1. Check the flowchart or pseudo code for errors 
  1. Start Visual Studio and create the forms and other controls identified in Step 3 
  1. Attempt to run the application  Correct  any syntax errors found and repeat this step as many times necessary 
  1. Once all syntax errors are corrected , run the program with test data for input. Correct any runtime errors. Repeat this step as many times as necessary. 
  1. What does it mean to visualize a program running?
  2. What is the value of such an activity? To create it in your mind,  to imagine what the screen will look like and sketch the former or forms in the application 
  1. What is a flowchart?  
  2. A flowchart is a diagram that graphically depicts the flow of a method. It uses boxes and other symbols to represent each step. 
  1. What is pseudocode
  2. Pseudocode is human readable code that looks similar to programming language. 
  1. What is runtime error? 
  2. Runtime errors are mistakes that do not prevent an application from executing but cause it to produce incorrect results 
  1. What is the purpose of testing a program with sample data or input? 
  2. This step must be repeated until the program reliably produces satisfactory results. 
  1. How much testing should you perform on a new program? 
  2. Until the program reliably produces satisfactory results 
  1. Briefly describe the purpose of the Solution Explorer window. 
  2. The Solution Explorer Window is a container for holding Visual Basic projects. When you create a new VA project a new solution is automatically created to contain it. The Solution Explorer window allows you to navigate among the files in a visual Basic project 
  1. Briefly describe the purpose of the Properties window. 
  2. When you are creating a Visual Basic application you use the properties window to examine and change a controls properties 
  1. What is the difference between the too bar and the toolbox? 
  2. The toolbox is a window that allows you to select the controls that you want to use in an applications user interface. 
  1. Toolbox is a window that allows you to select the controls that you want to use in an applications user interface. A toolbar contains buttons that execute frequently used commands 
  1. What is a Tool tip?
  2.  A tool tip is a small rectangular box that pops up when you hover the mouse pointer over a button on the toolbar or in the toolbox for a few seconds. It contains a short description of the buttons purpose 

created at 21-Nov-2017                   ALL RIGHTS RESERVED ©DaniyalYounis