Class 12 Exam  >  Class 12 Notes  >  COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum  >  CBSE Sample Question Paper Computer Science - 2017 - 18

CBSE Sample Question Paper Computer Science - 2017 - 18 | COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum PDF Download

Download, print and study this document offline
Please wait while the PDF view is loading
 Page 1


 Page No. 1 
SAMPLE QUESTION PAPER  
Subject: Computer Science 
Class: XII (2017-18) 
 
Time: 3 Hrs.                                M.M.:70 
Instructions: 
(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. 
Program: 
 
Suggested header files:- 
1. iostream.h 
2. stdio.h 
3. conio.h 
4. ctype.h 
 
1 
 (c) Rewrite the following program after removing the syntactical errors (is any). Underline 
each correction. 
2 
Page 2


 Page No. 1 
SAMPLE QUESTION PAPER  
Subject: Computer Science 
Class: XII (2017-18) 
 
Time: 3 Hrs.                                M.M.:70 
Instructions: 
(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. 
Program: 
 
Suggested header files:- 
1. iostream.h 
2. stdio.h 
3. conio.h 
4. ctype.h 
 
1 
 (c) Rewrite the following program after removing the syntactical errors (is any). Underline 
each correction. 
2 
 Page No. 2 
 
 (d) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
 
2 
 (e) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
3 
Page 3


 Page No. 1 
SAMPLE QUESTION PAPER  
Subject: Computer Science 
Class: XII (2017-18) 
 
Time: 3 Hrs.                                M.M.:70 
Instructions: 
(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. 
Program: 
 
Suggested header files:- 
1. iostream.h 
2. stdio.h 
3. conio.h 
4. ctype.h 
 
1 
 (c) Rewrite the following program after removing the syntactical errors (is any). Underline 
each correction. 
2 
 Page No. 2 
 
 (d) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
 
2 
 (e) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
3 
 Page No. 3 
 
 (f) Consider the following C++ program code and choose the option(s) which are not 
possible as output. Also, print the minimum & maximum value of variable Pick during 
complete execution of the program.(assume all necessary header files are included in 
program): 
 
(a) 5:6:6:6: 
(b) 4:7:5:3: 
(c) 8:6:1:2: 
(d) 7:5:3:1 
2 
Q2. (a) What do you mean by Data Abstraction in OOPs? Explain its significance in 
programming with a suitable example. 
2 
 (b) Answer the question (i) & (ii) after going through the following code. (assume all 
necessary header files are included in program):- 
2 
Page 4


 Page No. 1 
SAMPLE QUESTION PAPER  
Subject: Computer Science 
Class: XII (2017-18) 
 
Time: 3 Hrs.                                M.M.:70 
Instructions: 
(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. 
Program: 
 
Suggested header files:- 
1. iostream.h 
2. stdio.h 
3. conio.h 
4. ctype.h 
 
1 
 (c) Rewrite the following program after removing the syntactical errors (is any). Underline 
each correction. 
2 
 Page No. 2 
 
 (d) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
 
2 
 (e) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
3 
 Page No. 3 
 
 (f) Consider the following C++ program code and choose the option(s) which are not 
possible as output. Also, print the minimum & maximum value of variable Pick during 
complete execution of the program.(assume all necessary header files are included in 
program): 
 
(a) 5:6:6:6: 
(b) 4:7:5:3: 
(c) 8:6:1:2: 
(d) 7:5:3:1 
2 
Q2. (a) What do you mean by Data Abstraction in OOPs? Explain its significance in 
programming with a suitable example. 
2 
 (b) Answer the question (i) & (ii) after going through the following code. (assume all 
necessary header files are included in program):- 
2 
 Page No. 4 
 
(i) Give the name of the feature of OOP which is implemented by Function 1 & 
2 together in the above class Game. 
(ii) Anuj made changes to the above class Game and made Function 3 private. 
Will he be able to execute the Line 1 successfully given below? Justify. 
    void main() 
    { 
     Game ABC;  //Line 1 
    } 
 (c) Define a class Bill in OOP with the following specification:- 
Private members: 
1. Bill_no  - type long(bill number) 
2. Bill_period  - type integer(number of months) 
3. No_of_calls  - type integer(number of mobile calls) 
4. Payment_mode - type string(“online” or “offline”) 
5. Amount  - type float(amount of bill) 
6. Calculate_Bill() function to calculate the amount of bill given as per the 
following conditions: 
No_of_calls 
Calculation Rate/call 
(in rupees) 
<=500 1.0 
501-1200 2.0 
>1200 4.0 
4 
Page 5


 Page No. 1 
SAMPLE QUESTION PAPER  
Subject: Computer Science 
Class: XII (2017-18) 
 
Time: 3 Hrs.                                M.M.:70 
Instructions: 
(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. 
Program: 
 
Suggested header files:- 
1. iostream.h 
2. stdio.h 
3. conio.h 
4. ctype.h 
 
1 
 (c) Rewrite the following program after removing the syntactical errors (is any). Underline 
each correction. 
2 
 Page No. 2 
 
 (d) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
 
2 
 (e) Write the output of the following C++ program code(assume all necessary header files 
are included in program): 
3 
 Page No. 3 
 
 (f) Consider the following C++ program code and choose the option(s) which are not 
possible as output. Also, print the minimum & maximum value of variable Pick during 
complete execution of the program.(assume all necessary header files are included in 
program): 
 
(a) 5:6:6:6: 
(b) 4:7:5:3: 
(c) 8:6:1:2: 
(d) 7:5:3:1 
2 
Q2. (a) What do you mean by Data Abstraction in OOPs? Explain its significance in 
programming with a suitable example. 
2 
 (b) Answer the question (i) & (ii) after going through the following code. (assume all 
necessary header files are included in program):- 
2 
 Page No. 4 
 
(i) Give the name of the feature of OOP which is implemented by Function 1 & 
2 together in the above class Game. 
(ii) Anuj made changes to the above class Game and made Function 3 private. 
Will he be able to execute the Line 1 successfully given below? Justify. 
    void main() 
    { 
     Game ABC;  //Line 1 
    } 
 (c) Define a class Bill in OOP with the following specification:- 
Private members: 
1. Bill_no  - type long(bill number) 
2. Bill_period  - type integer(number of months) 
3. No_of_calls  - type integer(number of mobile calls) 
4. Payment_mode - type string(“online” or “offline”) 
5. Amount  - type float(amount of bill) 
6. Calculate_Bill() function to calculate the amount of bill given as per the 
following conditions: 
No_of_calls 
Calculation Rate/call 
(in rupees) 
<=500 1.0 
501-1200 2.0 
>1200 4.0 
4 
 Page No. 5 
  Also, the value of Amount should be reduced by 5% if Payment_mode is 
“online”. 
 
Public members: 
1. A member function New_Bill() that will accept the values for Bill_no, 
Bill_period, No_of_calls, Payment_mode from the user and invoke 
Caluclate_Bill() to assign the value of Amount. 
2. A member function Print_Bill() that will display all details of a Bill. 
 (d) Answer the question from (i) to (iv) based on the given below code(assume all necessary 
header files are included in program):- 
 
(i) Write name of the class whose constructor is invoked first on the creation of a 
new object of class Country. 
(ii) Write name of the data members which are accessible through the object of 
class Country. 
4 
Read More
9 docs

FAQs on CBSE Sample Question Paper Computer Science - 2017 - 18 - COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum

1. What is the CBSE sample question paper for Computer Science?
Ans. The CBSE sample question paper for Computer Science is a practice paper designed by the Central Board of Secondary Education (CBSE) to help students prepare for their Computer Science exam. It includes a set of questions that are similar to those that may appear in the actual exam, allowing students to familiarize themselves with the exam format and test their knowledge and understanding of the subject.
2. How can I access the CBSE sample question paper for Computer Science?
Ans. The CBSE sample question paper for Computer Science can be accessed through various sources. It is available on the official website of CBSE (cbse.nic.in) under the "Examinations" section. Additionally, many educational websites and online platforms provide access to these sample papers for free or at a nominal cost. Students can also check with their schools or coaching institutes for copies of the sample question paper.
3. What is the purpose of solving the CBSE sample question paper for Computer Science?
Ans. Solving the CBSE sample question paper for Computer Science serves multiple purposes. Firstly, it helps students understand the exam pattern and the types of questions that can be expected in the actual exam. This allows them to strategize their preparation and allocate time accordingly. Secondly, solving the sample paper helps in assessing one's knowledge and identifying areas of improvement. It provides an opportunity to practice solving questions within the time limit, enhancing time management skills. Lastly, it boosts confidence and reduces exam anxiety by providing a simulated exam experience.
4. Are the questions in the CBSE sample question paper for Computer Science the same as those in the actual exam?
Ans. The questions in the CBSE sample question paper for Computer Science are designed to be similar to those in the actual exam. They cover the prescribed syllabus and follow the marking scheme set by CBSE. However, it is important to note that the actual exam may have variations in the question pattern, difficulty level, or the specific topics emphasized. Therefore, while solving the sample question paper is beneficial, it should not be the sole resource for exam preparation. Students should also refer to textbooks, study guides, and other relevant resources to ensure comprehensive preparation.
5. Can solving the CBSE sample question paper for Computer Science guarantee success in the exam?
Ans. Solving the CBSE sample question paper for Computer Science is a helpful tool for exam preparation, but it cannot guarantee success in the exam. Success in the exam is dependent on various factors, including consistent study, understanding of the concepts, and effective time management during the exam. The sample question paper can aid in identifying strengths and weaknesses, allowing students to focus on areas that require improvement. It is essential to complement the practice of sample papers with thorough studying of the syllabus, practicing previous years' question papers, and seeking guidance from teachers or mentors to maximize the chances of success in the exam.
9 docs
Download as PDF
Explore Courses for Class 12 exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

CBSE Sample Question Paper Computer Science - 2017 - 18 | COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum

,

video lectures

,

CBSE Sample Question Paper Computer Science - 2017 - 18 | COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum

,

Important questions

,

Semester Notes

,

Viva Questions

,

past year papers

,

Summary

,

Objective type Questions

,

MCQs

,

study material

,

Free

,

CBSE Sample Question Paper Computer Science - 2017 - 18 | COMPUTER SCIENCE for Class 12(XII) - CBSE & NCERT Curriculum

,

Exam

,

Extra Questions

,

Sample Paper

,

practice quizzes

,

pdf

,

Previous Year Questions with Solutions

,

shortcuts and tricks

,

ppt

,

mock tests for examination

;