Advertisements
Advertisements
Write a short program to print the following series:
(a) 1 4 7 10...... 40
Concept: undefined >> undefined
Which of the following header file defines the standard I/O predefined functions?
Concept: undefined >> undefined
Advertisements
Write short note on pow() function in C++.
Concept: undefined >> undefined
Write note on Array of strings.
Concept: undefined >> undefined
What are the advantages of OOPs?
Concept: undefined >> undefined
Which of the following derives a class student from the base class school?
Concept: undefined >> undefined
Which visibility mode should be used when you want the features of the base class to be available to the derived class but not to the classes that are derived from the derived class?
Concept: undefined >> undefined
A class is derived from a class which is a derived class itself, then this is referred to as ______
Concept: undefined >> undefined
Why derived class is called a power-packed class?
Concept: undefined >> undefined
What are the points to be noted while deriving a new class?
Concept: undefined >> undefined
Based on the following class declaration answer the question?
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };
The member function that can be accessed by an object of bus Class is ______
Concept: undefined >> undefined
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Name the base class(/es) and derived class (/es).
Concept: undefined >> undefined
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of data members accessible from the object of class Result.
Concept: undefined >> undefined
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of all member functions accessible from the object of class Result.
Concept: undefined >> undefined
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of all members accessible from member functions of class Result.
Concept: undefined >> undefined
Name the volatile memory.
Concept: undefined >> undefined
Identify the output device.
Concept: undefined >> undefined
Identify the input device.
Concept: undefined >> undefined
