All Practice Exams

100+ Free BSEH SS Computer Science Practice Questions

Board of School Education Haryana (BSEH) Senior Secondary Computer Science (Class 12 — Computer Science elective, subject code 906) practice questions are available now; exam metadata is being verified.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
100+ Questions
100% Free

Loading practice questions...

2026 Statistics

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-aligned Class 12 CS concepts, code tracing, and SQL.

Sample BSEH SS Computer Science Practice Questions

Try these sample questions to test your BSEH SS Computer Science exam readiness. 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 Practice Questions

Verified exam format metadata for Board of School Education Haryana (BSEH) Senior Secondary Computer Science (Class 12 — Computer Science elective, subject code 906) is pending. The practice questions above remain available while official exam length, timing, passing score, fee, and administrator details are reviewed.