Object Oriented Programming - CS304 Spring 2005 Mid Term Paper
Object Oriented Programming - CS304 Spring 2005 Mid Term Paper
PK
www.vustuff.com
Mid Term Examination – Spring 2005
Time Allowed: 90 Minutes
CS304 Object Oriented Programming
Please read the following instructions carefully before attempting any of
the questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt it
to the best of your understanding.
b. If you believe that some essential piece of information is missing, make an
appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
d. All coding questions should be answered using the C ++ syntax.
You are allowed to use the Dev-C++ compiler to write and test your code. If you
do so please remember to copy and paste your code into the examination
solution area. (Do NOT share your code; your colleague could get higher
marks than you!!) **WARNING: Please note that Virtual University takes
serious note of unfair means. Anyone found involved in cheating will
get an `F` grade in this course.
Total Marks: 40 Total Questions: 3
int main()
{
String X, Y = "World!";
X = "Hello " + Y;
cout<< X << endl;
return 0;
}