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

51401. What is the technical word for the function ~IndiaBix() defined in the following program? #include<iostream.h> class IndiaBix { int x, y; public: IndiaBix(int xx = 10, int yy = 20 ) { x = xx; y = yy; } void Display() { cout<< x << " " << y << endl; } ~IndiaBix() { } }; int main() { IndiaBix objBix; objBix.Display(); return 0; }





51402. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { int x; public: IndiaBix(short ss) { cout<< "Short" << endl; } IndiaBix(int xx) { cout<< "Int" << endl; } IndiaBix(char ch) { cout<< "Char" << endl; } ~IndiaBix() { cout<< "Final"; } }; int main() { IndiaBix ptr = new IndiaBix('B'); return 0; }






51403. For no tension developed in a gravity dam,where the resultant of all forces on dam should always lie?





51404. What will be the output of the following program? #include<iostream.h> class BixBase { public: BixBase() { cout<< "Base OK. "; } ~BixBase() { cout<< "Base DEL. "; } }; class BixDerived: public BixBase { public: BixDerived() { cout<< "Derived OK. "; } ~BixDerived() { cout<< "Derived DEL. "; } }; int main() { BixBase basePtr = new BixDerived(); delete basePtr; return 0; }






51405. What will be the output of the following program? #include<iostream.h> class BixBase { public: BixBase() { cout<< "Base OK. "; } virtual ~BixBase() { cout<< "Base DEL. "; } }; class BixDerived: public BixBase { public: BixDerived() { cout<< "Derived OK. "; } ~BixDerived() { cout<< "Derived DEL. "; } }; int main() { BixBase basePtr = new BixDerived(); delete basePtr; return 0; }






51406. What will be the output of the following program? #include<iostream.h> class BixBase { public: int x, y; BixBase(int xx = 0, int yy = 5) { x = ++xx; y = --yy; } void Display() { cout<< --y; } ~BixBase(){} }; class BixDerived : public BixBase { public: void Increment() { y++; } void Display() { cout<< --y; } }; int main() { BixDerived objBix; objBix.Increment(); objBix.Display(); return 0; }






51407. What will be the out of the following program? #include<iostream.h> class BixBase { protected: int x, y; public: BixBase(int xx = 0, int yy = 0) { x = xx; y = yy; } void Show() { cout<< x this->y << endl; } }; class BixDerived { private: BixBase objBase; public: BixDerived(int xx, int yy) : objBase(xx, yy) { objBase.Show(); } ~BixDerived() { } }; int main() { BixDerived objDev(10, 20); return 0; }






51408. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { int x; public: IndiaBix() { x = 0; } IndiaBix(int xx) { x = xx; } IndiaBix(IndiaBix &objB) { x = objB.x; } void Display() { cout<< x << " "; } }; int main() { IndiaBix objA(25); IndiaBix objB(objA); IndiaBix objC = objA; objA.Display(); objB.Display(); objC.Display(); return 0; }





51409. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { int x, y; public: IndiaBix() { x = 0; y = 0; } IndiaBix(int xx, int yy) { x = xx; y = yy; } IndiaBix(IndiaBix objB) { x = objB->x; y = objB->y; } void Display() { cout<< x << " " << y; } }; int main() { IndiaBix objBix( new IndiaBix(20, 40) ); objBix.Display(); return 0; }





51410. What will be the out of the following program? #include<iostream.h> class BixBase { public: int x, y; public: BixBase(int xx = 0, int yy = 0) { x = xx; y = yy; } }; class BixDerived : public BixBase { private: BixBase objBase; public: BixDerived(int xx, int yy) : BixBase(xx), objBase(yy) { cout << this->x << " " << this->y << " " << objBase.x << " " << objBase.y << " "; } ~BixDerived() { } }; int main() { BixDerived objDev(11, 22); return 0; }






51411. Two bodies of masses 5 kg and 3 kg are hung to the ends of rope,passing over a smooth frictionless pulley.With what acceleration the heavier mass comes down?





51412. A constructor that accepts __________ parameters is called the default constructor.





51413. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?





51414. Can a class have virtual destructor?



51415. Destructor has the same name as the constructor and it is preceded by ______ .





51416. For automatic objects, constructors and destructors are called each time the objects





51417. If WL=liquid limit,Wp=plastic limit,Ws=shrinkage limit then which of the following is equal to plasticity index(1p)?





51418. Among the following which equipment is not used in chain survey?





51419. Name the end supports of the superstructure of a bridge:





51420. A body was thrown vertically down from a tower.What is the distance travelled by the body in the third second of its fall.If its initial velocity was 5 m/sec?





51421. Name the structure carrying discharge of a natural stream across a canal intercepting the stream:





51422. Which among the following is torsional rigidity?





51423. During setting and hardening of cement concrete,hydration of which among the following contributes to the progressive strength of concrete?





51424. Which of the following function / type of function cannot be overloaded?





51425. Which of the following function declaration is/are incorrect?






51426. What is the polar moment of inertial of a circle of diameter D?





51427. Where the default value of parameter have to be specified?





51428. What is called,the time in hours taken by rainwater that falls at the farthest point to reach the outlet of a catchment?





51429. Name the short sections of wood or steel,which are fixed on principal refter of trusses support purlins:





51430. Name the area to be irrigated by a dam:





