VUsolutions Transferred to AchiKhasi.com

From December 2011, this blog www.VUsolutions.blogspot.com is transferred to http://achikhasi.com/vu/ . So, you may visit http://achikhasi.com/vu/ for latest study related help.

Back to home VUsolutions

VUsolutions Fans Club [join us for MORE solutions]

VUsolutions on Facebook

CS201 Final Term Current Paper (Feb 2011)

Sunday, February 13, 2011 Posted In Edit This
CS201 Final Term Current Paper (Feb 2011)

CS201_Introduction to Programming by ayesha
Thare were 52 Questions in my todays paper
40 MCQ's
4 short Questions with marks 2
4 short Questions with marks 3
4 short Questions with marks 5
Total marks 80
Some Questions i remember that i'm sharing with you all
A template function must have at least ---------- generic data type
► Zero
► One
► Two
► Three
Which of the following statement is best regarding declaration of friend function?
► Friend function must be declared after public keyword.
► Friend function must be declared after private keyword.
► Friend function must be declared at the top within class definition.
► It can be declared anywhere in class as these are not affected by the public and
private keywords.
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
► Class-name operator +() ;
► Class-name operator +(int) ;
► Class-name operator ++() ;
► Class-name operator ++(int) ;
Class is a user defined___________.
► data type
► memory referee
► value
► none of the given options.
How many bytes will the pointer intPtr of type int move in the following statement?
intPtr += 3 ;

► 3 bytes
► 6 bytes
► 12 bytes
► 24 bytes
Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
► new int(10) ;
► new int[10] ;
► int new(10) ;
► int new[10];
A Pointer is a special variable that contain
► Data values
► Memory Address
► Both data and values
► None of the given option
A structure is a collection of___________ under a single name.
Value
Variable
Data
None of the given
In C/C++; by default argument are passed by__________to a function.
Reference
Value
Type
Data
The code is written to __________ the program.
► implement
► design
► analysis
► none of the given options.
C++ views each file as a sequential stream of_______
Bytes
Bits
0's or 1's
Words


1. What is the keyword 'this' and what are the uses of 'this' pointer? Give an example.
2.What is difference between variable and pointer?
3.Consider the following code segment. What will be the output of the following code segment?

class class1{
public:
class class2{
public:
4. Write a program which defines five variables which store the salaries of five employees, using setw and setfill manipulators to display all these salaries in a column.

Note: Display all data with in a particular width and the empty space should be filled with character x
Output should be displayed as given below:
xxxxxx1000
xxxxxx1500
xxxxx20000
xxxxx30000
xxxxx60000
Pray for all
....................

Back to home VUsolutions

Shaadi.com: Just create ur account & find ur partner or EARN money, its reall & EASY

VUsolutions Followers (Join NOW and Get Extra Benefits)

Install LATEST toolbar having lot of features - GET solutions on Desktop

toolbar powered by Conduit
Caliplus 300x250 NoFlam VitoLiv 468x60 GlucoLo