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

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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: 1625

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 replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
9 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
9 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020
9 minutes ago
+M.Tariq Malik added a discussion to the group CS501 Advance Computer Architecture
10 minutes ago
+ " J i y a " ♥ posted photos
18 minutes ago
Profile Iconsara khan, Ashraf Butt, jawad ali and 14 more joined Virtual University of Pakistan
28 minutes ago
Mani Siddiqui Ex replied to +M.Tariq Malik's discussion CS508 Assignment 01 Fall 2020 Solution / Discussion in the group CS508 Modern Programming Languages
31 minutes ago
+!!! ❤️ Shadow Girl❤️!!! replied to jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
32 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
32 minutes ago
مخلص posted a discussion
33 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked ++!!Zuni Khan(Am Cyco)'s discussion تم سمندر کی بات کرتے ہو...لوگ آنکھوں میں ڈوب جاتے ہیں
41 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked +M.Tariq Malik's discussion All Programs of AIOU Subjects Books Allama Iqbal Open University Of Pakistan - Allama Iqbal Open University Books PDF Free Download
42 minutes ago

Looking For Something? Search Here

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

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

.