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.

Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012

Current Final Term Papers Spring 2012 Papers, July 2012, Solved Final Term Papers, Solved Papers, Solved Past Papers, Solved MCQs

Views: 4438

Replies to This Discussion

  • Post increment and pre increment k syntax btana thay(2 marks)

Answer:

Classname operator ++(); ---- pre increment

Classname operator ++(int) ---- post increment


is this answer correct????

Yes its correct answer......

to day cs201 paper 

Today may paper of cs201… CS201- Introduction to Programming

McZee mix new and old…40 marks

Long,,

All are program and its code..Find error in class,, templates..And matrix programs 

Question No: 31 (Marks: 3 )

What will be the output of following functions if we call these functions three times?



1)

void func1(){

int x = 0;

x++;

cout x endl;

}

Answer:

1

1 1



2) 

void func2(){

static int x = 0 ;

x++;

cout x endl ;



Answer:

1

2

3

5marks question explain each statement….

Streamposorg=afite.tellp();

Afilte.sekp(0,ios::end);

Ya teak say yad nahi ha

Must see mid team paper also……

Best of luck

temp function and friend function se related program the.

setbase oct hex and dec. 2var 3no tarahn se print karwane the.

 Thank you sooo much for this thread .. it really really helped alot 

most of the questions were from past papers.. from moaz's file 

there was one long question

Question statement 

that we have to calculate the amount of tax on an item purchased by customer ,, tax is 15% and user should input the item's price ..(5 marks)

2nd question was the same setw and setfill one

3rd there was a question we had to write some template but sorry i cannot remember the exact question..

for 3 Marks

Q1. amongst pointer to character or array for string which one is better for string representation and why??

Q2.Static funtion aur non static function ka output batana tha..

MCQs mostly moaz walay thay but files se bhi kuch aaye thay..

My paper            16-07-12

Total 52 Qs.

40 MCQs,             5 Qs of 2 Marks,                5 Qs of 3 Marks,                3 Qs of 5 Marks

Few Mcqs was from past papers mostly was new.

Same with subjective paper.

If p and q are pointers then whats wrong in the given statement?            (2)

Cout p=” p “, p+q = “p+q” endl (something like that)  

Code was given an we have to find out errors (2)

 Suppose an object of class A is declared as data member of class B. (3)

(i)                  The constructor of which class will be called first?

(ii)                (ii) The destructor of which class will be called first?

if program will take 123 in octal, what it will be in hex? (3)

in one Qs we need to write the output of a code given (3)

The whole code was given and we need make changes in “remove” and “print” etc.

Kuch elements ko remove and add krna tha. (5)

2 Qs were same of correcting the given code.

Or or or mujy kuch yaad nai aa ra :p :p

My paper of cs201:

52 total questions, 40 MCQs, Remaining questions carrying 2, 3, and 5 marks.

 

Q1: (Marks 5) Write a program that defines a Template function named Add () which adds two numbers returns Sum. Define two variables of int type in the main and then call Add () function on that.

Output should be like this:

 

Adding numbers (don’t remember here what was written)

Enter first number:

12

Enter second number:

25

Sum=37

 

Q2: (Marks 5) Find the error in the program and then remove this. (Don’t remember the coding)

 

Q3: (Marks 5) Given the class Data

 

main()

{

            class Date

            {

private:

            int day, month, year;

public:

            day=01;

            month=10;

            year=2010

}

……………..Dont remember the lines

……………..

……………..

 

}

 

Use the dynamically allocation  (don’t remember what)

In the last also free memory allocation.

 

Q4: (Marks 3) Why goto is not recommended to use in programmes?

Q5: (Marks 2) Write two types of data conversions used for used defined data types.

Q6: (Marks 2) Write the following using logical operators:

  1. number is both multiple of 4 and 6
  2. number is even but not 8
  3. answer is either N or n
  4. don’t remember this

 

Q7: (Marks 3) Write the output of the following if “int 5” is passed to the variable:

Template <class T);

T reciprocal (T x);

{

return (1/x);

}

(it was like something. Don’t remember exactly)

 

Q8: (Marks 3): How can we determine that dynamically memory allocation has been set successfully or not is C++ using the new operator?

Asslam-0-alikum !
My paper!
on whole my paper was very difficult and based on program even MCQ also,
so plz do more practice of programming and clear the concept also , 
friends!
last 15 lec is very important espiecially templates plz clear it and its example also .
pray for me 
BEST OF LUCK

Today may paper of cs201… CS201- Introduction to Programming
McZee mix new and old…40 marks
Long,,
All are program and its code..Find error in class,, templates..And matrix programs 
Question No: 31 (Marks: 3 ) 
What will be the output of following functions if we call these functions three times? 
1) 
void func1(){ 
int x = 0; 
x++; 
cout x endl; 

Answer: 

1 1 
2) 
void func2(){ 
static int x = 0 ; 
x++; 
cout x endl ; 

Answer: 


3
5marks question explain each statement….
Streamposorg=afite.tellp();
Afilte.sekp(0,ios::end);
Ya teak say yad nahi ha
Must see mid team paper also……
Best of luck

Today may paper of cs201… CS201- Introduction to Programming 

McZee mix new and old…40 marks Long,, 
All are program and its code..
Find error in class,, templates..
And matrix programs Question No: 31 (Marks: 3 ) 
What will be the output of following functions if we call these functions three times? 1) 
void func1(){ int x = 0; x++; cout x endl; } Answer: 1 1 1 2) void func2(){ static int x = 0 ; x++; cout x endl ; } Answer: 1 2 3 5marks question explain each statement…. Streamposorg=afite.tellp(); Afilte.sekp(0,ios::end); Ya teak say yad nahi ha Must see mid team paper also…… Best of luck

 +♦♦ǥůяiά♦♦+ gud keep it up & keep sharing 

Q.make a program using getline function(5)
Q.make a program using template function select two floating point number and add them with add() function.(5)
Q.make a program take salary and pay tax of 5% if salary is less than 10,000 and pay 7% if the salary is greater than 10,000 using switch function.(5)
Q.what are the function of new and delete ?(3)
Q.what are the stream insertion overloaded operators?(3)

RSS

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

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