VUSuperior Chat Room

Sunday, 8 March 2015

CS304 Object Oriented Programming Current Final Paper 08-03-2015

CS304 Object Oriented Programming Current Final Paper 
08-03-2015

80% MCQZ and 50% Subjective papar from Past papers.
Question No.1: The least one advantage and Disadvantage of Template. 2 Marks
Question No.2: What is the output produced by the following program?
‪#‎include‬<iostream.h>
void sample_function(double test) throw (int);
int main()
{
try
{
cout ”Trying.\n”;
sample_function(98.6);
cout “Trying after call.\n”;
}
catch(int)
{
cout “Catching.\n”;
}
cout “End program.\n”;
return 0;
}
void sample_function(double test) throw (int)
{
cout “Starting sample_function.\n”;
if(test < 100)
throw 42;
}
Question No. 3: What will be the output after executing the following code?
Coding from Moaaz subjective file page no.22 .5 Marks
Question No. 4: Coding from moaaz file page no.23 .5 Marks
Question No.5: Coding from moaaz file page no.24 .5 Marks
Question No.6: Two components of STL. 3 Marks

0 comments:

Post a Comment