VU Projects Video Lectures Handouts Past Papers Quizzes Assignments & GDB border= Members Free SMS Service FB Page
VU Projects Video Lectures Handouts Past Papers Quizzes Assignment,GDB Members SMS Service FB Page

Share your all current paper here

Views: 146

Replies to This Discussion

AOA, ppr was a lil bit difficult a great portion of mcqs came from topics of templates and a handful was from exceptional handling following questions were asked
1:ik class template program me error nikalne the plus reason deni this
2:do question me program the inheritance k ume pocha that k main me Jo object banae ha WO kis function ko access krsakte ha
3:in friend templates k rules se related that
4:in program likhna tha abt excetional handling during initialization or inheritance ka bhi
Baaqi sawal yaad nahi un me b code hi likhna tha -_-

cs304_current_paper_mine
mostly mcq waqar or mooaaz file sy thy
5,6 mcqs new thy bass
long question:
1>define tmplate paremeter:2nbr
2>advantage disadvantage teplate:2
3>overriding with exmple:5
2,3 long be past sy thyyyyy
khush coding my sy thyyy
nested catch block ka genral syntxxxxx


60 to 70 % MCQs from Moazz File.

Most of Question about Template

Diffeence Between Iterator and Cursor

Question about overriding and overloading

write a program where template A is the friend of template B

  • In the program given below

class Shape {

protected:

char _type;

public:

 Shape() { }   void draw(){ cout “Shape\n”; }   int calcArea() { return 0; }   char getType() { return _type; }  };

class Line : public Shape {

public:

 Line(Point p1, Point p2) {

}

 void draw(){ cout “Line\n”; }  };

class Circle : public Shape {

public:

 Circle(Point center, double radius) {

}

 void draw(){ cout “Circle\n”; }   int calcArea() { … }  };

class Triangle : public Shape {

public:

 Triangle(Line l1, Line l2, double angle)  {

}

 void draw(){ cout “Triangle\n”; }   int calcArea() { … }

};

int main() {

 Shape* _shape[ 10 ];

Point p1(0, 0), p2(10, 10);   shape[1] = new Line(p1, p2);  shape[2] = new Circle(p1, 15);

 void drawShapes( shape, 10 );  return 0;

}

/*Function drawShapes()*/

void drawShapes(Shape* _shape[],  int size) {

 for (int i = 0; i < size; i++) {  _shape[i]->draw();

}

}

After compiling this code we will see the following output,

Shape

Shape

Shape

Shape

If we want to display the following output

Line

Circle

Triangle

Circle

How can we achieve this?

 

Mcqs from past papers of Moaaz and many related to base derived class and templates..
Questions were
-Write a code to declare class A as friend of class B
-errors detect and correct in program of templates
-name the two basic types of first class containers
-write main function to call a copy constructor and assignment operator.
-Template related questions
-virtual inheritance and multiple inheritance inherits fron how many base class
-What is Graceful termination, give example by writing a C++ code.

80% MCQs was from Moaaz file.

Templates

Virtual Function

Overriding

ke bare Qs they

Cs304 papr almost moaz ki file sy tha objctv wala. Aur subjctv k b 50% moaaz file sy thy. Aik error find krna tha. Do thy jin k syntax likhny thy template k adv and disadv thy code dia hua tha output find krna tha! Compare ka code likhna h..

Salaam friends 
Kasa ha app sub 
Today paper CS304 
Subjective ma codes diya howa ha in ki output nikalni thi or kuch theory ka questions tha 
Conceptual tha paper 
MCQ's all new tha about 5 to 10 moaaz past papers sa tha Bohat hi kam past papers sa tha
Mostly new and change questions tha but concept clear Ho Ho Ho jaya ga

80% MCQs was from Moaaz file.

Templates

Virtual Function

Overriding

ke bare Qs they



Mcqs from past papers of Moaaz and many related to base derived class and templates..
Questions were
-Write a code to declare class A as friend of class B
-errors detect and correct in program of templates
-name the two basic types of first class containers
-write main function to call a copy constructor and assignment operator.
-Template related questions
-virtual inheritance and multiple inheritance inherits fron how many base class
-What is Graceful termination, give example by writing a C++ code.

My paper today CS304

MCQs were from past papers mostly…

2 marks questions:

  1. Name two containers that are used as First class member
  2. Code snippet write down krna tha C++
  3. Abstract class se related question tha

3 marks questions:

  1. Syntax error nikalna tha code se
  2. Write C++ code to identify template class with two different data types
  3. Base class ko derived class mai public inherit krna tha

5 marks questions

  1. Template se related code written tha legal or illegal statements identify kr k new code likhna tha
  2. Vector array bnani thi size 8 ki or 0 1 2 3 4 5 6 7 add krne the
  3. C++ code tha classes ka us mein errors identify kr k new code likhna tha
  4. Kuch code statements thi un ko elaborate krna tha



My Today's paper

 Mix mcqs tha mean past papers sa b tha or book sa b 

coding thi sari long main

virtual function important 

Templete 

RSS

SPONSORED LINKS

© 2017   Created by Muhammad Anwar Tahseen.   Powered by

Badges  |  Report an Issue  |  Terms of Service