vu cs504 Mid Term Subjective Solved Past Paper No.2

vu cs504 Software Engineering - I Solved Past Papers

Solved Past Papers

This subjective solved past paper is related to book/course code vu cs504 Software Engineering - I which belongs to vu organization. We have 7 past papers available related to the book/course Software Engineering - I. This past paper has a total of 10 subjective questions belongs to topic Mid Term to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.

NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.

Question 1: What steps we must follow to design good program?
Answer:

Hence to design a program properly, we must:

Analyze a problem statement, typically expressed as a word problem.

Express its essence, abstractly and with examples.

Formulate statements and comments in a precise language.

Evaluate and revise the activities in light of checks and tests and Pay attention to detail.

--or--

Details

We must check very details of any program. It is very important aspect of any program. We must pay complete attention to calculation.

We must give attention to logic and its flow should be smooth.

Reusable

We must write program in such a way that we can reuse them in other program. Like we define function in such a way that in future if we need any similar kind of function is requires in that case we can easily modify or reuse it.

Comments

We write the details of important steps in the form of comments. We should use comments in such a way if any body else wanted to reuse or debug or codes he can easily understand it.

Code readability

We should use Tab and spaces so codes are easily readable.

User interface

We make interface user friendly. Use polite prompts for user while take input.

Question 5: What will be the output of following function if we call this function by passing int 5?
template T reciprocal(T x) {return (1/x); }
Answer:
The output will zero as 1/5 and its .05 but conversion to int make it zero. Above is prototype of template class so assume passing an int and returning an int
Question 8: When a pointer is incremented then how many bytes will it move to change its address
Answer:
If an integer occupies four bytes in the memory, then the yptr++; will increment its value by four. when we increment the yptr, it points to the next integer in the memory (page 160)
Question 10: Which arithmetic operators cannot have a floating point operand?
Answer:

Modulus operator

This operator can only be used with integer operands ONLY


Solved Past Papers of cs504 Software Engineering - I

Other cs related subjective solved past papers

Other categories of vu Solved Past Papers

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background