1. Which of the following is a mechanism of static polymorphism?





Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->All of the following are the merits of a side valve(L.head) operating mechanism, except-....
QA->A static member function can have access to:....
QA->A computer with a 32 bit wide data bus implements its memory using 8 K x 8 static RAM chips. The smallest memory that this computer can have is:....
QA->In 1686, which British scientist explained the mechanism of monsoon as a result of differential heating of the continents & oceans?....
QA->The part of an overhead valve mechanism arranged between the valve tappet and rocker arm is :....
MCQ->Which of the following statements are correct about static functions? Static functions can access only static data. Static functions cannot call instance functions. It is necessary to initialize static data. Instance functions can call static functions and access static data. this reference is passed to static functions.....
MCQ->Which of the following is a mechanism of static polymorphism?....
MCQ->Which of the following statement is correct about the program given below? #include<iostream.h> static double gDouble; static float gFloat; static double gChar; static double gSum = 0; class BaseOne { public: void Display(double x = 0.0, float y = 0.0, char z = 'A') { gDouble = x; gFloat = y; gChar = int(z); gSum = gDouble + gFloat + gChar; cout << gSum; } }; class BaseTwo { public: void Display(int x = 1, float y = 0.0, char z = 'A') { gDouble = x; gFloat = y; gChar = int(z); gSum = gDouble + gFloat + gChar; cout << gSum; } }; class Derived : public BaseOne, BaseTwo { void Show() { cout << gSum; } }; int main() { Derived objDev; objDev.BaseTwo::Display(10, 20, 'Z'); return 0; }....
MCQ->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; }....
MCQ->What will be the output of the program ? #include<stdio.h> int check(static int, static int); int main() { int c; c = check(10, 20); printf("%d\n", c); return 0; } int check(static int i, static int j) { int p, q; p = &i; q = &j; if(i >= 45) return (p); else return (q); }....
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