BCS C101
BCS C101
BCS C101
BCS-C101
SEMESTER EXAMINATION- DECEMBER 2023
CLASS: B.SC. SEMESTER: I
SUBJECT: COMPUTER SCIENCE
OBJECT-ORIENTED PROGRAMMING IN C++
Note:
1. Question Paper is divided into three sections: A, B and C. Attempt every section as per
given instructions.
2. Only ‘A’ copy will be given to answer all the questions. ‘B’ copy will not be given.
SECTION-A
(VERY SHORT ANSWER TYPE QUESTIONS)
Instructions: There are five questions in this section. Answer each question in a few words. Each
question carries two marks. (5 x 2 = 10 marks)
Q. 1: Define keyword. Explain the use of keywords.
Q. 2: What is use of switch-case in C/C++?
Q. 3: What do you mean by Macro?
Q. 4: What is array of structure?
Q. 5: What do you mean by string?
SECTION-B
(SHORT ANSWER TYPE QUESTIONS)
Instructions: Answer any four questions in about 150 words each. Each question carries five marks.
(4 x 5 = 20 marks)
Q. 1: What is Object Oriented Programming? Explain features of Object Oriented Programming.
Q. 2: What is function? How can you pass array to the functions? Explain with an example.
Q. 3: What do you mean by loop? Draw the difference between while loop and do while loop.
Q. 4: What is File? How can you open and close a file in C/C++?
Q. 5: Define function overloading? Write a program to illustrate function overloading.
Q. 6: What is array? Write a program in C/C++ for linear search.
PAGE 1 OF 2
BCS-C101
SECTION-C
(LONG ANSWER TYPE QUESTIONS)
Instructions: Answer any three questions in detail. Each question carries 10 marks.
(3 x 10 = 30 marks)
PAGE 2 OF 2
BCS-C101