<<= Back Next =>>
You Are On Multi Choice Question Bank SET 743

37151. Which of the following can be overloaded?





37152. Which of the following means "The use of an object of one class in definition of another class"?





37153. Which of the following is the only technical difference between structures and classes in C++?





37154. Which of the following statements is correct about the program given below? class Bix { public: static void MyFunction(); }; int main() { void(ptr)() = &Bix::MyFunction; return 0; }





37155. Which of the following statements are correct for a static member function? It can access only other static members of its class. It can be called using the class name, instead of objects.





37156. What will be the output of the following program? #include<iostream.h> class Bix { public: int x; }; int main() { Bix p = new Bix(); (p).x = 10; cout<< (p).x << " " << p->x << " " ; p->x = 20; cout<< (p).x << " " << p->x ; return 0; }





37157. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { static int x; public: static void SetData(int xx) { x = xx; } void Display() { cout<< x ; } }; int IndiaBix::x = 0; int main() { IndiaBix::SetData(33); IndiaBix::Display(); return 0; }





37158. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { static int x; public: static void SetData(int xx) { x = xx; } static void Display() { cout<< x ; } }; int IndiaBix::x = 0; int main() { IndiaBix::SetData(44); IndiaBix::Display(); return 0; }





37159. What will be the output of the following program? #include<iostream.h> class BixTeam { int x, y; public: BixTeam(int xx) { x = ++xx; } void Display() { cout<< --x << " "; } }; int main() { BixTeam objBT(45); objBT.Display(); int p = (int)&objBT; p = 23; objBT.Display(); return 0; }





37160. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { static int x; public: static void SetData(int xx) { this->x = xx; } static void Display() { cout<< x ; } }; int IndiaBix::x = 0; int main() { IndiaBix::SetData(22); IndiaBix::Display(); return 0; }





37161. What will be the output of the following program? #include<iostream.h> class India { public: struct Bix { int x; float y; void Function(void) { y = x = (x = 44); y = --y y; } void Display() { cout<< y << endl; } }B; }I; int main() { I.B.Display(); return 0; }





37162. What will be the output of the following program? #include<iostream.h> #include<string.h> class IndiaBix { int val; public: void SetValue(char str1, char str2) { val = strcspn(str1, str2); } void ShowValue() { cout<< val; } }; int main() { IndiaBix objBix; objBix.SetValue((char)"India", (char)"Bix"); objBix.ShowValue(); return 0; }





37163. Which of the following statement is correct about the program given below? #include<iostream.h> #include<string.h> class IndiaBix { public: void GetData(char s, int x, int y ) { int i = 0; for (i = x-1; y>0; i++) { cout<< s[i]; y--; } } }; int main() { IndiaBix objBix; objBix.GetData((char)"Welcome!", 1, 3); return 0; }






37164. Which of the following statement is correct about the program given below? #include<iostream.h> class BixData { int x, y, z; public: BixData(int xx, int yy, int zz) { x = ++xx; y = ++yy; z = ++zz; } void Show() { cout<< "" << x++ << " " << y++ << " " << z++; } }; int main() { BixData objData(1, 2, 3); objData.Show(); return 0; }





37165. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { int x; float y; public: void Function() { x = 4; y = 2.50; delete this; } void Display() { cout<< x << " " << y; } }; int main() { IndiaBix pBix = new IndiaBix(); pBix->Function(); pBix->Function(); pBix->Display(); return 0; }





37166. What will be the output of the following program? #include<iostream.h> class IndiaBix { static int count; public: static void First(void) { count = 10; } static void Second(int x) { count = count + x; } static void Display(void) { cout<< count << endl; } }; int IndiaBix::count = 0; int main() { IndiaBix :: First(); IndiaBix :: Second(5); IndiaBix :: Display(); return 0; }






37167. What will be the output of the following program? #include<iostream.h> class BixBase { public: float x; }; class BixDerived : public BixBase { public: char ch; void Process() { ch = (int)((x=12.0)/3.0); } void Display() { cout<< (int)ch; } }; int main() { class BixDerived objDev = new BixDerived; objDev->Process(); objDev->Display(); return 0; }





