| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
|
#1 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 14 Times in 11 Posts Thanks: 0
Thanked 14 Times in 11 Posts
Rep Power: 19
|
hello
Every body please solve the technical questions of accenture !!! 27. ----means allowing objects of difference types to be considered as examples of a higher level set : 28. The primary characteristic of key field ? 29.Specify the relation between the entities Manager-------------- --employee ( managed by) 30. If a member initialiser is not provided for a member object of a class .The object - is called a) static fn b) non static fn c) default constructor d) none 31. class constest { private: const int i; public: constest():i(10) } 32. Inheritance b) abstract base class c) specifies a way to to define a const member data d) none 33. Iimplement polymorphism when by object belonging to different class can respond to the same message in diff ways. a) late binding b)dynamic binding c) dynamically created object d) virtual fun 34. Member function---------- and ----------- set and reset the format state of flags. a) set,reset b) set,get c) set, unset d) set ,unsetf 35. #include<iostream.h> struct abc { int i; abc(int j) { i=j;} public: void display() { cout<<i;} } void main() { abc ob(10); ob.disp(); } a)10 b) error : constructor is not accessible c) abc: i not accessible d)none 36. # include<iostream.h> class sample { public : sample(int **pp) { p=pp;} int **p; int **sample:: *ptr=&sample ::p; 37. In a file A...Z characters are written.if we open the file using fopen and lseek(fp,-10,2); c=getc(fp); printf("%c",c); what will be the output.? 38. Same question with lseek(fp,10,0); c=getc(fp); printf("%c",c); 39. what are far pointers and what is its usefullness? 40. Now some questions about extern variables. 41. #include<stdio.h> main() { char str[]={"hell"}; int i; for(i=0;i<5;i++) printf("%c%c%c%c\n",str[i],i[str],*(str+i),*(i+str)); getch(); } 42. Which of the following is not defined in string.h strtod,memchr,strspn,strchr 43. Questions on macros with arguments .same pattern given in TEST UR C SKILLS eg.#define SQUARE(x) x*x main() { ....... y=SQUARE(2+3); printf("%d",y); } 44. Remember an inline function does type checking and so it is better than a macro a question on this. 45. Some memory is allocated using malloc and then realloc is called. And now to write the sizeof the variable.. What it does and syntax.?
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#2 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 14 Times in 11 Posts Thanks: 0
Thanked 14 Times in 11 Posts
Rep Power: 19
|
hello
27. ----means allowing objects of difference types to be considered as examples of a higher level set : 28. The primary characteristic of key field ? It must be unique and not null 29.Specify the relation between the entities Manager-------------- --employee ( managed by) one to many relationship 30. If a member initialiser is not provided for a member object of a class .The object - is called a) static fn b) non static fn c) default constructor d) none 31. class constest { private: const int i; public: constest():i(10) } 32. Inheritance b) abstract base class c) specifies a way to to define a const member data d) none 33. Iimplement polymorphism when by object belonging to different class can respond to the same message in diff ways. a) late binding b)dynamic binding c) dynamically created object d) virtual fun 34. Member function---------- and ----------- set and reset the format state of flags. a) set,reset b) set,get c) set, unset d) set ,unsetf doubt a/b
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Feb 2006
Location: India
Posts: 18
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
27. ----means allowing objects of difference types to be considered as examples of a higher level set :
I THINK THE ANSWER IS CASTING.ISNT IT??? 29.Specify the relation between the entities Manager-------------- --employee YA THIS IS ONE TO MANY RELATION SHIP AS THERE WILL BE ONE MANAGER AND MANY EMPLOYEES |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|