On Sat, Jul 23, 2011 at 1:03 AM, ^*^Aniqa Malik^*^ <shinestar.star86@gmail.com> wrote:
Thanks for your contribution.On Sat, Jul 23, 2011 at 6:55 AM, سیٌد عمر شاہ <bc070401335@vu.edu.pk> wrote:
Assalam-u-Alaikum
My today's CS201 Paper 22-07-2011
Suppose there is class A having data member 'x', 'y' and an object of class B. The class
B has data members 'z'. Write the constructor of a class A that initializes the data
members of class A and class B (using member initializing list). [2]
How can we declare and initialize static data members of a class? [2]
Write down the general syntax for a function that returns a reference? [2]
Differentiate between single-dimensional and multi-dimensional array? [2]
How many arguments does binary member operator function binary non-member
operator function take? [3]
What is an alternative of setw manipulator? [3]
Find the error in the given code [3]
for (int i=0; i<numRows; i++)
{
for (int j=0; j<numCols; j++)
}
elements[i,j] =m.elements [i][j];
}
}
Determine the output of following code segment. [3]
x=5;
Switch (x)
{
case 5;
cout<<Value is 5;
case 4;
cout<<Value is 4;
break;
}
What is meant by the lifetime of a variable and what is the lifetime of an automatic
variable? [5]
Write a short note on files and also explain how they are handled in C++? [5]
Find the error [5]
class Data
{
private:
const in data;
public:
Data( )
{
cout<<"Constructor Call…\n"; }
void getIncreament( )
{
Cout<<"Data = " <<++data;
}
};
void main( )
{
char*String ;
String= New char[15];
String="Welcome to VU";
cout<<String;
free (String);
}
--
--
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
--
You received this message because you are subscribed to the Google
Groups "vuZs" group.
--
To post a new message on this group, send email to vuZs@googlegroups.com
--
Message Posting Rules: http://vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email from your virtual university email address to
vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
---
For more information Contact vuZs Manager at info@vuzs.net
--RegardsAniqa MalikMBA HRM
--
--
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
--
You received this message because you are subscribed to the Google
Groups "vuZs" group.
--
To post a new message on this group, send email to vuZs@googlegroups.com
--
Message Posting Rules: http://vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email from your virtual university email address to
vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
---
For more information Contact vuZs Manager at info@vuzs.net
--
I Hate Spammers
Don't Make Me Angry
--
--
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
--
You received this message because you are subscribed to the Google
Groups "vuZs" group.
--
To post a new message on this group, send email to vuZs@googlegroups.com
--
Message Posting Rules: http://vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email from your virtual university email address to
vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
---
For more information Contact vuZs Manager at info@vuzs.net
No comments:
Post a Comment