CBSE Class-12 Exam 2017 : All India Scheme Question Paper, Computer Science
Disclaimer: This website is NOT associated with CBSE, for official website of CBSE visit - www.cbse.gov.in
CBSE Class-12 Exam 2017 : All India Scheme
Question Paper, Computer Science
CBSE Class-12 Exam 2017 : Computer Science
- Please check that this question paper contains 20 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 :
(i) SECTION A refers to programming language C++.
(ii) SECTION B refers to programming language Python.
(iii) SECTION C is compulsory for all.
(iv) Answer either SECTION A or SECTION B.
(v) It is compulsory to mention on the page 1 in the answer book whether you are attempting SECTION A or SECTION B.
(vi) 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
(i) new
(ii) While
(iii) case
(iv) Num_2
(b) Anil typed the following C++ code and during compilation he found three errors as follows :
(i) Function strlen should have prototype
(ii) Undefined symbol cout
(iii) Undefined symbol endl
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 Txt[] = "Welcome";
for(int C= 0; C<strlen(Txt); C++)
Txt[C] = Txt[C]+1;
cout<<Txt<<endl;
}