I M.Sc. Computer Science
I Semester
Object Oriented Analysis and Design & C++
II Internal
Total Marks:20
Part – A (2 x 1 = 2 Marks)
Choose the Correct Answer:
1. Which of the following is used for comments in C++?
(a) /* comment */ (b) // comment */ (c) // comment (d) both // comment or
/* comment */
2. Which of the following is a correct identifier in C++?
(a) VAR_1234 (b) $var_name (c) 7VARNAME (d) 7var_name
Part – B (2 x 5 = 10 Marks)
Answer ALL questions, choosing either (a) or (b)
3) (a) What are the different data types present in C++?
(OR)
(b) What are references in C++?
4) a) What do you mean by Call by Value and Call by Reference?
(OR)
b) Define token in C++
Part – C (1 x 8 = 8 Marks)
Answer ALL questions, choosing either (a) or (b)
5) a) What is the difference between C and C++?
(OR)
b) What is the difference between struct and class?