|
1. What is virtual memory? 2. Different types of inheritance? 3. What are all E.F.Codd rule? 4. What is the significance of friend keyword in C++? 5. What is circuit switching and packet switching? 6. Write a simple MFC program to create a window? 7. Which of the following is the correct code for strcpy, that is used to copy the contents from src to dest? a) strcpy (char *dst,char *src) { while (*src) *dst++ = *src++; } b) strcpy (char *dst,char *src) { while(*dst++ = *src++) } c) strcpy (char *dst,char *src) { while(*src) { *dst = *src; dst++; src++; } } d) strcpy(char *dst, char *src) { while(*++dst = *++src); } Answer : b 8. On a machine where pointers are 4 bytes long, what happens when the following code is executed. main() { int x=0,*p=0; x++; p++; printf ("%d and %d\n",x,p); } a) 1 and 1 is printed b) 1 and 4 is printed c) 4 and 4 is printed d) causes an exception Answer : b 9. What is printed when this program is executed main() { printf ("%d\n",f(7)); } f(X) { if (x<= 4) return x; return f(- -x); } a) 4 b) 5 c) 6 d) 7 Answer : a 10. Statistics indicate that men drivers are involved in more accidents than women drivers. Hence it may be concluded that a) sufficiently information is not there to conclude anything b) Men are actually better drivers but drive more frequently c) Women Certainly drive more cautiously than Men d) Men chauvinists are wrong about women's abilties. e) Statistics sometimes present a wrong picture of things
|