For the following C program
struct base {int a,b;
base();
int virtual function1();}
struct derv1:base
{int b,c,d;
derv1()
int virtual function1();}
struct derv2 : base
{int a,e;
}
base::base()
{a=2;b=3;
}
derv1::derv1()
{b=5;
c=10;d=11;}
base::function1()
{return(100);
}
derv1::function1()
{
return(200);
}
main()
base ba;
derv1 d1,d2;
printf("%d %d",d1.a,d1.B.
Output of the program is:
A. a=2;b=3;
B. a=3; b=2;
C. a=5; b=10;
D. none
For the following C program
struct {
int x;
int y;
}abc;
x cannot be accessed by the following
1) abc-->x;
2) abc[0]-->x;
3) abc.x;
4) (abc)-->x;
A. 1, 2, 3
B. 2 & 3
C. 1 & 2
D. 1, 3, 4
Latest Answer: There are two types of device drivers. user space and kernel space drivers.usually all drivers associaed wih h/w are kernel space drivers.x-server is a user space driver through which we can develop applns wihout the knowledgee of ...
Which of the following is right in ms-windows
A. Application has single qvalue system has multiple qvalue
B. Application has multiple qvalue system has single qvalue
C. Application has multiple qvalue system has multiple qvalue
D. None
Latest Answer: Widgets are GUI objects like buttons, menus, dialog boxes and other such objects or object-related general functions. This can be compared with Active Template Library (ATL 3.0) on the Microsoft Platform, which provides Component Object Model (COM) developers ...
Latest Answer: ${DESTDIR} ...
The keystroke mouse entry are interpreted in ms windows as
A. Interrupt
B. Message
C. Event
D. None of the above
Latest Answer: Dynamic scoping 1 The variable that is not defined in the current scope is looked for in the most recent activation record. 2In computer programming in general, a scope is an enclosing context. Scopes have contents which are associated ...
View page << Previous 1 2 [3] 4 Next >>

Go Top