Saturday, July 23, 2011

[ vuZs.net ] CS201 Subjective Question thread plz ans it,today is my paper


Write the output of this code 3Marks

Main()
{
int x,y,z;
x=5;
y=3+x++;in absence of any output command there will be no output

If your question has these two lines as part of the program

cout<< y;
cout<<x;


----------
Main()
{
int x,y,z;
x=5;
y=3+x++;
cout<< y;
cout<<x;

then output will be 8 and 6;

X++ will be incremented to 6 but before it will assign the value (5 old) to y  (3+5 = 8).

x will 6 after ++ operation execution 


Regards

Zubair Hussain
www.vuzs.net



On Sat, Jul 23, 2011 at 11:14 AM, Âttìtúðè ßúrñèr <zindagi.pyarzindagi@gmail.com> wrote:

9) Do you agree that in good programming practice , the main() factor is smaller than the class implemented 5 marks

 

6) Find error in the code

Int *p;

p= new int [10];

delete; 3 marks

 

Write the output of this code 3Marks

Main()
{
int x,y,z;
x=5;
y=3+x++

 

What will be the output of following function if we call this function by passing int 5? 3 marks template T reciprocal(T x) {return (1/x); }

 

What does it happen if an object id assign to another object without overloading an assignment operator.2marks

Q.42
Describe the first parameter to stream insertion<<and stream extraction>> operator function? 2Marks

Q.43
Write the meaning of given line code where m is object of class matrix

If (&m! = this)

 

Is there any harm to declare some varibales more than once within two or more function of programe 2

If we want to send the data by reference and don't want that original data should be affected then what we do to prevent this 3

 

Supponse fuction having argument type U return type T correct syntax pass a variable x of type double and return a int type 2

Conert the following whil loop into a for loop
Int I =1;
While (i<=n)} ……………..no3

 

Given blew is the code of the class named
Weight
Class weight{
Private: …………no 5

if we want to send the data by refrenceand don't want that original data should be affected then what can we do to prevent any change??

 


--
Never Design ur Character like a garden,where anyone can walk.......!!!

Design
ur Character like a sky,where Everyone desire to reach......!!

BEST REGARDS
Âttìtúðè ßúrñèr
MBA_(MIS)                                     

www.vuzs.net






--
--
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