vu cs504 Mid Term Subjective Solved Past Paper No.2
vu cs504 Software Engineering - I 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.
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.
int input ;
cin >> oct >> input;
cout << hex << input ;
template T reciprocal(T x) {return (1/x); }
void func1(){
int x = 0;
x++;
cout << x << endl;
}
void func2(){
static int x = 0 ;
x++;
cout << x << endl ;
}
1
1
1
Second Function Output
1
Modulus operator
This operator can only be used with integer operands ONLY