37168. Which of the following statement is correct about the program given below? #include<iostream.h> #include<process.h> class IndiaBix { static int x; public: IndiaBix() { if(x == 1) exit(0); else x++; } void Display() { cout<< x << " "; } }; int IndiaBix::x = 0; int main() { IndiaBix objBix1; objBix1.Display(); IndiaBix objBix2; objBix2.Display(); return 0; }






37169. Which of the following statement is correct about the program given below? #include<iostream.h> class BixBase { int x, y; public: BixBase(int xx = 10, int yy = 10) { x = xx; y = yy; } void Show() { cout<< x y << endl; } }; class BixDerived { private: BixBase objBase; public: BixDerived(int xx, int yy) : objBase(xx, yy) { objBase.Show(); } }; int main() { BixDerived objDev(10, 20); return 0; }





37170. Two simply supported beams A and B of same width have identical loading .What is the ratio strength of beam A/strength of beam If beam A has depth double that of beam B?





37171. What will be the output of the following program? #include<iostream.h> class A { public: void BixFunction(void) { cout<< "Class A" << endl; } }; class B: public A { public: void BixFunction(void) { cout<< "Class B" << endl; } }; class C : public B { public: void BixFunction(void) { cout<< "Class C" << endl; } }; int main() { A ptr; B objB; ptr = &objB; ptr = new C(); ptr->BixFunction(); return 0; }





37172. What is the least count of a transit theodolite?





37173. What will be the output of the following program? #include<iostream.h> class Point { int x, y; public: Point(int xx = 10, int yy = 20) { x = xx; y = yy; } Point operator + (Point objPoint) { Point objTmp; objTmp.x = objPoint.x + this->x; objTmp.y = objPoint.y + this->y; return objTmp; } void Display(void) { cout<< x << " " << y; } }; int main() { Point objP1; Point objP2(1, 2); Point objP3 = objP1 + objP2; objP3.Display(); return 0; }






37174. What will be the output of the following program? #include<iostream.h> #include<string.h> class IndiaBix { char str[50]; char tmp[50]; public: IndiaBix(char s) { strcpy(str, s); } int BixFunction() { int i = 0, j = 0; while((str + i)) { if((str + i++) == ' ') (tmp + j++) = (str + i); } (tmp + j) = 0; return strlen(tmp); } }; int main() { char txt[] = "Welcome to IndiaBix.com!"; IndiaBix objBix(txt); cout<< objBix.BixFunction(); return 0; }





37175. What happens when we try to compile the class definition in following code snippet? class Birds {}; class Peacock : protected Birds {};





37176. A steel rod of length 20 m at 300C is heated upto 400What is the temperature stress developed if the expansion is prevented?Given,a=12 cr 10-6 per 0C,E=2 cr 105N/mm2





37177. Which of the following statement is correct regarding destructor of base class?





37178. Which of the following two entities (reading from Left to Right) can be connected by the dot operator?





37179. How can we make a class abstract?





37180. What will be the deflection at the centre of a simply supported beam of rectangular cross section if the depth is doubled,for the same load W?





37181. If three copianar,concurrent forces are acting at a point are in equilibrium,of which two of them are collinear,then what is the magnitude of third force which is acting at an angle with other two forces?





37182. Where is the keystone of an arch being placed?





37183. What is measured using a venturimeter?





37184. What will be the elongation of prismatic bar of length L,cross sectional area A,hanging vertically under its own weight W?





37185. Which of the following term is used for a function defined inside a class?





37186. Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?





37187. How many instances of an abstract class can be created?





37188. Which of the following cannot be friend?





37189. Which of the following concepts of OOPS means exposing only necessary information to client?





37190. Why reference is not same as a pointer?




37191. cout is a/an __________ .





37192. Which of the following concepts provides facility of using object of one class inside another class?





37193. How many types of polymorphisms are supported by C++?





37194. Which of the following is an abstract data type?





37195. Which of the following concepts means adding new components to a program as it runs?





37196. In a hydro electric scheme which of the following is used to carry water from storage reservoir to the power house?





37197. Which of the following correctly describes overloading of functions?





37198. Which of the following approach is adapted by C++?





37199. Which of the following is correct about function overloading?





37200. Which of the following is correct about class and structure?





<<= Back Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution