Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Please Share you Current Final Paper of CS304 Object Oriented Programming (20 July 2013 TO 31 July 2013)

Please Share you Current Final Paper of CS304 Object Oriented Programming (20 July 2013 TO 31 July 2013)

Views: 3023

Replies to This Discussion

excell me ek larkay nay calculater upload kia tha kya wo thek tha any body told me

please tell me about calculations

apk mid m kitny marks hain?

obtaiened marks/40 r jo answer aye osko 35 se multiply kar k dekhy kitny marks bnty k wo round about 20 k bnty k nai. agr wo 20 ya 20 se oper hain tu asignment m km marks b chal jain gy 

mujy b calculations ki smj nai a  rai neha obtained ko total sy divide krny k bad ki js 35 sy multi ply krna hy ya divide krna hy

mid term k mery is k 24 marks hein ab isko kesy caculate krna hy ?

huma yeh wrong h 35 se wrong aata h answer.......... overall assignmnts+quizs+mid term=20%

then in finals also

assignmnts+gdb+quizs+final= 20%

to mid or final k mila k 40% bnty hn.........

btao b m woried

 past papers mai sy kitny % paper a raha hy any one tell me plzzzzzzz

near about 60%

MCQs kindly share karain jo ppers mein arhy hain ......

 Q:1: Can a constructor throw an exception? How to handle the errors, when the constructor fails?


- Yes, Constructor can throw an exception But In constructor if an exception is thrown than all objects created so far are destroyed. Exception due to constructor of any contained object or the constructor of a parent class can be caught in the member initialization list.

q.2. Give the pseudo code of non case sensitive comparison function of string class.


int caseSencompare( char* str1, char* str2 ) { for (int i = 0; i < strlen( str1 ) && i < strlen( str2 ); ++i) if ( str1[i] != str2[i] ) return str1[i] - str2[i]; return strlen(str1) - strlen(str2);

q.3 What are the container requirements?

q.4. Give the C++ code of template function to print the values of any type of array I int.this function will take 2 parameters one will be pointer and other will be will be size of array (mrk5)

Answer:- (Page 257) template< typename T > void printArray( T* array, int size ) { for ( int i = 0; i < size; i++ ) cout array[ i ] “, ”; // here data type of array is T } Give the name of three

q.5Give the name of three operation that a corsor or itrator generally provide (mrk3)


 •T* first() • T* beyond() • T* next( T* )

q.6what are container classes? How many types of container classes are there?


 Container is an object that contains a collection of data elements like we have studied before now we will study them in detail. STL provides three kinds of containers, 1. Sequence Containers 2. Associative Containers 3. Container Adapters

past paper me sey muje sara paper aya

baki jo program aye wo yaad nai ap past paper waly ur try wale program lazmi kren

Read more: tody my paper 304 oop - Virtual University of Pakistan


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

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