All Practice Exams

Free Practice Questions for Karnataka II PUC Computer Science (KSEAB)

Exam-style questions and explanations by OpenExamPrep.

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

Loading practice questions...

Exam Review

Key Facts: Karnataka II PUC Computer Science (KSEAB) Exam

~70 + 30

Common theory + practical/project mark split (total 100)

KSEAB II PUC science practical subject pattern

~3 h 15 m

Typical theory duration (often includes reading time)

KSEAB II PUC Computer Science model paper logistics

Code 41

Official subject code for II PUC Computer Science

KSEAB / DPUE Computer Science blueprint

~35%

Commonly reported overall pass threshold (confirm circular)

KSEAB II PUC pass criteria reporting

Mixed + practical

Official format is mixed written theory plus practical/project, not pure MCQ

KSEAB II PUC Computer Science assessment pattern

English MCQ adaptation

This free local bank is not the official mixed paper format

OpenExamPrep practice policy

KSEAB II PUC Computer Science (code 41) is a Class 12 board subject with ~70 theory + ~30 practical/project and theory lasting about 3 h 15 m. Pass is commonly ~35% overall (~30–35% careful wording) as notified. Fees are paid through colleges. This free 2026 bank is an English MCQ study adaptation — not an official paper simulation.

Sample Karnataka II PUC Computer Science (KSEAB) Practice Questions

Try these sample questions to review concepts for the Karnataka II PUC Computer Science (KSEAB) exam. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1In Python, which block is used to handle an exception that may occur during program execution?
A.except
B.catch
C.handle
D.rescue
Explanation: Python uses try/except for exception handling. Code that might fail is placed in try, and matching errors are handled in one or more except clauses.
2Which built-in exception is raised when a program attempts to divide an integer by zero in Python?
A.ValueError
B.ZeroDivisionError
C.ArithmeticError only (never subclassed)
D.IndexError
Explanation: Dividing by zero raises ZeroDivisionError, a subclass of ArithmeticError. Catching ZeroDivisionError handles this specific failure without hiding unrelated arithmetic issues.
3In a try/except/else/finally structure, when does the else block run?
A.Only if an exception was raised and caught
B.Always, whether or not an exception occurred
C.Only if no exception was raised in the try block
D.Only if the finally block is omitted
Explanation: The else clause of try runs when the try suite completes without raising an exception. It is useful for code that should run only on success, while finally still runs for cleanup regardless.
4What does the raise statement do in Python?
A.Silently ignores the last exception
B.Converts any exception into a return value of None
C.Terminates only the current except block without an exception object
D.Explicitly throws an exception (or re-raises the current one)
Explanation: raise ExceptionType(...) creates and throws an exception. Bare raise inside an except re-raises the active exception, which is useful after logging or partial handling.
5Consider: try: x = int('12a') except ValueError: print('A', end='') except Exception: print('B', end='') else: print('C', end='') finally: print('D', end='') What is printed?
A.AD
B.BD
C.ACD
D.ABCD
Explanation: int('12a') raises ValueError, so the first except runs and prints A. else is skipped because an exception occurred. finally always runs and prints D, producing AD.
6Which open mode creates a new file for writing or truncates an existing text file in Python?
A.r
B.w
C.a
D.x only (and never truncates)
Explanation: Mode 'w' opens for writing: if the file exists it is truncated to zero length; if not, it is created. Use carefully when you must not destroy existing content.
7What is the main advantage of using a with statement when opening files in Python?
A.It encrypts the file contents automatically
B.It converts every file to binary mode
C.The file is closed automatically when the block ends, even if an error occurs
D.It prevents any exception from being raised during I/O
Explanation: with open(...) as f: uses a context manager that guarantees f.close() on block exit, including abnormal exits from exceptions, reducing resource leaks.
8A text file contains exactly three lines: 'A\n', 'B\n', and 'C' (no trailing newline on the last line). How many strings does f.readlines() return?
A.2
B.4
C.1
D.3
Explanation: readlines() returns one string per line, including newline characters where present. Three lines yield three list elements: ['A\n', 'B\n', 'C'].
9Which statement about binary file modes in Python is correct?
A.Modes such as 'rb' and 'wb' transfer raw bytes without universal newline translation
B.Binary modes always store Python objects via pickle automatically
C.Binary modes can only open files smaller than 1 KB
D.'rb' is identical to 'r' on every platform for all text encodings
Explanation: Binary modes read/write bytes and skip text encoding and newline translation. They are used for images, executables, and other non-text data.
10File f is opened with open('data.txt','r'). After f.read(5) returns the first five characters, what does a subsequent f.tell() report if those characters were the start of the file?
A.0 (pointer always resets after read)
B.5 (file pointer is after the five characters read)
C.1 (pointer counts lines, not characters)
D.EOF constant −1 always
Explanation: Each successful read advances the file pointer. After reading five characters from offset 0, tell() returns 5 (in text mode the value is a opaque position but for simple ASCII files it matches the byte/character offset taught at this level).

