Class 12 Computer Science ALP Solved Model Paper 2026-27 PDF Download
2nd Year Computer Science Model Paper According to PECTAA Smart Syllabus

CLASS 12 COMPUTER SCIENCE
2nd Year | Intermediate Part-II | Punjab Boards
FREE PDF DOWNLOAD • SOLVED QUESTIONS • EXAM PREPARATION
Class 12 Computer Science ALP Solved Model Paper 2026-27 PDF Download
Students preparing for the Punjab Boards Annual Examination 2027 can now access the Class 12 Computer Science ALP Solved Model Paper 2026-27 according to the latest Smart Syllabus issued by the Punjab Education, Curriculum, Training and Assessment Authority (PECTAA), Lahore.
This 2nd Year Computer Science solved model paper is designed to help students practise objective MCQs, short questions and descriptive questions with answers. It follows the Accelerated Learning Program (ALP) and the updated PECTAA Smart Syllabus for the academic session 2026-27.
Latest PECTAA Smart Syllabus – Computer Science Model Paper 2027
The Class 12 Computer Science Model Paper 2026-27 has been prepared with reference to the new ALP Smart Syllabus for Grade 12. It provides students with a useful opportunity to understand the prescribed course content and practise questions in a board examination format.
The relevant Smart Syllabus notification was issued by PECTAA on 14 November 2026. Students should follow the official syllabus and prescribed textbook while preparing for the Annual Examination 2027.
What Is Included in the 2nd Year Computer Science Solved Paper?
This solved model paper covers different sections of the Computer Science and Entrepreneurship Grade 12 subject. It offers practice material for students as well as useful teaching support for teachers.
Objective MCQs
15 multiple-choice questions with four options and correct answers for objective preparation.
Short Questions
Important short questions with clear, understandable and relevant answers.
Long Questions
Descriptive questions with detailed explanations and step-by-step solutions.
Programming Concepts
Python programming, object-oriented programming and important computational concepts.
Important Computer Science Topics for Class 12 Annual Exam 2027
The solved model paper provides practice across important areas of the Grade 12 Computer Science and Entrepreneurship curriculum.
📖 Important Topics Covered
- Computer Networks and OSI Model
- Internet Protocols and DNS
- Computational Thinking
- Propositional Logic
- Python Classes and Objects
- Multilevel Inheritance
- Encapsulation and OOP
- Database Management Systems
- CRUD Operations
- Primary and Foreign Keys
- Machine Learning
- Artificial Intelligence
- Model Evaluation Techniques
- Cybersecurity and Online Privacy
- AI Ethics and Challenges
- Accuracy, Precision and Recall
Computer Science MCQs with Answers – 2nd Year ALP Model Paper
The objective section contains 15 MCQs designed to test students’ understanding of important Computer Science concepts. Practising these multiple-choice questions can help students improve their subject knowledge and become familiar with objective examination questions.
Students can review the correct answers and use the MCQ section for quick revision before their school tests and annual board examinations.
Short Questions and Solved Answers – Class 12 Computer Science
Short questions are an important component of board examination preparation. The solved model paper provides answers to selected questions from important areas of the prescribed syllabus.
Students can use these answers to revise technical definitions, understand programming concepts and develop a better understanding of Computer Science topics.
Long Questions with Detailed Solutions – Computer Science ALP 2027
The descriptive portion provides detailed solutions to important questions. It helps students understand how to explain technical concepts and organise their answers effectively in the examination.
Read every question carefully, understand the concept behind its solution and practise writing answers independently. Do not rely only on memorising solved answers.
How Can Students Use This Solved Model Paper?
- First, read the complete question paper carefully.
- Attempt the MCQs independently before checking the answers.
- Practise short questions using your prescribed textbook.
- Understand the detailed solutions of descriptive questions.
- Revise the important topics included in the applicable ALP Smart Syllabus.
Useful Study Material for Teachers and Students
This Class 12 Computer Science ALP Solved Model Paper can also be used by Computer Science teachers for classroom discussion, revision activities and student assessment.
Teachers can use the solved questions to explain important concepts, prepare classroom tests and guide students according to the latest PECTAA Smart Syllabus 2026-27.
Download Class 12 Computer Science Solved Model Paper 2026-27
Access the complete solved model paper, practise objective and subjective questions, and prepare for the Punjab Boards Annual Examination 2027.
Available on this page:
Show Answers | Print Paper | Save as PDF
Class 12 Computer Science ALP Solved Model Paper 2026-27 – Free PDF Download
Prepare effectively for the Punjab Boards Annual Examination 2027 with the Class 12 Computer Science ALP Solved Model Paper 2026-27. This solved model paper has been prepared according to the latest Smart Syllabus 2026-27 and Accelerated Learning Program (ALP) issued by PECTAA Punjab. Students of 2nd Year (Class 12) can use this model paper to understand the latest examination pattern, practise important Computer Science questions, and improve their preparation for the upcoming board examinations.
Download Class 12 Computer Science Solved Model Paper 2026-27
The 2nd Year Computer Science ALP Model Paper is available here as a free PDF download. This resource is particularly useful for students preparing under the new PECTAA Smart Syllabus for the academic session 2026-27. Practise the solved questions, review important concepts, and become familiar with the expected Punjab Board paper pattern before appearing in the Annual Examination 2027.
📚 ماڈل پیپر کی تیاری اور اہمیت
یہ ماڈل پیپر بورڈ کی جانب سے 14 نومبر 2026ء کو جاری کردہ سمارٹ سلیبس (Smart Syllabus) سے متعلق نوٹیفکیشن سے لیا گیا ہے۔ اور ماڈل پیپر حکومت پنجاب کی طرف سے سمارٹ سلیبس کے نوٹیفکیشن میں جاری ہوا، جبکہ اس کے تمام سوالات کے تفصیلی اور مستند حل PECTAA کی جانب سے شائع کردہ درسی کتاب سے حاصل کیے گئے ہیں۔
طلبہ کے لیے یہ ماڈل پیپر سالانہ امتحان 2027ء کی تیاری میں خصوصی اہمیت رکھتا ہے۔ اس میں دیے گئے سوالات اور ان کے حل کو اچھی طرح سمجھیں، بار بار دہرائیں اور اپنی امتحانی تیاری کو مؤثر بنائیں۔
اس ماڈل پیپر کو اپنی امتحانی تیاری کا اہم حصہ بنائیں، تاہم بہترین نتائج کے لیے مکمل سمارٹ سلیبس اور درسی کتاب کا مطالعہ بھی ضرور کریں۔
بہترین تیاری، شاندار کامیابی کی ضمانت!
Model Paper
Computer Science and Entrepreneurship Grade-12
(Intermediate Part-II)
Smart Syllabus / ALP – Academic Session 2026-27 & BISE Exam-2027
Question 1: Encircle the correct answer. Four possible answers A, B, C, D are given to each question. The choice which you think is correct, fill that circle in front of that question with marker or pen ink in the answer book. Cuttings are filling two or more circles will result in zero marks for that question.
- a. FTP
- b. DNS
- c. TCP
- d. HTTP
Step 1: A web browser asks a web server for a page. Step 2: HTTP (HyperText Transfer Protocol) defines this request/response. FTP moves files, DNS translates names, TCP only carries data reliably.
- a. Switch
- b. Hub
- c. Modem
- d. NIC
Modem = MOdulator + DEModulator. It modulates digital data into signals suitable for telephone/cable lines and demodulates incoming signals back to digital. A switch and hub only connect local devices; a NIC connects one computer to a network.
- a. P
- b. Q
- c. P AND Q
- d. True
A compound proposition joins simple propositions with logical connectives (AND, OR, NOT). P and Q are simple (atomic) propositions; “True” is only a truth value. P AND Q (P ∧ Q) uses a connective.
- a. Unsatisfiable
- b. Invalid
- c. Satisfiable
- d. Equivalent
If at least one row of the truth table gives True, the proposition is satisfiable. If no row is True it is unsatisfiable (contradiction).
- a. Write Programs
- b. Store Data
- c. Evaluate Logical Expression
- d. Design Algorithms
A truth table lists every combination of input truth values and shows the output of the expression for each one.
- a. Inheritance
- b. Polymorphism
- c. Encapsulation
- d. Abstraction
Encapsulation wraps data and methods together and restricts direct access to the data (private attributes). Abstraction hides complexity, not the data itself.
- a. def
- b. class
- c. function
- d. object
Syntax:
class Student:. The keyword def defines a function/method.- a. Create, Read, Update, Delete
- b. Create, Run, Update, Delete
- c. Create, Read, Update, Download
- d. Create, Read, Manage, Delete
The four basic operations on stored data: INSERT (Create), SELECT (Read), UPDATE (Update), DELETE (Delete).
- a. Primary Key
- b. Foreign Key
- c. Secondary Key
- d. Alternate key
A primary key is unique and never NULL, so it identifies exactly one record. A foreign key only links to another table.
- a. Un-structured Data
- b. Structured Data
- c. Raw Data
- d. Random Data
Tables with fixed rows (records) and columns (fields), such as a spreadsheet or SQL table, are structured data.
- a. Work without data
- b. Learn from data and improve performance
- c. Only store data
- d. Replace databases
ML finds patterns in data and improves with experience without being explicitly programmed for every rule. It always needs data.
- a. Mean
- b. t-value
- c. Mode
- d. Median
A test statistic is calculated from sample data to decide about a hypothesis (t, z, chi-square, F). Mean, mode and median are descriptive measures.
- a. A final result
- b. Test Value
- c. Proposed Explanation
- d. A dataset
A hypothesis is a testable, proposed explanation or claim about a population. It is tested, not assumed to be a final result.
- a. AWS
- b. MS-Word
- c. Smartwatch
- d. USB flash drive
Amazon Web Services provides computing, storage and databases over the internet on demand – the definition of cloud computing.
- a. Faster browsing
- b. Malware infection
- c. Getting rewards
- d. Extra storage
Unknown software may hide viruses, spyware or ransomware that damage files or steal data.
Model Paper
Computer Science and Entrepreneurship Grade-12
(Intermediate Part-II)
- Definition: Network architecture is the overall design of a computer network – its hardware, layout (topology), protocols and the way devices communicate.
- Types: Peer-to-Peer (all computers equal) and Client-Server (a server serves many clients).
- Identify: every computer connects to one central device (switch/hub) – this is a Star topology.
- Failure: when the central switch/hub failed, every connected device lost communication, because all traffic passes through it (single point of failure).
- Remedy: keep a backup switch.
- People remember names such as www.786times.com; computers need numeric IP addresses.
- DNS stores the name→IP mapping, just as a phonebook maps a person’s name to a phone number.
- The browser asks a DNS server, gets the IP address, then connects to that website.
- Propositional logic treats the whole sentence as one atomic proposition (say P) and cannot talk about individual students or “all”.
- Predicate logic uses predicates and quantifiers: ∀x (Student(x) → LovesCoding(x)), read “for every x, if x is a student then x loves coding”.
- So it can express properties of objects and statements like “all” (∀) or “some” (∃).
| Point | Supervised | Unsupervised |
|---|---|---|
| Data | Labelled (input + correct output) | Unlabelled |
| Goal | Predict the label | Find hidden patterns/groups |
| Example | Spam detection, regression | Customer clustering |
- To find patterns in very large data that humans cannot analyse manually.
- To automate decisions and predictions (recommendations, fraud detection, medical diagnosis).
- It improves automatically as more data arrives, saving time and cost.
- Data members are made private (e.g.
__balance) so outside code cannot change them directly. - Access is allowed only through public methods (getters/setters) that can check the value first.
- This prevents accidental or illegal changes and protects data integrity.
__init__ method of class Player:
self.health = 100(Outside the class, for an object:
player1.health = 100.)| Class | Object |
|---|---|
| Blueprint/template | Real instance of a class |
Defined once with class | Created many times: s1 = Student() |
| Takes no memory for data until used | Occupies memory with its own data |
- Meaning: bundling data (attributes) and the methods that work on it into one unit (class) and restricting direct access to the data.
- Importance: (a) protects data, (b) makes code modular and easy to maintain, (c) lets the internal code change without affecting users of the class.
import sqlite3
conn = sqlite3.connect("school.db")
cur = conn.cursor()
Step 1: import the sqlite3 module. Step 2: connect() opens (or creates) the database file. Step 3: a cursor runs SQL commands; finish with conn.commit() and conn.close().| Entity | Attribute |
|---|---|
| A real-world object/thing about which data is stored (table) | A property describing the entity (column) |
| Student, Teacher | Roll No, Name, Age |
| Primary Key | Foreign Key |
|---|---|
| Uniquely identifies each record in its own table | Field that refers to the primary key of another table |
| Cannot be NULL or duplicate | Can be duplicate (and NULL) |
| One per table | Many allowed per table |
| Null Hypothesis (H0) | Alternative Hypothesis (Ha) |
|---|---|
| States there is no effect/no difference (status quo) | States there is an effect/difference |
| Uses =, ≤, ≥ | Uses ≠, <, > |
| What we try to reject | Accepted when H0 is rejected |
- Removing data only to get a desired result is data manipulation (cherry-picking) and gives false conclusions.
- Outliers may be genuine and important (rare events, errors that need study).
- Honest research should report and justify any removal, so results stay trustworthy.
Step 1: the significance level α is the probability of a Type I error. Step 2: α = 0.05 = 5%. So there is a 5% chance of rejecting H0 when it is actually true.
- The p-value is the probability of getting the observed result (or more extreme) if H0 is true.
- Decision rule: if p ≤ α (e.g. 0.05) reject H0; if p > α do not reject.
- It shows how strong the evidence against H0 is.
- Security: each block stores a cryptographic hash of the previous block, so changing one record breaks the whole chain.
- Decentralised: many computers keep a copy and agree (consensus) before a block is added.
- Transparency: all participants can verify the same ledger, which cannot be secretly altered.
- Old devices contain toxic metals (lead, mercury, cadmium) that leak into soil and water.
- Burning e-waste releases poisonous gases that pollute air and harm health.
- It wastes valuable resources that could be recycled.
Note: Attempt any three descriptive answers of the following questions: (8 × 3 = 24)
Step 2 – Diagram: (data moves down at the sender and up at the receiver)
| No. | Layer | Function | Unit / Example |
|---|---|---|---|
| 7 | Application | Gives network services to user programs (web, email, file transfer) | Data; HTTP, SMTP, FTP |
| 6 | Presentation | Translates, encrypts and compresses data | Data; JPEG, SSL/TLS |
| 5 | Session | Opens, manages and closes sessions between computers | Data; NetBIOS, RPC |
| 4 | Transport | Breaks data into segments, error control, flow control | Segment; TCP, UDP |
| 3 | Network | Logical (IP) addressing and routing of packets | Packet; IP, router |
| 2 | Data Link | Physical (MAC) addressing, framing, error detection between neighbouring nodes | Frame; Ethernet, switch |
| 1 | Physical | Sends raw bits as electrical/light/radio signals | Bits; cables, hub |
Step 2 – Program:
class Grandfather:
def __init__(self):
self.land = "100 acres of land"
def show_grandfather(self):
print("Grandfather owns", self.land)
class Father(Grandfather): # level 2
def __init__(self):
super().__init__()
self.business = "a cloth shop"
def show_father(self):
print("Father runs", self.business)
class Son(Father): # level 3
def __init__(self):
super().__init__()
self.job = "software engineering"
def show_son(self):
print("Son studies", self.job)
s = Son()
s.show_grandfather()
s.show_father()
s.show_son()
Step 3 – Output:
Grandfather owns 100 acres of land Father runs a cloth shop Son studies software engineeringStep 4 – Explanation:
super().__init__() calls the parent constructor, so the object s receives land, business and job, and can call all three methods.Step 2 – Techniques:
- Train-test split: data is divided (e.g. 80% train, 20% test); the model is tested on unseen data.
- Validation set / cross-validation: data is split into k parts; the model is trained and tested k times to check robustness.
- Confusion matrix: table of correct and wrong predictions.
| Predicted Yes | Predicted No | |
|---|---|---|
| Actual Yes | TP | FN |
| Actual No | FP | TN |
- Accuracy = (TP + TN) / (TP + TN + FP + FN) – share of all correct predictions.
- Precision = TP / (TP + FP) – of predicted positives, how many are really positive.
- Recall = TP / (TP + FN) – of real positives, how many were found.
- F1-score = 2 × (Precision × Recall) / (Precision + Recall) – balance of precision and recall.
Accuracy = (40 + 45)/100 = 0.85 (85%)
Precision = 40/(40 + 5) = 40/45 = 0.89
Recall = 40/(40 + 10) = 40/50 = 0.80
F1 = 2 × (0.89 × 0.80)/(0.89 + 0.80) = 0.84
Step 2 – Benefits:
- Healthcare: early disease detection from scans.
- Education: personalised learning and instant help.
- Business/industry: automation raises speed and reduces cost.
- Safety and services: fraud detection, traffic and weather prediction, support for disabled people.
- Job loss through automation.
- Bias and unfair decisions when training data is biased.
- Privacy risks from large-scale data collection.
- Deepfakes and misinformation; security misuse.
- Over-dependence on machines.
| Principle | How it ensures fair use |
|---|---|
| Fairness | Use balanced data and test for bias |
| Transparency | Explain how decisions are made |
| Accountability | Humans/organisations remain responsible |
| Privacy | Collect and store only permitted data |
| Safety and human control | Humans can review and override AI |
- Open the Settings → Privacy & Security page of the platform.
- Choose who can see posts and profile (Public / Friends / Only me).
- Check app and device permissions (camera, location, contacts) and allow only what is needed.
- Use a strong, unique password and turn on Two-Factor Authentication.
- Limit ad personalisation and data sharing with third parties.
- Review login activity and log out of unknown devices.
- Delete old posts, accounts and data that are not needed.
- It tells which personal data is collected (name, location, contacts).
- It tells how the data is used and whether it is shared or sold to others.
- It states how long data is kept and how a user can delete it or withdraw consent.
- It helps to avoid unsafe apps and protects against misuse and identity theft.
— End of Paper —
