CBSE Class 12 Computer Science (C++) 2016 Delhi-Set-4 Previous Year Question Paper
This is the CBSE Class 12 Computer Science (C++) Previous Year Question Paper for the 2016 Delhi-Set-4 examination. The paper is divided into two sections, with Section A for C++ and Section B for Python. Candidates must attempt either Section A or Section B, and Section C is compulsory. The total marks for the examination are 70, with a duration of 3 hours. This question paper includes questions on C++ programming concepts, syntax, and output prediction. Solving this authentic board question paper is crucial for students to understand the exam pattern, identify important topics, and enhance their preparation for the upcoming CBSE board exams.
Quick info
| Board | CBSE |
|---|---|
| Class | 12 |
| Subject | Computer Science (C++) |
| Session | 2016 |
| Language | English |
| Type | Previous Year Question Paper |
| Exam type | Board Exam |
Paper pattern
The exam is divided into Section A (C++) or Section B (Python), and Section C is compulsory. The total marks are 70 and the time allowed is 3 hours.
Topics covered
Paper topics
- C++ Identifiers
- C++ Header Files
- C++ Syntax Errors
- C++ String Manipulation
- C++ Program Output
- C++ Programming Concepts
Important topics
- C++ Identifiers
- C++ Header Files
- C++ Syntax Correction
- C++ Program Output Analysis
PDF preview
Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.
Question paper text
SET - 4
Series: ONS/1
Code No. 91/1
Roll No.
Candidates must write the Code on
the title page of the answer-book.
Please check that this question paper contains 16 printed pages.
Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the candidate.
Please check that this question paper contains 7 questions.
Please write down the Serial Number of the question before attempting it.
- 15 minute time has been allotted to read this question paper. The question paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the students will read the question paper only and will not write any answer on the answer-book during this period.
COMPUTER SCIENCE
Time allowed : 3 hours
Maximum marks: 70
General Instructions:
- Programming Language in SECTION <math>A: C++</math>.
- Programming Language in SECTION B: Python.
- Answer either SECTION A or B, and SECTION C is compulsory.
- It is compulsory to mention on the page 1 in answer book whether you are attempting SECTION A or SECTION B.
- All questions are compulsory within each section.
SECTION - A
(Only for Candidates, who opted for C++)
- (a) Out of the following, find those identifiers, which cannot be used for naming
Variable, Constants or Functions in a C++ program : 2
_Cost, Price*Qty, float, Switch, Address One, Delete, Number12, do
91/1 1 [P.T.O.
- Jayapriya has started learning C++ and has typed the following program. When she compiled the following code written by her, she discovered that she needs to include some header files to successfully compile and execute it. Write the names 1 void main() { float A, Number, Outcome; cin>>A>>Number; Outcome=pow(A, Number); cout << Outcome << end1;</pre> }
- Rewrite the following C++ code after removing any/all syntactical errors with each
correction underlined. 2
Note: Assume all required header files are already being included in the program. #define Equation <math>(p,q)=p+2*q</math> void main() { float A=3.2;B=4.1; C=Equation(A,B); cout<<'Output='<<C<<endl;</pre>
- Find and write the output of the following C++ program code : 2 Note: Assume all required header files are already included in the program. typedef char STRING[80]; void MIXITNOW(STRING S) { int Size=strlen(S); for (int <math>I=0</math>; <math>I<Size-1</math>; <math>I+=2</math>) char WS=S[I]; <math>S[I]=S[I+1];</math> <math>S[I+1]=WS;</math> for (I=1; I<Size; I+=2)</pre> if(S[I]>='M' && S[I]<='U') S[I]='@'; } void main() { STRING Word="CRACKAJACK"; MIXITNOW (Word); cout<<Word<<endl;</pre> }
91/1 2
Frequently asked questions
What is this document?
This is the CBSE Class 12 Computer Science (C++) Previous Year Question Paper for the 2016 Delhi-Set-4 examination.
What is the total marks and time duration for the exam?
The Computer Science exam has a maximum of 70 marks and a time duration of 3 hours.
Which programming languages are covered in this paper?
This paper covers C++ in Section A and Python in Section B. Candidates must choose one section to attempt.
How can solving previous year papers help?
Solving previous year question papers helps students understand the board pattern, identify important topics, and improve their marks in the CBSE board exams.
What are the sections in this question paper?
The paper consists of Section A (C++) or Section B (Python), and Section C, which is compulsory for all candidates.
Content reviewed by the NCERT Help team. Editorial Team and update policy
Question Papers PDF on NCERT Help. URL unchanged for search indexing.