About the Karnataka II PUC Computer Science (KSEAB) Exam

Karnataka II PUC Computer Science is the Class 12 Pre-University public examination computer science paper under the Karnataka School Examination and Assessment Board (KSEAB), subject code 41. It assesses DPUE/KSEAB II PUC Computer Science: Python exception and file handling; stacks and queues; sorting and searching algorithms; understanding data; database concepts; SQL; computer networks; data communication; and security aspects. The official assessment is commonly ~70 marks theory (mixed objective-style and short/long answers, about 3 hours 15 minutes) plus ~30 marks practical/project. Fees and exact blueprints are notified by KSEAB / DPUE (kseab.karnataka.gov.in; dpue-exam.karnataka.gov.in). Pass marks are commonly described near ~35% overall with separate theory/practical floors as notified. The 100 questions on this page are a free English-language multiple-choice study adaptation with explanations and multi-step calculation practice (comparison counts, binary search bounds, SQL result sizes, complexity, IP/subnet ideas, etc.); they are not a full simulation of the official mixed theory paper or practical exam.

Exam sponsor: Karnataka School Examination and Assessment Board (KSEAB). The requirements and fees below concern the certification or admission exam, separate from our free practice resources.

Assessment

Official KSEAB II PUC Computer Science (code 41) is assessed as approximately 70 marks theory and 30 marks practical/project (total 100). Theory is a mixed written paper lasting about 3 hours 15 minutes (commonly including reading time), with Part A–D style questions per the KSEAB/DPUE Computer Science blueprint (Exception Handling in Python; File Handling in Python; Stack; Queue; Sorting; Searching; Understanding Data; Database Concepts; Structured Query Language; Computer Networks; Data Communication; Security Aspects). English and Kannada media are typically available. Exact theory–practical splits and attempt rules are as published for the year — confirm circulars on kseab.karnataka.gov.in and dpue-exam.karnataka.gov.in. This practice bank is an English-language MCQ study adaptation for concept and calculation fluency — it does not simulate official attempt limits, long programs, circuit-free practicals, or project viva.

Time Limit

About 3 hours 15 minutes (theory; often includes 15 minutes reading time)

Passing Score

Commonly reported as about 35% overall in the subject, with separate theory and practical minima often described near ~24/70 and ~11/30 (about 30–35% careful range depending on circular wording); verify the current pass criteria for your examination year.

Exam / Certification Fees

As notified by KSEAB and paid through PU colleges for regular II PUC sittings (no single fixed public subject fee for all categories).

Exam sponsor website

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.

~5% of this local bank

Exception Handling in Python

try/except/else/finally order, raise, ZeroDivisionError/ValueError/IndexError, and catching specific vs general exceptions.

~5% of this local bank

File Handling in Python

open modes r/w/a/rb/wb, read/readline/readlines, write/writelines, with auto-close, and text vs binary files.

~8% of this local bank

Stack

LIFO push/pop/peek, array implementation bounds, postfix evaluation, balanced parentheses, and recursion call stack.

~8% of this local bank

Queue

FIFO enqueue/dequeue, front/rear pointers, circular queue capacity, double-ended queue, and priority queue idea.

~10% of this local bank

Sorting

Bubble, selection, insertion, merge, and quick sort: stability, pass traces, comparison/swap counts, and O-notation.

~10% of this local bank

Searching

Linear vs binary search, sorted precondition, mid-index calculations, worst-case comparisons, and complexity.

~5% of this local bank

Understanding Data

Data vs information, structured/semi/unstructured data, metadata, digital footprint, and processing pipeline ideas.

~11% of this local bank

Database Concepts

DBMS advantages over file systems, relation/tuple/attribute, primary/foreign/candidate keys, integrity, ER, and 1NF–3NF basics.

~14% of this local bank

Structured Query Language

CREATE/ALTER/DROP, INSERT/UPDATE/DELETE, SELECT with WHERE/ORDER BY, aggregates, GROUP BY/HAVING, and INNER JOIN result counts.

~11% of this local bank

Computer Networks

LAN/MAN/WAN scale, bus/star/ring/mesh topologies, hub/switch/router/gateway roles, IPv4 basics, and OSI/TCP-IP layers.

~8% of this local bank

Data Communication

