Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


My Today CS504 paper (VU NIMCS OKARA)

  1. Calculate the cyclomatic complexity? (2 Marks)
  2. What issue can arise if code is written without keep in the portability factor in mind? (2 Marks)
  3. “Repeatable” is one of the quantitative benefits regarding unit test case, what does mean? (2 Marks)
  4. What are the short circuiting operators? (3 Marks)
  5. Discus the symptoms of memory and resource what bug class. (3 Marks)
  6. How user’s requirements are different from functional requirements? (3 Marks)
  7. As a programmer you are instructed to write a portable code in order to increase the usability of the software by your team lead. Which points keep in mind to develop a portable code? (5 Marks)
  8. Make a flow graph from for the below code? (5 Marks)

        Sum=sum+10

        If (sum>100)

        { Grd=0 }

        Else

        { Grd=0}

    9. One Was from DFD . (5 Marks)

 

Views: 1242

Attachments:

Replies to This Discussion

Paper was very easy ,half mcqs were From past papers :) ,,

so best of Luck all of u :)

Heart Hacker thanks for sharing .keep it up 

Attention Related Final Term papers Spring 2013: All Fellows You don’t need to go at any other site for current Final Term papers Spring  2013, Because All discussed data/sharing of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

But Heart Hacker & 

 

Dear Fellows,

All of you are requested, Please post Only One Discussion For Current Assignment/GDB/Online Quiz and everyone reply/share/discussed his/her data on that same discussion, so that all members get solution & discuss easily on Current Assignment/GDB/Online Quiz.

So please don’t post two or more discussions for one Current Assignment/GDB/Online Quiz, hope you’ll understand and cooperate with us.

Already Discussion started for current paper is there..

http://vustudents.ning.com/group/cs504softwareengineeringi/forum/to... 

CS504_Current_Papers_Solved_Questions_

Reply by virus 48 minutes agoDelete

Some solved questions from current papers are given in the file. try to solve the remaing one.

agr aap khud sy solve karty ho to kafi had tak tiari ho jati hy



Read more: cs504 current papers - Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs504-current-papers#ixzz2Z...

Attachments:
  1. Calculate the cyclomatic complexity? (2 Marks)

Cyclomatic Complexity, V(G), for a flow graph G is defined as:

V(G) = E - N + 2

Where E is the number of edges and N is the number of nodes in the flow graph G.

  1. What issue can arise if code is written without keep in the portability factor in mind? (2 Marks)

Many applications need to be ported on to many different platforms. As we have seen, it is pretty hard to write error free, efficient, and maintainable software. So, if a major rework is required to port a program written for one environment to another, it will be probably not come at a low cost. So, we ought to find ways and means by which we can port applications to other platforms with minimum effort. The key to this lies in how we write our program. If we are careful during writing code, we can make it portable. On the other hand if we write code without portability in mind, we may end-up with a code that is extremely hard to port to other environment.

 

  1. “Repeatable” is one of the quantitative benefits regarding unit test case, what does mean? (2 Marks)

 

Repeatable: Unit test cases can be repeated to verify that no unintended side effects have occurred due to some modification in the code.

 

 

  1. What are the short circuiting operators? (3 Marks)

The logical and operator, &&, and logical or operators, ||, are special due to the C/C++

short circuiting rule, i.e. a || b and a && b are short circuit evaluated. That is, logical

expressions are evaluated left to right and evaluation stops as soon as the final truth value

can be determined.

Short-circuiting is a very useful tool. It can be used where one boolean expression can be

placed first to “guard” a potentially unsafe operation in a second boolean expression.

Also, time is saved in evaluation of complex expressions using operators || and &&.

However, a number of issues arise if proper attention is not paid.

  1. Discus the symptoms of memory and resource what bug class. (3 Marks)

system slows down

crashes that occure randomly” over a long period of time

  1. How user’s requirements are different from functional requirements? (3 Marks)

 User Requirements describe the End User’s requirements for a system. Functional Requirements describe what the system must do.

 

  1. As a programmer you are instructed to write a portable code in order to increase the usability of the software by your team lead. Which points keep in mind to develop a portable code? (5 Marks)

 

Many applications need to be ported on to many different platforms. As we have seen, it is pretty hard to write error free, efficient, and maintainable software. So, if a major rework is required to port a program written for one environment to another, it will be probably not come at a low cost. So, we ought to find ways and means by which we can port applications to other platforms with minimum effort. The key to this lies in how we write our program. If we are careful during writing code, we can make it portable. On the other hand if we write code without portability in mind, we may end-up with a code that is extremely hard to port to other environment. Following is brief guideline that can help you in writing portable code. Stick to the standard 1. Use ANSI/ISO standard C++ 2. Instead of using vendor specific language extensions, use STL as much as possible Program in the mainstream Although C++ standard does not require function prototypes, one should always write them. double sqrt(); // old style acceptable by ANSI C double sqrt(double); // ANSI – the right approach Size of data types Sizes of data types cause major portability issues as they vary from one machine to the other so one should be careful with them.

 

