www.vustudents.ning.com

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

# CS304 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material

Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material

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

Views: 1711

### Replies to This Discussion

Mid Term

###### CS304 Object Oriented Programming Midterm Solved Objective Papers

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

Today paper of cs304
1 Mcqs from past paper
18 mcqs from book
What is a constant function object? Write one example 3 marks
What is Multiple inheritance and give example? 3 marks
A person works that a company , id ,name and draw a composite and aggergation .. and what is composition and aggergation 5 marks
[Get information] class program 5 marks

Today Paper CS304
MCQs zyada template aur STL lec 32 say 45 main say aiy
Long Questions
What is template argumets? (3 marks)
Write three technique for error handling (3 marks)
Identify Inheritance. Problem kya is main aur uska solution bhi btana aur code bhi write krna (5 marks)

Give the pseudo code of non case sensitive comparison function of string class. (5 marks)

ANS:
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); }

What is the output produced by the following program? (5 marks)

#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; }

ik program likha hua tha error find krna tha (5 marks)

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

3. using namespace std;
4. template <typename T>
5. class MyClass{
6. public:
7. MyClass(){
8. cout"This is class1"endl;
9. }
10. };

11. template <typename T>
12. class MyClass<int*>{
13. public:
14. MyClass(){
15. cout"This is class2"endl;
16. }
17. };
18.
29. int main(int argc, char *argv[])
20. {
21. MyClass<int> c1;
22. MyClass<int*> c2;
23. system("PAUSE");
24. return 0;
25. }

A and B two classes inherit publically. Uskay methds aur data members ka btana konsa acces ho ga (3 marks)

Class A {
Public:
funcA1();
private:
funcA2();
protected
funcA3();

class B : public A {
Public:
funcB1();
private:
funcB2();
protected
funcB3();
};

Function Name Access Yes or No?
funcA1(); ?
funcA1(); ?
funcA1(); ?
funcB1(); ?
funcB1(); ?
funcB1(); ?

My Paper of Cs 304

Mcqs Sary Moaaz ki file sy thy

1: 2 questions thy coding k us ki output likhni thi

2: Next question tha program my error dekhna tha or is line my Jo error uski reason likhni thi

4:What is Template Function ? Desribe it briefly

5:What do you mean by catch Block ?

6:What do u mean by static ? Also describe its member function aik program diya hua tha us k hisab sy likhna tha ye ?

7: Aik program likhna tha jis my sy aik class k template function ko dosri class ka template functiion banana tha is tarha ka khuch tha?

Today paper of cs304
1 Mcqs from past paper
18 mcqs from book
What is a constant function object? Write one example 3 marks
What is Multiple inheritance and give example? 3 marks
A person works that a company , id ,name and draw a composite and aggergation .. and what is composition and aggergation 5 marks
[Get information] class program 5 marks

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

5 minutes ago
5 minutes ago
6 minutes ago
8 minutes ago
9 minutes ago
10 minutes ago
10 minutes ago
ልጠክል ጌዘልፕፕጎ liked + ♥ Haniya khan's discussion HaPPy FaThER's DaY
11 minutes ago