Friday, January 22, 2010

Agile C++ Test Questions


C++:
(1)the difference b/w pure virtual fn.& virtual fn.
(a)pure virtual function. is initialized to zero.
(b)

(2)virtual destructor’s are used for
(a)
(3)find legal statement
(a)cout>>”name”>>endl;
(b)cout<<”name<
(c)cout<<”name”<
(4)find the o/p of the program
void main()
{
int a=10;b;
if(a<=10)
b=4;
if(a>10)
b=5;
cout<
}

(a)it don’t be compiled
(b)it compiles and o/p’s 10 4(ans)
(5)a question on copying or assigning
(6)early or static binding means
(a)at runtime
(b)at compile time(ans)
(7)one question on global variables,one question on globally declared static variable
(8)two question on “vector” type
(9)the branch of a tree which has no child’s is called
(10)when a node c is inserting b/w nodes a and b how many pointer will be modified
(a)2(check)

No comments:

Post a Comment