CBSE 2018 Computer Science Question Paper for Class 12
CBSE
Computer Science2018CBSE Class 12 Computer Science question paper 2018 (code 91): C++ or Python section plus compulsory SQL, Boolean algebra and networking, 70 marks, 3 hours.
Practice these questions to improve your performance in the board examination.
About this paper
This is the CBSE Class 12 Computer Science paper from the 2018 board examination, code 91 (Series SGN, Set 4). It carries 70 marks over three hours and has 7 questions. Students answer either Section A, written for C++, or Section B, written for Python; each section has four questions on programming and output tracing, object-oriented programming and inheritance, data structures such as queues, stacks and postfix expressions, and file handling. Section C is compulsory for all and covers relational operations and SQL queries on ACCOUNT and TRANSACT tables, Boolean algebra with a K-map reduction, and networking, ending with a case study on networking an Ayurveda training institute's departments in Hyderabad. This copy has the questions only, without solutions.
- Exam
- CBSE Class 12
- Subject
- Computer Science
- Year
- 2018
- Paper code
- 91
- Maximum marks
- 70
- Time allowed
- 3 hours
- Questions
- 7
- Pages
- 23
- Answers included
- No, questions only
Paper pattern
Section A
Questions 1–4 for C++ candidates: C++ tokens, header files and output questions, function overloading, classes and inheritance, arrays and queues, and data file handling
Section B
Questions 1–4 for Python candidates: errors, modules and output questions, classes and inheritance, sorting, queues and postfix evaluation, and text and pickled file handling
Section C
Questions 5–7, compulsory for all: relational operations and SQL, Boolean algebra, and networking with a case study
Topics covered
- C++ programming and output questions
- Function overloading
- Classes and inheritance
- Arrays and address calculation
- Queues and stacks
- Data file handling
- Python classes and the super() function
- Bubble sort
- Relational algebra and SQL
- Boolean algebra and K-maps
- Network topologies and web scripting
Questions from this paper
- Data[20][15] is a two-dimensional array stored in memory along the row, with each element occupying 2 bytes. Find the address of the element Data[10][5] if the element Data[15][10] is stored at memory location 15000.
- Differentiate between a syntax error and a run-time error. Also, write a suitable example in Python to illustrate both.
- What is the advantage of the super() function in inheritance? Illustrate it with the help of an example in Python.
- Write a method in Python to read lines from a text file INDIA.TXT and find and display the occurrences of the word "India".
- State any one absorption law of Boolean algebra and verify it using a truth table.
- Differentiate between bus topology and star topology of networks. What are the advantages and disadvantages of star topology over bus topology?
Free email alert
Get the 2027 CBSE Class 12 papers first
One email when the new CBSE Class 12 Computer Science question papers are published here. No spam, unsubscribe any time.
What's next
Planning what comes after Class 12?
Compare college costs, education loans, and scholarships in one place.
See the cost breakdown





















