You are on page 1of 10
ae. Common Entrance Test for Admission to M.Sc. (Computer Science), May 2007 COMPUTER SCIENCE Time: 2 Hours Max. Marks: 100 Instructions Questions under all Parts are to be answered in the booklet itself. To be filled in by the candidate Register | In figures Number | tn words PART —-A Objective Type Answer all questions in the answer sheet provided choosing the most appropriate answer. 1. What will be the output of following program ? a) 4, 28, 32 b) no output 4 d) 28 ©) 32 2. In C, what function enable the user to input information while the program is in execution ? a) Cin b) Scanf ) read 4) Input ©) none of these 3. In C, how many relational operators ? a) 4 b) 5 06 d)7 e2 PTO. 717 b 4. What will be the output of following program ? main () . { int i,j; 7: jetti printf (°C = %d, j = %d \n” i, j) ; } a) 8,8 b) 8,7 )7, 8 d) 7,7 e) none of these 5. What is the function in C returns length of a string ? a) len b) strlen ©) length d) stringlen e) none of these 6. When break statement is encountered inside a loop, which of the following occurs ? a) Control goes to end of program b) Control leaves the function that contains the loop ) Cause an exit from the inner most loop containing it ) Causes an exit from all nested loops e) None of these 7. The two parameters supported by C++ are a) Value parameter and reference parameter b) Internal parameter and external parameter c) Integer and floating d) Static parameter and dynamic parameter ) None of these 8. Which of these cannot be passed to a function ? a) reference variable __b) arrays ©) clause object 4d) header file ) none of these 9. The major role of inheritance in C++ is a) To facilitate conversion of a data type b) To help modular programming ©) To facilitate re-usability of code d) To extend capabilities of a class e) To hide details of base class 10. What will be the output of following program segment ? { int | = 205 ; i%=100; Cout << “i=” <

You might also like