CLICK HERE FOR VARIOUS NEW JOBS 
CLICK HERE FOR VARIOUS EDUCATIONAL NEWS 
CLICK HERE FOR NEW SCHOLARSHIPS 
CLICK HERE FOR ADMISSION NOTICES 
Click And Follow On Google+ To Get Updates
Please Wait 10 Seconds... OR You CanSkip

ADMISSION NOTICES
Scholarships

Scholarship-300x291

BUDGET 2014-15
budget_2014-2015
New Date Sheets
VU SOLVED ASSIGNMENTS
Recent Posts

Posts Tagged ‘Cs201 final paper 072\2012 Mcqs were easy and from past papers. 1. Write down the syntax in two different ways to initialize character array with string ‘programming’. 2 2. Write the C++ code for the ’

VU CS201- Introduction to Programming FinalTerm solved unsolved past papers Fall 2012

VU CS201- Introduction To Programming FinalTerm Solved Unsolved Past Papers Fall 2012

Cs201 final paper                                      072\2012

 

Mcqs were easy and from past papers.

  1. Write down the syntax in two different ways to initialize character array with string ‘programming’. 2

 

  1. Write the C++ code for the declaration of overloaded stream insertion(>>) and stream extraction(<<) operator for the object d of type Date. 2 marks

 

 

  1. What happens when an object is assigned to another object without overloading an assignment operator? 2 marks
  2. Suppose there is a template function ‘func’ having argument of type U and return type T. What will be the C++ syntax to call this function, when we pass a variable ‘x’ of type double and it is returning an int type? 2 marks

 

  1. If the requested memory is not available in the system then what does calloc(), malloc() and new operator return? 3 marks

 

  1. Which one of the given two methods is better to read from a file and Why ?  3 marks

Using stream insertion operator >>

Using get() function

  1. Write a function named Sum which takes an integer as its argument and uses a static integer variable to keep track of the sum of all values passed to it during the running of a program.  3 marks

 

  1. Given is the code for nested classes.

class First

{

public:

class Second

{     public:

Second()

{

fValue = 20;

}

void Display();

private:

int fValue;

};

};

Write the code to define Display() member function of class inner class outside the body of outer class. The function Display() will display the value of data member fValue of class First. 3marks

  1. Briefly explain the logic of given code. Also determine what is the value of ‘counter’ variable if the code below is executed ? 5 marks

 

main()

{

int num = 5;

int counter=0;

while(num != 0)

{

if ( num & 01)

counter++;

num>>=1;

}

return 0;

}

 

  1. Using Template (code given) have to write a function square() that takes “x” as double but return its square as integer.  5marks

 

  1. One  question was from the phone example in the handouts. Have to write part of missing code . 5marks

 

  1. Using manipulation operator show

Virtual——–university (8 – character between them) 5 marks

 

 

VU CS201- Introduction To Programming FinalTerm Solved Unsolved Past Papers Fall 2012

ALL NEW RESULTS
Educational News

Updated Educational News

Categories
POSTS BY DATE
December 2016
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031