CS201 Final Term Paper
Virtual Position Forum :: STUDY CORNER :: Study Matters :: VU Current Exam Papers :: FinalTerm Papers
Page 1 of 1 • Share
CS201 Final Term Paper
Suppose there is class A having data member 'x', 'y' and an object of class B. The class B has data members 'z'. Write the constructor of a class A that initializes the data members of class A and class B (using member initializing list). [2]
How can we declare and initialize static data members of a class? [2]
Write down the general syntax for a function that returns a reference? [2]
Differentiate between single-dimensional and multi-dimensional array? [2]
How many arguments does VU solutions binary member operator function binary non-member operator function take? [3]
What is an alternative of setw manipulator? [3]
Find the error in the given code [3]
How can we declare and initialize static data members of a class? [2]
Write down the general syntax for a function that returns a reference? [2]
Differentiate between single-dimensional and multi-dimensional array? [2]
How many arguments does VU solutions binary member operator function binary non-member operator function take? [3]
What is an alternative of setw manipulator? [3]
Find the error in the given code [3]
- Code:
for (int i=0; i<numRows; i++)
{
for (int j=0; j<numCols; j++)
}
elements[i,j] =m.elements [i][j];
}
}
- Code:
x=5;
Switch (x)
{
case 5;
cout<<Value is 5;
case 4;
cout<<Value is 4;
break;
}
What is meant by the lifetime of a variable and what is the lifetime of an automatic
variable? [5]
Write a short note on files and also explain how they are handled in C++? [5]
Find the error [5]
class Data
{
private:
const in data;
public:
Data( )
{
cout<<"Constructor Call…\n"; }
void getIncreament( )
{
Cout<<"Data = " <<++data;
}
};
void main( )
{
char*String ;
String= New char[15];
String="Welcome to VU";
cout<<String;
free (String);
}
Maryam Mirza- Monstars
-
Posts : 981
Join date : 2011-06-18
Age : 32
Character sheet
Experience:
(500/500)
Similar topics
» CS201 Final Term Paper
» CS201 - Introduction to Programming Final Term
» Fin623 Final Term Paper
» MKT610 Final Term Paper
» Mgt611 Final Term Paper
» CS201 - Introduction to Programming Final Term
» Fin623 Final Term Paper
» MKT610 Final Term Paper
» Mgt611 Final Term Paper
Virtual Position Forum :: STUDY CORNER :: Study Matters :: VU Current Exam Papers :: FinalTerm Papers
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Yesterday at 10:16 pm by ali001
» Amuse - Become Smarter
Wed May 15, 2024 10:50 am by ali001
» Fort Lock
Sat May 04, 2024 11:49 am by ali001
» house disrepair claims
Thu May 02, 2024 4:29 pm by Ibad Khan Buledi
» Bounce n Bang: Physics puzzler
Thu May 02, 2024 11:39 am by ali001
» AIChatSY - AIChatbot Assistant
Wed May 01, 2024 10:48 am by ali001
» Storybook Magic App
Tue Apr 30, 2024 7:06 pm by ali001
» Flower Book Match3 Puzzle Game
Tue Apr 30, 2024 12:17 pm by ali001
» Avian Influenza Symptom in Chickens "Bird Flu H5N1 Virus" Vet learning materials, Poultry Farming
Sat Apr 27, 2024 9:57 am by Ibad Khan Buledi