Friday, May 20, 2011

Re: : (VU-Study-Corner) cs201 share ur today paper plz

Describe the file pointer and there uses?

On Thu, May 12, 2011 at 12:54 AM, mc100401577 Yasir Ilyas <mc100401577@vu.edu.pk> wrote:
Assalam-o-Allaikum dear fellows,

My name is Yasir Ilyas and i just came from examination hall, i have given my cs201 exam half hour before.

objective may say kuch bata deta hoo jo aya tha mujhay;

-    C-language kis labortary may invent hoi.
-    C is widely known as development language of _______ operating system.

       Linux

       Windows

       Unix

       Mac OS


-     What will be the result of arithmetic expression 6+27/3*3?

       33

       45

       9

       30


-     What will be the correct syntax for initialization of pointer ptr with string "programming"?

 

       char ptr = 'programming' ;

 

        char *ptr = "programming" ;

 

       char *ptr = 'programming' ;

 

       *ptr = "programming" ;


-     Which character is inserted at the end of string to indicate the end of string?

 

       new line

 

 

       tab

 

       null

 

       carriage return


-     ek question that like variable say related jis ki option kuch is tarah say the;


int (i)

int [2]


and subjective may say;


Q1-    Write down the output of the following code?

 

int array[7], sum = 0;

    for(int i=0;i<7;i++)

    {

    array[i] = i;

    sum+= array[i];

}

    cout<< " Sum = " <<sum;   


Q2-     Explain C-String with an example?


Q3-     anonymous structure and anonymous union k baray likhain?

Q4-     2 question practical related thay jis may code dya gya tha us ko theek kerna tha

geek ki option say.


Wish all the students a huge GOOD LUCK ALLAH PAK HAM SAB KO kamyabi ata faramyee aaaaameeeeeeeennnnnnnnnn

--
Follow these group rules if you want to stay long in the group.
http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
You received this message because you are subscribed to the Google
Groups "VU Study Corner" group.
To post to this group, send email to VU-Study-Corner@googlegroups.com
To unsubscribe from this group, send email to
VU-Study-Corner+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/VU-Study-Corner?hl=en
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

--
Follow these group rules if you want to stay long in the group.
http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
You received this message because you are subscribed to the Google
Groups "VU Study Corner" group.
To post to this group, send email to VU-Study-Corner@googlegroups.com
To unsubscribe from this group, send email to
VU-Study-Corner+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/VU-Study-Corner?hl=en
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

No comments:

Post a Comment