unit testing

 

In unit testing, developers test their own code units (modules, classes, etc.) during implementation.

 

Normal and boundary inputs against expected results are tested.

 

 

Thus unit testing is a great way to test an API.

 

 


2 magic members

These are constant that mean something but they do not give any indication of their

importance or derivation, making the program hard to understand and modify. To a

reader they work like magic and hence are called magic numbers. Any number (even 0 or

1) used in the code is a magic number. It should rather have a name of its own that can be

used in the program instead of the number
2 types of messages

Sequence diagrams can depict many different types of messages. These are: synchronous

or simple, asynchronous, create, and destroy. The following diagram shows the notation

and types of arrows used for these different message types.


3 Software testing

 

The correct approach to testing a scientific theory is not to try to verify it, but to seek to refute the theory. That is to prove that it has errors. (Popper 1965)

 

 A software tester tries to break the system. The objective is to show the presence of a defect not the absence of it.

 

The goal of testing is to expose latent defects in a software system before it is put to use.

 

A software tester tries to break the system. The objective is to show the presence of a defect not the absence of it.

 

This is because exhaustive testing of software is not possible – it is simply too expansive and needs virtually infinite resources.

 

Successful Test From the following sayings, a successful test can be defined “If you think your task is to find problems then you will look harder for them than if you think your task is to verify that the program has none” – Myers 1979. “A test is said to be successful if it discovers an error” – doctor’s analogy. The success of a test depends upon the ability to discover a bug not in the ability to prove that the software does not have one. As, it is impossible to check all the different scenarios of a software application, however, we can apply techniques that can discover potential bugs from the application. Thus a test that helps in discovering a bug is a successful test. In software testing phase, our emphasis is on discovering all the major bugs that can be identified by running certain test scenarios. However it is important to keep in mind that testing activity has certain limitations.


3Texual analysis

 

The oldest techniques to identify objects and their relationships. This technique is called Textual Analysis. It was initially developed by Abbot and then extended by Graham and others. In this technique different parts of speech are identified within the text of the specification and these parts are modeled using different components.


5 Differe b/w White boxing and Blaxk boxing ka.

In this type of testing, a component or system is treated as a black box and it is tested for the required behavior. This type of testing is not concerned with how the inputs are transformed into outputs.

 

 

As opposed to black box testing, in structural or white box testing we look inside the system and evaluate what it consists of and how is it implemented.

 


5Exceptions do increase the complixity of code or not explain with example.

A number of invisible execution paths can exist in simple code in a language that allows

exceptions. The complexity of a program may increase significantly if there are

exceptional paths in it. Consider the following code:

String EvaluateSalaryAnadReturnName( Employee e)

{

if (e.Title() == “CEO” || e.Salary() > 10000)

{

cout e.First() “ “ e.Last() “ is overpaid” endl;

}

return e.First() + “ “ + e.Last();

}

 

 

CS504 current final term paper 

its is my paper 
moiz  ye lo myra paper 

.
.

Mcq’s past papers m sy both kam thy nearly 10 to 12 was from past papers
Most of Mcq’s was from the following topics
Software testing 
Patterns
And some others are mix 
And 3 to 4 mcq’s was from 1st 22 lectures 
Subjective=
Memory over runs bug
One question is Portability related
What is software construction and software testing
1 statement given the btana tha k is m jo error h wok is tara sy or kitna dangerous h 
Give unit testing tip for larger projects.
Explain 2 code structures 
Baqi yad



Read more: cs504 All Current Final Term Papers Spring 2013 (20 Jul 2013 ~ 31 J... http://vustudents.ning.com/group/cs504softwareengineeringi/forum/to...

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

Latest Activity

Profile IconBisma Raheel and Mr.Brightside joined Virtual University of Pakistan
20 minutes ago
+ ≋M≋S≋ replied to ♥Sυɠαɾ Gҽɳιυʂ♥'s discussion just feel
48 minutes ago
Ammara Sabir replied to + ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥'s discussion and what about u????
1 hour ago
Ammara Sabir replied to ♥Sυɠαɾ Gҽɳιυʂ♥'s discussion just feel
1 hour ago
Ammara Sabir posted a status
"Jb muhabat hi nhi drmyan tu ;;;;;;;;;;;: wu rothein kya @@@ or hm mnaein kya"
3 hours ago
Ammara Sabir liked Honey Chaudhary's discussion Sabit to kar
3 hours ago
Ammara Sabir liked + ♥ Haniya khan's discussion (Bal-e-Jibril)
3 hours ago
Ammara Sabir liked Honey Chaudhary's discussion شور کروں گا اور نہ کچھ بھی بولوں گا
3 hours ago

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service