CS201 Current Spring 2011 Final Term VU Paper [July 2011] Virtual University of Pakistan

No Comments
CS201 Current Spring 2011 Final Term VU Paper [July 2011] Virtual University of Pakistan


TOTAL 52 QUESTIONS
12 LONG AND 40 MCQ'S
AND MOSTLY MCQ'S ARE NOT FROM PAST PAPERS, ITS FROM LAST CHAPTERS… 
Q: 41: Write a program with different variables V1 and V2 and print
out it (hexadecimal, decimal, octal) form use one manipulator. 5
marks ..
Q:42: What is structure and union structure? 3 marks.
Q:43: What is template and write general syntax of templates. 3marks..
Q:44: How many types of structure? 2 marks
Q:45: Write the rules for using of Dynamic memory allocations… 5marks..
Page 479
Q:46: Describe the first parameter to stream insertion<<and stream
extraction>> operator function? 2marks
Q:47: See the following code segment
Template <class T>
Class myclass
{
Private :
Tx;
Public
Myclass(ta)
{
X=a;
};
Write the main function which creates two objects of class for int
& double types?
Q:48: If the requested memory is not available in the system then what
does calloc/malloc and new operator
return? 3marks …

Q:49, Q:50, Q:51 and Q:52 are not in my mind, These Question are from
Lecture number 40 to 45

Another Paper of CS201:

0 MCQs Most of the MCQs from the past papers. These are easy


What is conversation construct?----ye wala q b meri frnd k paper men aya ta 
What does code optimization mean?
What do you mean by garbage collection and how it works in JAVA and C++ ?
Identify the errors in the following member operator function and also correct them.
math * operator(math m);

math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}....ye wala b 

Suppose we have the following class. 

class Matrix
{
private:
int Elements[3][3];
}; 
What are the first parameters of stream insertion"<<" and stream extraction ">>" for operator function----------------ye wala jo q h na ye boht sare papers men aya .h...
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment