All Practice Exams

Free Practice Questions for BSEH SS Computer Science

Exam-style questions and explanations by OpenExamPrep.

✓ No registration✓ No credit card
100+ Questions
100% Free

Loading practice questions...

Exam Review

Key Facts: BSEH SS Computer Science Exam

2.5 hours

Typical BSEH Senior Secondary Computer Science theory exam duration

BSEH Class 12 Computer Science QPD (code 906)

40 + 40 + 20

Theory + Practical + Internal Assessment (grand total 100)

BSEH Class 12 Computer Science course structure

Code 906

Computer Science subject code on BSEH Senior Secondary materials

BSEH Class 12 syllabus catalog

33%

Common Senior Secondary subject pass floor for BSEH theory subjects

BSEH Senior Secondary notification practice

English MCQ adaptation

This free local bank is not the official Senior Secondary paper format

OpenExamPrep practice policy

BSEH Senior Secondary Computer Science is a Class 12 public-exam subject (code 906) with Theory 40 + Practical 40 + IA 20 (theory ~2.5 hours) covering Python, data structures, SQL, networks, data communication, and security — not a pure MCQ board paper. This free 2026 bank is an English MCQ study adaptation for NCERT/BSEH-focused Class 12 CS concepts, code tracing, and SQL.

Sample BSEH SS Computer Science Practice Questions

Try these sample questions to review concepts for the BSEH SS Computer Science exam. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1In Python, a syntax error differs from a runtime exception primarily because a syntax error:
A.Can never be fixed without rewriting the operating system
B.Always means division by zero
C.Is detected when the code is parsed, before normal execution completes
D.Only occurs after a try block finishes successfully
Explanation: Syntax errors violate language grammar and are reported during parsing/compilation of the source before the program runs normally. Runtime exceptions arise while executing syntactically valid code.
2Why is exception handling useful in Python programs?
A.It permanently disables all errors in the interpreter
B.It lets a program respond to unexpected runtime conditions without always crashing
C.It converts every program into machine language automatically
D.It replaces the need to write correct logic
Explanation: Exception handling (try/except and related clauses) lets programs catch runtime problems, recover or report them, and continue when appropriate instead of terminating abruptly.
3Which block is typically used to catch and handle a runtime exception in Python?
A.global
B.except
C.class
D.import
Explanation: The except clause (paired with try) catches matching exception types and runs recovery or reporting code.
4What does the raise statement do in Python?
A.Only prints a warning without creating an exception object
B.Signals (throws) an exception, optionally of a chosen type/message
C.Closes all open files silently
D.Always ends the entire Python process with exit code 0
Explanation: raise creates and propagates an exception so callers can handle it or the program can stop with a traceback.
5Consider: try: x = 10 / 0 except ZeroDivisionError: print('A') else: print('B') finally: print('C') What is printed?
A.B then C
B.A then C
C.C only
D.A only
Explanation: Division by zero raises ZeroDivisionError, so the except runs (A). The else clause runs only when no exception occurred, so B is skipped. finally always runs (C).
6In try/except/else, the else clause executes when:
A.The program is run with -O optimization only
B.Any exception is raised in try
C.The try block completes without raising an exception
D.Only a SyntaxError occurs
Explanation: The else block is the success path: it runs if try finished cleanly without an exception.
7Which built-in exception is most appropriate when a list index is out of range?
A.FileNotFoundError
B.TypeError
C.KeyError
D.IndexError
Explanation: IndexError is raised when a sequence index is invalid (for example, accessing lst[5] on a 3-element list).
8Consider: try: d = {'a': 1} print(d['b']) except KeyError: print('missing') What is the output?
A.None
B.missing
C.1
D.KeyError (uncaught traceback only)
Explanation: Accessing d['b'] raises KeyError because 'b' is not a key. The except KeyError handler prints missing.
9Which open mode creates a new text file for writing, truncating existing content if the file already exists?
A.'r'
B.'a'
C.'w'
D.'rb'
Explanation: Mode 'w' opens for writing (text by default when not binary-flagged) and truncates an existing file to empty before writing.
10After f = open('data.txt', 'r'), which call is the standard way to read the entire file content as one string?
A.f.append()
B.f.read()
C.f.delete()
D.f.write('all')
Explanation: read() with no size argument returns the remaining contents of the file as a string (for text mode).

About the BSEH SS Computer Science Exam

Haryana Senior Secondary Computer Science under BSEH covers Class 12 Computer Science aligned to the Board’s Senior Secondary syllabus and NCERT Class XII Computer Science. Core theory units include Programming in Python (exception handling and file handling), Data Structure using Python (stack, queue, searching, sorting), Database and SQL, Computer Networks, Data Communication, and Security Aspects. Official assessment is Theory 40 + Practical 40 + Internal Assessment 20 = 100 (subject code 906; theory about 2 hours 30 minutes). Practicals emphasize Python (exceptions/files/data structures), SQL queries, report file, project, and viva. This free local bank provides English four-option MCQs — including code-output/tracing style items — for revision; pair it with official syllabus PDFs, written answers, and lab practice via bseh.org.in.

Exam sponsor: Board of School Education Haryana (BSEH). The requirements and fees below concern the certification or admission exam, separate from our free practice resources.

Assessment

