Skip to main content

::: vuaskari.com ::: My Today's CS201 Paper 22-07-2011

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

                                I Hate Spammers    Don't Make Me Angry
 

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en

Comments

Popular posts from this blog

[vu-students] Urdu Love Letters ............ ahahahahahhahahah

  The One & Only .......... IRFAN. Italy. http://groups.yahoo.com/group/p_se_poetry   -- You received this message because you are subscribed to the Google Groups "VU Students" group. To post to this group, send email to vu-students@googlegroups.com To unsubscribe from this group, send email to vu-students+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/vu-students?hl=en_PK?hl=en

Re: ::: vuaskari.com ::: Fwd: Cancer treatment- Shocking news.

plz send me the soloution of Assignment MGT-603 and MKT-624 plzzzzzzzzz today last day i need urgent 2011/4/23 ∂υα ωαqαя < dua4566@gmail.com > ---------- Forwarded message ---------- From: Virtual Brain < mc090400181@gmail.com > Date: Sat, Apr 23, 2011 at 10:30 AM Subject: Cancer treatment- Shocking news. AS  one of my friend tell me all this PLEASE FORWARD THIS MAIL.  Dear All, One of my cousin got   lung cancer   few months back. That was really shocking to all his family members. Cancer diagnosed was of stage three. Immediately treatment was started from Pakistan most of the art hospital for cancer i.e. Shoukat Khanum Hospital in Lahore. But there were little chances to reverse the disease as it's already reached to stage 3. Than one day somebody told us about a person in Distt Nowshera who is treating cancer by herbs. We went there and he gave us some   herbal medicines   for ten days. It was really amazing when we saw an improvement in the condition of my...

Re: ::: vuaskari.com ::: I CAN HELP YOU IN INTERNSHIP REPORT AND VIVA PRESENTATION ETC.

need help in  MIS 619 Project not internship On Mon, Jul 20, 2015 at 9:27 PM, abdul rehman < rehman51jb@gmail.com > wrote: ys On Thu, Jul 16, 2015 at 11:17 AM, Jasmine Jasmine < jasminejasmine173@gmail.com > wrote: ap na report submit kerwa di On Fri, May 1, 2015 at 10:57 PM, pree shay < pree.shay007@gmail.com > wrote: one person, his name is saad send me his report .what a report.... can i copy the  history as such information etc On Sun, Apr 26, 2015 at 10:17 PM, Rehman Butt < rehmanbutt146@gmail.com > wrote: I have done MBA Finance, in this you have to internship from any textile company , banking, trading, corporation, etc its an easy process, I have passed internship and viva in first sitting, On Sun, Apr 26, 2015 at 12:50 PM, Safia Naz < safianaz786@gmail.com > wrote: finance or marketing ka kya concept hay internship main? On Fri, Apr 24, 2015 at 2:49 PM, pree shay < pree.shay007@gmail.com > wrote: Mba finance.i get internship in mcb ban...