CBSE Class 12 Computer Science (C++) 2017 Delhi-Set-1 Previous Year Question Paper

Question Papers Class 12 PDF

This is the CBSE Class 12 Computer Science (C++) Previous Year Board Question Paper for the 2017 Delhi-Set-1 examination. The paper is designed for students who have opted for C++ in Section A and Python in Section B, with Section C being compulsory. It carries a total of 70 marks and has a duration of 3 hours. Candidates are allotted 15 minutes to read the question paper. The paper includes questions on C++ tokens, header files, syntax correction, and program output. Solving this authentic board question paper helps students understand the exam pattern, identify important topics, and improve their performance in the upcoming CBSE board exams.

Quick info

BoardCBSE
Class12
SubjectComputer Science (C++)
Session2017
LanguageEnglish
TypePrevious Year Question Paper
Exam typeBoard Exam

Paper pattern

The exam is divided into Section A (C++), Section B (Python), and a compulsory Section C. Candidates must attempt either Section A or B. The total marks are 70, with a time duration of 3 hours.

Topics covered

Paper topics

  • C++ Tokens
  • Header Files
  • Syntax Correction
  • Program Output
  • C++ Programming

Important topics

  • C++ Keywords and Identifiers
  • Header File Inclusion
  • C++ Syntax and Error 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.

Preparing PDF preview…
Page of
Loading page …

Question paper text

SET - 4

Series : GBM/1

Code No. 91/1

Candidates must write the Code on

the title page of the answer-book.

Roll No.

  • 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.

<math>\bullet</math> 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:

  1. Programming Language in SECTION A : C++.
  2. Programming Language in SECTION B: Python.
  3. Answer either SECTION A or B, and SECTION C is compulsory.
  4. It is compulsory to mention on the page 1 in answer book whether you are attempting SECTION A or SECTION B.
  5. All questions are compulsory within each section.

SECTION - A

(Only for Candidates, who opted for C++)

  1. (a) Write the type of C++ tokens (keywords and user defined identifiers) from the

following: 2

  1. For
  2. delete
  3. default
  4. Value

91/1 [P.T.O. 1

  1. Anil typed the following C++ code and during compilation he found four errors as

follows: 1

  1. Function strlen should have a prototype
  2. Undefined symbol cout
  3. Undefined symbol endl
  4. Function getchar should have a prototype

On asking his teacher told him to include necessary header files in the code. Write the names of the header files, which Anil needs to include, for successful compilation and execution of the following code: void main() { char S[] = "Hello"; for(int <math>i = 0</math>; <math>i < strlen(S)</math>; <math>i++</math>) <math>S[i] = S[i]+1;</math> cout<<S<<end1;</pre> getchar(); }

  1. 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. void main() { cout << "Enter an integer";</pre> cin>>N; switch (N%2) case 0 cout<<"Even"; Break;</pre> case 1 cout<<"Odd"; Break;</pre> }

  1. Find and write the output of the following C++ program code : 2 Note: Assume all required header files are already included in the program. #define Big(A,B) (A>B)?A+1:B+2 void main() { char W[] = "Exam"; int L=strlen(W); for(int i=0; i<L-1; i++) <math>W[i] = Big(W[i], W[i+1]);</math> cout<<W<<end1;</pre> }

91/1 2

Frequently asked questions

What is this document?

This is the CBSE Class 12 Computer Science (C++) Previous Year Board Question Paper for the 2017 Delhi-Set-1 exam.

What is the total mark and time duration for this paper?

The paper carries a maximum of 70 marks and the allowed time is 3 hours.

Which programming languages are covered in this paper?

Section A focuses on C++, Section B on Python, and Section C is compulsory. Candidates choose either Section A or B.

How can solving this previous year paper help students?

Solving this previous year question paper helps students understand the board pattern, identify important topics, and improve their marks in the CBSE board exams.

What types of questions are included in Section A?

Section A includes questions on identifying C++ tokens, determining necessary header files, correcting syntactical errors in C++ code, and finding the output of C++ programs.

Content reviewed by the NCERT Help team. Editorial Team and update policy

Question Papers PDF on NCERT Help. URL unchanged for search indexing.