3
KENDRIYA VIDYALAYA NO 1, KALPAKKAM CLASS XII - COMPUTER SCIENCE MM – 50 DATE: Time allowed : 1.5 hours ______________________________________________ _________ Note:- (I) All questions are compulsory. (II)Programming Language : C++ SECTION – A Questions from 1 to 10 carries of 1 mark each. 1. Write the difference between while and do-while? 2. What do you mean by function prototype? 3. What do you mean by call by reference? 4. What is recursion? 5. By default all the members of a structure are:- (i)Public (ii)Private (iii) protected 6. What is type modifier? Explain. 7. Give the output of the following program:- void main() { int i=3; cout<<i+5<<i-4<<i<<endl; } 8. Name the header file(s) that shall be needed for successful compilation of the following C++ code void main() { char String[20]; gets(String); strcat(String,”CBSE”); puts(String); } 9. What is the difference between a variable and a constant? 10. Briefly describe the importance of iostream.h file? SECTION - B Question from 11 to 18 carries of 2 marks each. 11. What is identifier? Write down naming convention of identifiers. 12. What is data type? Explain different types of data type available in C++.

Xii Mat April-may

Embed Size (px)

DESCRIPTION

Xii Mat April-may

Citation preview

KENDRIYA VIDYALAYA NO 1, KALPAKKAM

CLASS XII - COMPUTER SCIENCE

MM 50DATE:Time allowed : 1.5 hours _______________________________________________________

Note:- (I) All questions are compulsory. (II)Programming Language : C++

SECTION A

Questions from 1 to 10 carries of 1 mark each.

1. Write the difference between while and do-while?

2. What do you mean by function prototype?

3. What do you mean by call by reference?

4. What is recursion?

5. By default all the members of a structure are:-

(i)Public(ii)Private(iii) protected

6. What is type modifier? Explain.

7. Give the output of the following program:-

void main()

{

int i=3; cout