(Download) CBSE Class-12 Sample Paper And Marking Scheme 2017-18 : Computer Science
SAMPLE QUESTION PAPER
Subject: Computer Science
Class: XII (2017-18)
(a) All questions are compulsory,
(b) Answer either Section A or Section B:
(i) Section A - Programming Language with C++
(ii) Section B - Programming Language with Python
(c) Section C is compulsory.
SECTION – A (C++)
Q. No. Part Question Description Marks
Q1.(a) What is the role of a parameter/argument passed in a function? Can a default value be assigned to a parameter(Yes/No)? If yes, justify your answer with the help of a suitable example otherwise give reason. 2
(b) Raman suggests Kishan the following header files which are required to be included in the given C++ program. Identify the header files which are wrongly suggested by Raman.
Suggested header files:-
4. ctype.h 1
(c)Rewrite the following program after removing the syntactical errors (is any). Underline each correction.
(d) Write the output of the following C++ program code(assume all necessary header files are included in program):
(e) Write the output of the following C++ program code(assume all necessary header files are included in program):