We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS304 Fall 2017 Final Term Papers Pattern & Questions 17 Feb 2018 to 28 Feb 2018 & Helping Material

CS304 Fall 2017 Final Term Papers Pattern & Questions 17 Feb 2018 to 28 Feb 2018 & Helping Material


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 1627

Replies to This Discussion

Share Your Final Term Papers (Questions/Pattern) & Past Papers as well here to help each other. Thanks

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

 

Click Here For Detail.

&

 

.•°How to Download past papers from study groups°•.

 

Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

cs304 final paper pattern question share plz

CS304 today's paper
Q1) What will be the output of the code given below?

#include <iostream.h>
#include <stdlib.h>

using namespace std;

template <typename T>
class MyClass{

public:
MyClass(){
cout"This is class1"endl;

}

};
template <typename T> 
class MyClass<T*>{

public:
MyClass(){
cout"This is class2"endl;
}
};
template <> 
class MyClass<int>{
public:
MyClass(){
cout"This is class3"endl;
}
};

int main(int argc, char *argv[])
{
MyClass<int> c1;
MyClass<char*> c2;
MyClass<float> c3;
system("PAUSE"); 
return 0;
}

Q2) Explain precisely the role of copy constructor in case of dynamic memory allocation
Q3) Examine the following code and determine the output of the program:
#include<iostream>
#include<conio.h>
using namespace std;
class A
{
public:
void method() { cout"A's method \n"; }
};
class B : public A
{

public:
void method() { cout"B's method\n"; }

};

int main()
{

A obj1;
B obj2;
A* aptr;
aptr = & obj2;
obj2. method();
aptr -> method();

system("pause");
}

Q4) What do you mean by Catch Handler? 
Q5) Override Sing function of Parent class. Only write prototype of function.

class Toy {
public:
void Sing();
};
class Doll: public Toy {
public:
};

Q6) Explain public and private inheritance with example?
Q7) What is virtual function? Explain it with coding example.

Q8) Write a template function that returns the average of all the elements of an array. The arguments to the function should be the array name and the size of the array (type int).
Q9) What is the output of 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";

system("pause");
return 0;
}
void sample_function(double test) throw (int)
{
cout "Starting sample_function.\n";
if(test < 100)
throw 42;
}

Q10) Write C++ code for a class ABC with one static data member count which counts the number of objects created. Create three objects in main and print the value of count in main().

RSS

Latest Activity

+M.Tariq Malik liked +M.Tariq Malik's discussion Essay / Speech On Cowards Die Many Times Before Their Death Essay In Urdu / English
2 minutes ago
Misbah Nawaz liked Misbah Nawaz's profile
3 minutes ago
M. Shaaf Tariq updated their profile
19 minutes ago
Tasha liked +M.Tariq Malik's discussion VU New Grading Scheme For Semester Fall 2020
21 minutes ago
Shahid Nawaz Khan replied to +M.Tariq Malik's discussion How To Prepare for Grand Quiz (Mid Term Quiz) Of Virtual University Of Pakistan
22 minutes ago
M. Shaaf Tariq liked +M.Tariq Malik's group ISL201 Islamic Studies
33 minutes ago
+M.Tariq Malik liked Azhar Sagar's discussion Be Aware ! Make your Final Year Project By yourself
33 minutes ago
+M.Tariq Malik liked Azhar Sagar's discussion Make your SRS Step By step(Complete Free Project Help)
34 minutes ago
Profile IconIfra Malik, Ali Fahad, Salbia batool and 14 more joined Virtual University of Pakistan
39 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion Corporate Laws Made Easy Notes CA Notes, CA Past Papers, ICAP Notes
39 minutes ago
Neelam Javed replied to +M.Tariq Malik's discussion MGT301 Online Quiz No 01 Fall 2020 Solution / Discussion in the group MGT301 Principles of Marketing
53 minutes ago
Neelam Javed joined +M.Tariq Malik's group
53 minutes ago
+ ! ! ! ! " Sуe∂α " liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
56 minutes ago
Azhar Sagar added 2 discussions to the group CS619 Final Project
1 hour ago
+αηαѕтαѕιуα❥ liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
2 hours ago
+αηαѕтαѕιуα❥ replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
2 hours ago

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

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

.