BCS C101

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

ABC

BCS-C101
SEMESTER EXAMINATION- DECEMBER 2023
CLASS: B.SC. SEMESTER: I
SUBJECT: COMPUTER SCIENCE
OBJECT-ORIENTED PROGRAMMING IN C++

Time: 2 hour Max. Marks: 60

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)

Q. 1: What is polymorphism? Write a program to illustrate the concept of virtual function.


Q. 2: What is constructor? Describe various types of constructors.
Q. 3: What is pointer? How can you pass pointers as function arguments?
Q. 4: What is inline function? Write a program in C for inline function.
Q. 5: What is operator? Explain different types of operators in C/C++.

PAGE 2 OF 2
BCS-C101

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy