Home About Contact
vustudents.org
Connect with Facebook



CS201 CS201 Introduction to Programming Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….

Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….
Reply
  #1  
Old 11-18-2011, 06:30 PM
um abdullah's Avatar
Senior Member
 
Join Date: Nov 2011
Posts: 265
Default CS201 Mid term solved papers 2010

today’s Subjective Paper ( Mid Term 2010) date: 04-12-2010
Q: What operator do you use to assign a pointer the address of another variable or constant? (2marks)

Q: Identify each of the following function as string conversion function or string manipulating function;
• bouble atof (const char *nptr)
• char *strcpy (char *s1,const char *s2)
• --------------------------------------I forgot this one (2 marks)

Q: What happens when we increment a pointer? (3 marks)

Q: Can you use an assignment operator to assign the value of one C-string to another? (3 marks)

Q: What is the purpose and syntax of the const keyword? (5 marks)

Q: What will be the output of the following;
#include
using name space std:
union Num
{
int Value I;
float Value F;
double ValueD;
char Value C;
};
Void main ()
{
// Optional unionkeyword
// Value I = 100
NumTestValue = {100};
cout \ nInteger = “ TestVal.ValueIendl;
TestVal.Value F = 2.123;
cout “Float=” TestVal.ValueFendl;
cout”Uninitialzed double = “TestVal.Val D endl;
cout”Some rubbish???”endl;
TestVal.Value C = ‘U’;
cout”character = ‘ TestVal.Valueendl;
} (5 marks)
Attached Files
File Type: pdf Cs201fall2010solvepaper1December.pdf (364.3 KB, 116 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ACC311 Mid Term Papers Fall 2010 All in One Discussion um abdullah ACC311 92 11-30-2011 11:24 PM
CS201 Final Term solved 2010 um abdullah CS201 0 11-18-2011 06:35 PM
Mid Term Papers of CS001 Spring 2010 um abdullah CS001 0 11-17-2011 10:34 AM
BNK601 Mid Term Papers Fall 2010(vustudents.org) um abdullah BNK601 0 11-16-2011 06:42 PM
ACC501 Mid Term Papers Fall 2010 (vustudents.org) um abdullah ACC501 0 11-16-2011 03:56 PM


All times are GMT +5. The time now is 02:16 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

 

Gravatar as Default Avatar by 1e2.it