my today,s paper
all mcq from past paperz.........
r question jo yaad hai wo ye hain....
Which of the following of the keywprd of c++
· Numeric
· static
· Structure
· These
2 If Rollno is a const datamember of a class student then which definition is correct for member function show()
· Int show()const{return roll no;}
· Void show()const{return roll no;}
· In showcon{return roll no+50;}
· Int show(num)const{rollno=}
3 The function that is define inside a class are by default----------
INLINE
OULINE
PUBLIC
PROTECTED
Q; you are required to write its main()program in which will testbook and tape classes by creating instance of them it will also ask user to fill data with ger data(), and the display this with put data?
Q. function template ?
Q considered the code snippt , the variable “var1” of class A has been accessed in class B , is it correct or not? Justify your answer
Class A{
Protected:
Int var1;
};
Class B:public
{
Private:
Int var2;
Public:
Void print()
{cout”var1”=var1end1”var2”=var2;}
}
Q write template function take one template paramerter and always return value that is always equal to double of its parameter value(parameter*2)?
Q describe three properties for container to implement generic algorithms?
Q list down three cases cases in which copy constructor are called?
Q write c++ code that uses tryblock in member initialize list of any class?
Q suppose there is a “Teacher” with all its implementation already provided in c++ . now you are required to write c++ code which demonstrates difference copy constructor and overloaded assignment operator in main()function
Q Sort data in the order in which compiler searches a function. Complete specialization, generic template, Partial specialization, Ordinary function.
all mcq from past paperz.........
r question jo yaad hai wo ye hain....
Which of the following of the keywprd of c++
· Numeric
· static
· Structure
· These
2 If Rollno is a const datamember of a class student then which definition is correct for member function show()
· Int show()const{return roll no;}
· Void show()const{return roll no;}
· In showcon{return roll no+50;}
· Int show(num)const{rollno=}
3 The function that is define inside a class are by default----------
INLINE
OULINE
PUBLIC
PROTECTED
Q; you are required to write its main()program in which will testbook and tape classes by creating instance of them it will also ask user to fill data with ger data(), and the display this with put data?
Q. function template ?
Q considered the code snippt , the variable “var1” of class A has been accessed in class B , is it correct or not? Justify your answer
Class A{
Protected:
Int var1;
};
Class B:public
{
Private:
Int var2;
Public:
Void print()
{cout”var1”=var1end1”var2”=var2;}
}
Q write template function take one template paramerter and always return value that is always equal to double of its parameter value(parameter*2)?
Q describe three properties for container to implement generic algorithms?
Q list down three cases cases in which copy constructor are called?
Q write c++ code that uses tryblock in member initialize list of any class?
Q suppose there is a “Teacher” with all its implementation already provided in c++ . now you are required to write c++ code which demonstrates difference copy constructor and overloaded assignment operator in main()function
Q Sort data in the order in which compiler searches a function. Complete specialization, generic template, Partial specialization, Ordinary function.
Comments
Post a Comment
Please give us your feedback & help us to improve this site.