BSEH Senior Secondary Computer Science is a Class 12 elective under the Senior Secondary Certificate Examination (subject code 906). Official logistics: Theory 40 marks (~2 hours 30 minutes), Practical 40 (lab test with two Python programs + one SQL query, report file, project, viva), Internal Assessment 20 (grand total 100). Theory units: Programming in Python 6; Data Structure using Python 7; Database and SQL 8; Computer Networks 6; Data Communication 8; Security Aspects 5. Prescribed book: NCERT Computer Science Class XII. Hindi/English medium materials are typical; this practice bank is an English-language MCQ study adaptation. Confirm the current syllabus PDF and circulars on bseh.org.in.

Time Limit

2 hours 30 minutes

Passing Score

33%

Exam / Certification Fees

As notified by BSEH and paid through affiliated schools for regular and compartment/improvement sittings (no single fixed public subject fee for all categories).

Exam sponsor website

Fees, eligibility, and exam policies can change. Confirm them with the exam sponsor before applying or paying.

Our practice resources: topics covered

We aim to reflect publicly available exam outlines and topic information in our study resources. Coverage, format, and difficulty may differ from the actual exam, and we cannot guarantee that every detail is accurate or current. Confirm exam requirements, fees, and policies with the official exam sponsor.

~15% of this local bank

Programming in Python

Exception handling and text/binary file I/O with modes and try clauses.

~18% of this local bank

Data Structure using Python

Stack and queue list implementations; linear/binary search; bubble/selection sort.

~20% of this local bank

Database and SQL

Relational keys, DDL/DQL/DML, and aggregate functions.

~15% of this local bank

Computer Networks

PAN/LAN/MAN/WAN, network devices, and mesh/ring/bus/star/tree topologies.

~20% of this local bank

Data Communication

Wired/wireless media, HTTP/FTP/IP/SMTP, bandwidth, and transfer rates.

~12% of this local bank

Security Aspects

Malware types, antivirus, https, firewall, cookies, hackers vs crackers.

Preparing for the BSEH SS Computer Science Exam

What You Need to Know

  • Passing score: 33%
  • Assessment: BSEH Senior Secondary Computer Science is a Class 12 elective under the Senior Secondary Certificate Examination (subject code 906). Official logistics: Theory 40 marks (~2 hours 30 minutes), Practical 40 (lab test with two Python programs + one SQL query, report file, project, viva), Internal Assessment 20 (grand total 100). Theory units: Programming in Python 6; Data Structure using Python 7; Database and SQL 8; Computer Networks 6; Data Communication 8; Security Aspects 5. Prescribed book: NCERT Computer Science Class XII. Hindi/English medium materials are typical; this practice bank is an English-language MCQ study adaptation. Confirm the current syllabus PDF and circulars on bseh.org.in.
  • Time limit: 2 hours 30 minutes
  • Exam / certification fees: As notified by BSEH and paid through affiliated schools for regular and compartment/improvement sittings (no single fixed public subject fee for all categories). Official sources

Using Our Practice Resources

  • Work through all 100 available questions
  • Review every answer and explanation
  • Track weak areas and revisit them
  • Use our AI tutor for tough concepts

BSEH SS Computer Science: Suggested Study Strategy

1Dry-run every try/except/else/finally snippet and file open mode (r, w, a, r+) before picking MCQ options.
2For stacks and queues, sketch the list state after each push/pop or enqueue/dequeue — LIFO vs FIFO is the most common trap.
3In SQL, separate DDL (CREATE/DROP/ALTER) from DML (INSERT/UPDATE/DELETE) and DQL (SELECT) before answering language-category questions.
4Map each network device to one job (repeater regenerates, switch forwards by MAC, router routes by IP, gateway connects dissimilar networks).
5Pair malware types with behaviours (virus needs a host file; worm self-propagates; Trojan disguises; spyware spies; adware shows ads) and use current BSEH syllabus PDFs from bseh.org.in to balance theory vs lab revision.

Frequently Asked Questions

How is BSEH Senior Secondary Computer Science officially examined?

Computer Science is examined under the Haryana Senior Secondary Certificate Examination as a Class 12 subject (code 906). Published schemes use Theory 40 + Practical 40 + Internal Assessment 20 = 100, with theory about 2 hours 30 minutes. Confirm the year’s syllabus PDF, QPD, date sheet, and circulars on bseh.org.in.

Is this practice bank the same format as the official Senior Secondary Computer Science paper?

No. Official BSEH Class 12 Computer Science mixes theory constructed-response items with a substantial practical/lab component (Python programs, SQL, report, project, viva). This bank is an English-language multiple-choice study adaptation for concepts and code/SQL recognition only — not an official translation, blueprint replica, or full written/lab simulation.

What syllabus does this bank follow?

It is aligned to BSEH Senior Secondary (Class 12) Computer Science code 906 / NCERT Class XII Computer Science style scope: Python exception and file handling; stack and queue; searching and sorting; database concepts and SQL; computer networks; data communication; and security aspects.

What is the pass mark for BSEH Senior Secondary Computer Science?

BSEH Senior Secondary subject pass floor is commonly stated as 33% for Class 12 subjects. Always verify the current BSEH Senior Secondary notification for exact criteria for your sitting, including any separate practical requirements.

Where should I check official syllabus and date sheets?

Use the Board of School Education Haryana website at bseh.org.in for Class 12 syllabus catalog entries (including Computer Science code 906), date sheets, and exam circulars.