Guided vs unguided media, circuit/packet switching, analog/digital signals, bandwidth, and duplex modes.

~5% of this local bank

Security Aspects

Malware types, phishing, authentication vs authorization, symmetric/asymmetric encryption idea, firewalls, and cyber ethics.

Preparing for the Karnataka II PUC Computer Science (KSEAB) Exam

What You Need to Know

  • Passing score: Commonly reported as about 35% overall in the subject, with separate theory and practical minima often described near ~24/70 and ~11/30 (about 30–35% careful range depending on circular wording); verify the current pass criteria for your examination year.
  • Assessment: Official KSEAB II PUC Computer Science (code 41) is assessed as approximately 70 marks theory and 30 marks practical/project (total 100). Theory is a mixed written paper lasting about 3 hours 15 minutes (commonly including reading time), with Part A–D style questions per the KSEAB/DPUE Computer Science blueprint (Exception Handling in Python; File Handling in Python; Stack; Queue; Sorting; Searching; Understanding Data; Database Concepts; Structured Query Language; Computer Networks; Data Communication; Security Aspects). English and Kannada media are typically available. Exact theory–practical splits and attempt rules are as published for the year — confirm circulars on kseab.karnataka.gov.in and dpue-exam.karnataka.gov.in. This practice bank is an English-language MCQ study adaptation for concept and calculation fluency — it does not simulate official attempt limits, long programs, circuit-free practicals, or project viva.
  • Time limit: About 3 hours 15 minutes (theory; often includes 15 minutes reading time)
  • Exam / certification fees: As notified by KSEAB and paid through PU colleges for regular II PUC 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

Karnataka II PUC Computer Science (KSEAB): Suggested Study Strategy

1Practice official KSEAB/DPUE Computer Science (code 41) model papers under timed ~3 h 15 m conditions so you can switch from MCQ drills to written programs, algorithm traces, and SQL answers.
2For algorithm items, write the array state after each pass and count comparisons carefully — boards often award stepwise marks for sorting/searching traces.
3Memorize LIFO vs FIFO, primary vs foreign keys, OSI layer order, and SQL clause order (SELECT–FROM–WHERE–GROUP BY–HAVING–ORDER BY); many lost marks come from mix-ups.
4Build a one-page formula/complexity sheet for O(n), O(n log n), binary-search mid calculations, and join cardinality; revise it weekly before annual exams.
5Do not neglect practicals/projects: Python file/exception labs, SQL practice, and viva concepts contribute ~30 marks.
6Use English/Kannada textbooks as directed by your college; this free bank is an English MCQ adaptation only.

Frequently Asked Questions

Is the official KSEAB II PUC Computer Science exam pure multiple-choice?

No. Official KSEAB II PUC Computer Science (code 41) is a mixed theory paper with 1-, 2-, 3-, and 5-mark items plus a separate practical/project examination. This bank is an English-language multiple-choice study adaptation for concepts and calculations only — not an official paper or practical simulation.

What is the theory–practical mark split for II PUC Computer Science?

Computer Science is commonly assessed as about 70 marks theory and 30 marks practical/project (total 100). Confirm the year’s notice on kseab.karnataka.gov.in and the DPUE exam portal.

How long is the Karnataka II PUC Computer Science theory paper?

Theory is commonly about 3 hours 15 minutes, often including 15 minutes of reading time. Confirm the year’s date sheet and instructions on official board portals.

What is the passing score for KSEAB II PUC Computer Science?

II PUC-consistent reporting commonly describes about 35% overall in the subject, with separate theory and practical minima often near ~24/70 and ~11/30 (about a 30–35% careful range depending on circular wording). Always verify the current pass criteria for your examination year.

Which languages is II PUC Computer Science offered in?

English and Kannada media are commonly available for Karnataka II PUC Computer Science. This practice bank is written in English for concept and numerical revision.

How much does the KSEAB II PUC Computer Science exam cost?

Computer Science is not sold as a separate marketplace product. Fees are notified by KSEAB and paid through PU colleges for regular candidates. Check kseab.karnataka.gov.in for the current fee circular.

What syllabus does this bank follow?

It is aligned to Karnataka II PUC Computer Science (code 41) as reflected in DPUE/KSEAB blueprints and unit lists: Exception Handling in Python; File Handling in Python; Stack; Queue; Sorting; Searching; Understanding Data; Database Concepts; Structured Query Language; Computer Networks; Data Communication; and Security Aspects.

Where can I find official model papers and blueprints?

Check KSEAB at https://kseab.karnataka.gov.in and the DPUE exam portal at https://dpue-exam.karnataka.gov.in for Computer Science (41) blueprints, model question papers, and schemes of evaluation.