|
1. A doctor is supposed to see his patients at 9.00, 10,00 11.00, 1.00 PM , 2.00 PM , 3.00 PM. Rajiv, Mark, Mathew, Hassan, Priya, Reni are the patients . Hassan is scheduled to be seen in early afternoon. Priya should be seen earlier in the day than Reni. Other such conditions were given and you needed to find based on the given conditions that how many such combinations are possible. 2. main() { char dummy[20]; scanf("%[^a]",dummy); printf("%s", dummy); } what will it do? a) ERROR b) take characters till ctrl z is pressed c) take upto 19 characters d) None of These 3. In a film festival Amitabh ,SRK, Kamal hassan ,Hrithik and Subhash Ghai , Maniratnam and Yash Chopra are available as judges. A team of three is to be sent. The team must contain atleast one actor and one director. If SRK is selected Kamal Hassan should also be selected and vice versa, If Amitabh is selected Subhash Ghai cannot be selected. If Hrithik is selected Maniratnam is also selected and vice versa. What should be the team if Amitabh is selected ? 4. CDROM access is a) Random b) Semi Random 3) Sequential 5. What is the difference between C & C++ ? 6. How to resolve ambiguity in multiple inheritance ? 7. What is the difference between function overriding and overloading ? 8. A team of at least three people is to be constituted for Mayor of a village for representation in a trade fair. One man, one woman, two boys, three girls are available. All three males cannot be selected, all four females cannot be selected. The team should contain at least one elder. What is the possible configuration that exactly sums up the formation of team : a) three girls b) two boys and the lady c) the man, woman , one boy, one girl d) two boys, woman and a girl. 9. What is pointer to a pointer? How it is declared and how is it accessed? 10. Static member of a class is a) class specific b) Object specific c) Referenced by using the scope resolution operator d) a & c 11. Difference between calloc and malloc & realloc? 12. In C what is spawnv () function, describe its execution 13. What is multithreading? How can it be implemented using C, write a program to describe it? 14. main () { printf("%c","abcdef"[4]); } what is the output ? a) abcdef b) d c) e d) ERROR 15. Three ice creams are to be made available every day by the college canteen. The IC available are strawberry, butterscotch,vanilla,choco, mango, choco-vanilla, pineapple. Each day should have ice creams which was also present day before. All the icecreams can be repeated only thrice during the entire week .IF choco, vanilla ,straw berry is given on Wednesday . What should be given on Thursday
|