51431. Among the following methods for computing average precipitation(or rainfall)in which method the area of the basin is not taken into account?





51432. Which of the following function / types of function cannot have default parameters?





51433. What is the super elevation (expressed in percentage terms)required for a road curve radius 1000 m if the design speed is 100 km/hour?





51434. What will be the output of the following program? #include<iostream.h> long BixFunction(int x, int y = 5, float z = 5) { return(++x ++y + (int)++z); } int main() { cout<< BixFunction(20, 10); return 0; }






51435. What will be the output of the following program? #include<iostream.h> int BixFunction(int a, int b = 3, int c = 3) { cout<< ++a ++b --c ; return 0; } int main() { BixFunction(5, 0, 0); return 0; }





51436. What will be the output of the following program? #include<iostream.h> void MyFunction(int a, int b = 40) { cout<< " a = "<< a << " b = " << b << endl; } int main() { MyFunction(20, 30); return 0; }





51437. Which of the following statement is correct about the program given below? #include<iostream.h> static int b = 0; void DisplayData(int x, int y = &b) { cout<< x << " " << y; } int main() { int a = 10, b = 20 ; DisplayData(&a, &b); return 0; }





51438. What will be the output of the following program? #include<iostream.h> typedef void(FunPtr)(int); int Look(int = 10, int = 20); void Note(int); int main() { FunPtr ptr = Note; (ptr)(30); return 0; } int Look(int x, int y) { return(x + y % 20); } void Note(int x) { cout<< Look(x) << endl; }






51439. Which of the following statement is correct about the program given below? #include<iostream.h> class IndiaBix { public: void Bix(int x = 15) { x = x/2; if(x > 0) Bix(); else cout<< x % 2; } }; int main() { IndiaBix objIB; objIB.Bix(); return 0; }






51440. Which of the following statement is correct about the program given below? #include<iostream.h> long GetNumber(long int Number) { return --Number; } float GetNumber(int Number) { return ++Number; } int main() { int x = 20; int y = 30; cout<< GetNumber(x) << " "; cout<< GetNumber(y) ; return 0; }






51441. What will be the output of the following program? #include<iostream.h> struct MyData { public: int Addition(int a, int b = 10) { return (a = b + 2); } float Addition(int a, float b); }; int main() { MyData data; cout<<data.Addition(1)<<" "; cout<<data.Addition(3, 4); return 0; }






51442. Which of the following statement is correct about the program given below? #include<iostream.h> int BixTest(int x, int y); int BixTest(int x, int y, int z = 5); int main() { cout<< BixTest(2, 4) << endl; return 0; } int BixTest(int x, int y) { return x y; } int BixTest(int x, int y, int z = 5) { return x y z; }





51443. What will be the output of the following program? #include<iostream.h> class IndiabixSample { public: int a; float b; void BixFunction(int a, float b, float c = 100.0f) { cout<< a % 20 + c --b; } }; int main() { IndiabixSample objBix; objBix.BixFunction(20, 2.000000f, 5.0f); return 0; }






51444. Which of the following statement is correct about the program given below? #include<iostream.h> void Tester(int xx, int yy = 5); class IndiaBix { int x; int y; public: void Tester(int xx, int yy = 5) { x = xx; y = yy; cout<< ++x % --y; } }; int main() { IndiaBix objBix; objBix.Tester(5, 5); return 0; }






51445. Which of the following statement is correct about the program given below? #include<iostream.h> class PowerFinder { public: void Power(int x = 1, int y = 1) { int P = 1, i = 1; while(++i <= y) { P = x; } cout<< P << endl; } }; int main() { PowerFinder FP; FP.Power(2, 6); return 0; }






51446. Which of the following statement is correct about the program given below? #include<iostream.h> void Tester(float xx, float yy = 5.0); class IndiaBix { float x; float y; public: void Tester(float xx, float yy = 5.0) { x = xx; y = yy; cout<< ++x % --y; } }; int main() { IndiaBix objBix; objBix.Tester(5.0, 5.0); return 0; }






51447. Which of the following statement is correct about the program given below? #include<iostream.h> const double BixConstant(const int, const int = 0); int main() { const int c = 2 ; cout<< BixConstant(c, 10)<< " "; cout<< BixConstant(c, 20)<< endl; return 0; } const double BixConstant(const int x, const int y) { return( (y + (y x) x % y) 0.2); }






51448. Which of the following statement is correct about the program given below? #include<iostream.h> struct MyStructure { class MyClass { public: void Display(int x, float y = 97.50, char ch = 'a') { cout<< x << " " << y << " " << ch; } }Cls; }Struc; int main() { Struc.Cls.Display(12, 'b'); return 0; }






51449. Which of the following statement is correct about the program given below? #include<iostream.h> long FactFinder(long = 5); int main() { for(int i = 0; i<= 0; i++) cout<< FactFinder() << endl; return 0; } long FactFinder(long x) { if(x < 2) return 1; long fact = 1; for(long i = 1; i <= x-1; i++) fact = fact i; return fact; }






51450. What will be the output of the following program? #include<iostream.h> double BixFunction(double, double, double = 0, double = 0, double = 0); int main() { double d = 2.3; cout<< BixFunction(d, 7) << " "; cout<< BixFunction(d, 7, 6) << endl; return 0; } double BixFunction(double x, double p, double q, double r, double s) { return p +(q +(r + s x) x) x; }





<<= 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
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions