Skip to content
📚 Free notes, MCQ tests & past papers — FBISE & BISE Rawalpindi
📢 Latest Updates

FBISE 2nd Year Computer Science Unit 5 Applications of Computer Science: Short and Long Questions with Answers 2027

Reviewed by Sadia Shahid, Senior Science teacher (Maths, Physics, Chemistry, Biology, Computer Science)

Here are the important short and long questions of Unit 5, Applications of Computer Science, from the Federal Board (FBISE) 2nd Year Computer Science course (HSSC-II, Intermediate Part II), solved in full for the Annual Examination 2027.

Unit 5: Applications of Computer Science
Class 2nd Year (HSSC-II), Federal Board
Subject Computer Science
Contents Short and long questions with answers
Exam FBISE Annual Examination 2027

Short Questions with Answers: Unit 5

Q1. What is the purpose of train-test split in machine learning model building? [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • A train–test split divides the dataset into two parts, typically 70–80% for training and 20–30% for testing.

  • The training set is used to teach (fit) the model, i.e. to learn patterns and weights.

  • The test set contains unseen data and is used to evaluate how well the model generalises to new data, giving honest accuracy and precision.

  • It helps detect overfitting (high training accuracy but poor test accuracy) and supports fair comparison of models.

Q2. What is feature engineering, and why is it important in machine learning? [Model Paper 2025 (New Curriculum)] (1+2)

Answer:

  • Feature engineering is the process of selecting, creating, transforming and cleaning input variables (features) from raw data to make them more useful for a machine learning model.

  • Importance:

  • Good features improve model accuracy and help the model find patterns (e.g. creating “age” from “date of birth”).

  • It reduces noise and dimensionality (removes irrelevant features), so training is faster and overfitting is less likely.

  • It handles missing values, scaling and encoding of categories, so the data is suitable for the algorithm.

Q3. What are the key steps involved in building a machine-learning model? [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • Data collection and data preparation (cleaning, handling missing values, normalisation, feature engineering).

  • Train–test split, model selection and training (e.g. decision tree, neural network) on training data.

  • Evaluation on test data (accuracy, precision, recall), then tuning and deployment of the model for real use.

Diagram: What are the key steps involved in building a machine-learning model? [Model Paper 2025 (New Curriculum)] (03)

Steps in building a machine learning model

Q4. What challenges do companies face when ensuring both data security and user privacy? (Any three) [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • Cyber-attacks and data breaches: hackers, malware and ransomware threaten stored data, so strong security systems are costly to build and maintain.

  • Balancing data use with privacy laws: companies need customer data for business and analytics but must follow privacy rules (consent, data minimisation, e.g. GDPR), which limits how data is collected and shared.

  • Insider threats and human error: employees may misuse or accidentally leak data (weak passwords, phishing). There are also challenges with third-party vendors and cloud storage security.

Q5. What is deep learning and traditional machine learning? [Model Paper 2025 (New Curriculum)] (1.5+1.5)

Answer:

  • Traditional machine learning: algorithms (e.g. decision trees, linear regression, SVM) learn from data in which features are manually selected (feature engineering) by humans. It works well with smaller, structured datasets and needs less computing power.

  • Deep learning: a subset of ML using artificial neural networks with many hidden layers, which automatically learn features from raw data. It needs large datasets and high computing power (GPUs), and is very good for images, speech and language (e.g. face recognition, ChatGPT).

Q6. A university is offering online courses to students worldwide. How can cloud computing enhance accessibility and performance? [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • Accessibility: course material (videos, notes, quizzes) is stored on cloud servers, so students anywhere in the world can access it 24/7 through the internet on any device.

  • Scalability and performance: cloud resources scale up automatically when thousands of students log in (e.g. during exams), and Content Delivery Networks (CDNs) serve videos from servers near each student, reducing delay.

  • Collaboration and low cost: cloud tools (Google Classroom, MS Teams, LMS) support live classes, assignment submission and backups without the university buying expensive servers (pay-as-you-use).

Q7. Write down any three advantages of machine learning. [Annual 2026 – Paper B] (1×3)

Answer:

  • Automation of repetitive tasks (e.g. sorting emails, spam filtering), which saves time and effort.

  • Handles and analyses large data to find hidden patterns, giving accurate predictions (sales forecasting, medical diagnosis).

  • Continuous improvement and personalisation: models improve with more data, and give personalised recommendations (YouTube, online shopping).

Q8. Briefly discuss the concept of a test-train split in model building. [Annual 2026 – Paper B] (03)

Answer:

  • In model building, the dataset is split into a training set (e.g. 80%) and a testing set (e.g. 20%), usually randomly (e.g. train_test_split in Python).

  • The model learns from the training data only. The test data is kept hidden and used later to check performance on unseen examples.

  • This shows whether the model generalises well or is overfitting. A separate validation set or cross-validation may also be used for tuning.

Q9. Why is feature engineering important in machine learning? Support your answer with three points. [Annual 2026 – Paper B] (1×3)

Answer:

  • Improves accuracy: meaningful features help the model learn relevant patterns, so predictions become more accurate.

  • Reduces overfitting and complexity: removing irrelevant or duplicate features makes the model simpler, faster and better at generalising.

  • Makes data usable: handling missing values, scaling numbers and converting text or categories into numbers puts the raw data into a form the algorithm can understand.

Q10. How does deep learning work in robotics? Briefly discuss. [Annual 2026 – Paper B] (03)

Answer:

  • Deep learning gives robots the ability to perceive, learn and make decisions from large amounts of sensor data.

  • Computer vision: convolutional neural networks (CNNs) process camera images to recognise objects, faces and obstacles, e.g. a warehouse robot identifying parcels.

  • Learning actions: through deep reinforcement learning, robots learn tasks (grasping, walking, navigating) by trial and error, receiving rewards. Speech recognition (RNNs/transformers) lets robots understand voice commands. Self-driving cars are an example.

Q11. Briefly discuss the concept of blockchain. Provide its one application. [Annual 2026 – Paper B] (2+1)

Answer:

  • Blockchain is a decentralised, distributed digital ledger that records transactions in blocks linked together in a chain using cryptographic hashes. Each block contains data, its own hash and the previous block’s hash.

  • Copies are kept on many computers (nodes), and changes need consensus, so records are transparent, secure and tamper-proof (immutable).

  • Application: cryptocurrency (Bitcoin); also land-record management, supply-chain tracking and secure degree verification.

Diagram: Briefly discuss the concept of blockchain. Provide its one application. [Annual 2026 – Paper B] (2+1)

Blocks linked by hashes in a blockchain

Q12. How can IoT be helpful in controlling air pollution? Give three reasons. [Annual 2026 – Paper B] (1×3)

Answer:

  • Real-time monitoring: IoT air-quality sensors (PM2.5, CO₂, NO₂, SO₂) placed across a city send continuous data to the cloud, showing pollution levels and hotspots.

  • Alerts and quick action: when pollution crosses safe limits, the system sends alerts to citizens’ smartphones and authorities (e.g. smog warnings in Lahore), so people can take precautions and the government can stop polluting activities.

  • Smart control and planning: IoT controls smart traffic signals to reduce vehicle idling, monitors factory emissions, and automatically switches on air purifiers. The collected data helps plan long-term policies.

Diagram: How can IoT be helpful in controlling air pollution? Give three reasons. [Annual 2026 – Paper B] (1×3)

Basic IoT system

Q13. What is the difference between supervised learning and unsupervised learning? [Annual 2026 – Paper D] (1.5+1.5)

Answer:

Supervised learning Unsupervised learning
Trained on labelled data (input with correct output) Trained on unlabelled data (no correct answers given)
Goal: predict output/labels for new data Goal: find hidden patterns or groups in data
Types: classification, regression Types: clustering, association
e.g. spam vs not-spam email, house price prediction e.g. customer segmentation, market basket analysis

Q14. Explain briefly overfitting and underfitting in model building using machine learning. [Annual 2026 – Paper D] (1.5+1.5)

Answer:

  • Overfitting: the model learns the training data too closely, including noise and details. It gives very high accuracy on training data but poor accuracy on new (test) data; it fails to generalise. It is caused by an overly complex model or too little data. Remedies: more data, simpler model, regularisation, cross-validation.

  • Underfitting: the model is too simple to capture the patterns in the data, so it performs poorly on both training and test data. Remedies: a more complex model, better features, longer training.

Q15. How can IoT be helpful in healthcare? Briefly discuss. [Annual 2026 – Paper D] (03)

Answer:

  • Remote patient monitoring: wearable IoT devices (smart watches, glucose and BP monitors, pulse oximeters) measure heart rate, blood pressure, sugar and SpO₂, and send the data to doctors in real time, so patients can be monitored at home.

  • Emergency alerts: if readings become abnormal (e.g. heart attack signs or a fall in elderly people), the system automatically alerts doctors or family.

  • Smart hospitals: tracking of equipment and medicines, smart beds, and automatic drug dispensers improve efficiency and reduce errors. The data also helps in diagnosis and research.

Q16. How is a neural network trained using feedforward propagation? [Annual 2026 – Paper D] (03)

Answer:

  • In feedforward propagation, input data passes forward from the input layer through the hidden layers to the output layer.

  • At each neuron the inputs are multiplied by weights, added together with a bias, and passed through an activation function (e.g. ReLU, sigmoid): output = f(Σ wᵢxᵢ + b).

  • The output layer gives the prediction, which is compared with the actual value using a loss function to find the error.

  • During training this error is used in backpropagation to adjust the weights, and feedforward is repeated over many epochs until the error becomes minimum.

Diagram: How is a neural network trained using feedforward propagation? [Annual 2026 – Paper D] (03)

Feedforward and backpropagation in a neural network

Q17. What is cloud computing? Give any one application of cloud computing. [Annual 2026 – Paper D] (1+2)

Answer:

  • Cloud computing is the delivery of computing services (servers, storage, databases, software, networking and processing power) over the internet on demand, usually on a pay-as-you-go basis, instead of owning local hardware. Services are IaaS, PaaS and SaaS.

  • Application: online storage and file sharing (Google Drive, OneDrive, Dropbox), where files are saved on the cloud and accessed from any device anywhere. (Also Gmail, online classes via Zoom, Netflix streaming.)

Long Questions with Answers: Unit 5

Q1. Emerging technologies are shaping the future of Pakistan’s digital landscape. [Model Paper 2025 (New Curriculum)] (3+2)

(a) Why is IoT important for smart cities or smart agriculture in Pakistan? (Three points)

(b) Give two suggestions how a Blockchain-based system could improve security in Pakistan.

Answer:

(a) Importance of IoT for smart cities / smart agriculture in Pakistan

  • Smart agriculture and water saving: IoT soil-moisture and weather sensors let farmers irrigate only when needed. This saves scarce water (Pakistan is water-stressed), increases crop yield and reduces fertiliser waste.

  • Smart traffic and public services: sensors and cameras control traffic signals, reduce congestion and accidents (e.g. Safe City projects in Islamabad and Lahore), and monitor street lights and waste collection.

  • Energy and pollution management: smart meters reduce electricity theft and line losses, and air-quality sensors monitor smog in Lahore, supporting better planning and quick action.

(b) Blockchain for improving security in Pakistan

  • Land records and property registration: storing ownership records on a blockchain makes them tamper-proof and transparent, which reduces fraud and fake transfers.

  • Secure financial transactions, identity and elections: blockchain-based digital identity (linked with NADRA), remittances and banking payments can prevent forgery and corruption. Blockchain e-voting can make elections transparent and verifiable.

Q2. How can the Internet of Things (IoT) be helpful in the healthcare sector and in traffic management systems? Explain. [Annual 2026 – Paper B] (2.5+2.5)

Answer:

IoT in healthcare

  • Remote patient monitoring: wearable devices (smart watches, glucose meters, BP and ECG monitors) send real-time data to doctors, so chronic patients and the elderly can be monitored at home.

  • Emergency alerts: abnormal readings or falls automatically alert doctors and family, saving lives.

  • Smart hospitals: tracking of equipment, medicines and patients; smart beds; automatic monitoring of fridges storing vaccines. This reduces errors and cost and improves care.

IoT in traffic management

  • Smart traffic signals: sensors and cameras measure traffic density and adjust signal timings automatically, reducing jams and waiting time.

  • Real-time information and navigation: data from vehicles and roads is sent to apps (e.g. Google Maps), suggesting less crowded routes and showing parking availability.

  • Safety and enforcement: automatic number-plate recognition, e-challans for violations, accident detection, and priority signals for ambulances.

Diagram: How can the Internet of Things (IoT) be helpful in the healthcare sector and in traffic management systems? Ex

General working of an IoT system

Q3. How is a neural network trained? Explain feedforward and backpropagation processes of neural network. [Annual 2026 – Paper B] (1+2+2)

Answer:

Training a neural network

A neural network is trained by showing it many labelled examples and adjusting its weights and biases so that its predictions become closer to the correct outputs. This is repeated over many epochs until the error (loss) is minimum.

Feedforward propagation

  • Input data enters the input layer and passes forward through the hidden layers to the output layer.

  • At each neuron: weighted sum z = Σ(wᵢ × xᵢ) + b; then an activation function gives the output a = f(z) (e.g. ReLU, sigmoid).

  • The output layer produces the prediction, which is compared with the actual target using a loss (error) function, e.g. mean squared error.

Backpropagation

  • The error is propagated backward from the output layer to the earlier layers.

  • Using calculus (the chain rule), the gradient of the error with respect to each weight is calculated, i.e. how much each weight contributed to the error.

  • Gradient descent updates each weight: w_new = w_old – (learning rate × gradient), so the error decreases.

  • Feedforward and backpropagation are repeated for all training data over many epochs, until the network predicts accurately.

Diagram: How is a neural network trained? Explain feedforward and backpropagation processes of neural network. [Annual

Feedforward and backpropagation

Q4. Explain the advantages and limitations of Machine Learning compared to rule-based algorithms. Provide at least two points for each. [Annual 2026 – Paper D] (2.5+2.5)

Answer:

Rule-based algorithms follow fixed “if–then” rules written by humans. Machine learning learns patterns from data.

Advantages of machine learning

  • Learns complex patterns automatically: it handles problems where rules are too many or unknown (image recognition, speech, spam detection), without manually coding every rule.

  • Adapts and improves: the model can be retrained on new data and improves with more data (e.g. fraud detection adapting to new fraud patterns), while rule-based systems need manual updating.

  • Handles large, complex data and makes accurate predictions (recommendations, forecasting).

Limitations of machine learning

  • Needs large amounts of good-quality (labelled) data and high computing power. Poor or biased data gives wrong or unfair results.

  • Less transparent (“black box”): it is hard to explain why a decision was made, whereas rule-based logic is clear. Models may also make unexpected errors and overfit. For simple, well-defined tasks (e.g. tax calculation), rule-based algorithms are cheaper and more reliable.

Q5. What is Deep Learning? Describe any two applications of Deep Learning. [Annual 2026 – Paper D] (1+2+2)

Answer:

Deep learning is a branch of machine learning that uses artificial neural networks with many hidden layers (deep neural networks) to automatically learn complex features and patterns from large amounts of raw data (images, sound, text), without manual feature extraction.

Applications

  • Computer vision / image recognition: face recognition to unlock phones, medical image analysis (detecting tumours in X-rays/MRI), and self-driving cars recognising pedestrians, traffic signs and vehicles (using CNNs).

  • Natural language processing and speech recognition: voice assistants (Siri, Google Assistant), machine translation (Google Translate) and chatbots (ChatGPT) understand and generate human language (using RNNs/transformers).

  • (Also: recommendation systems and robotics.)

Q6. What is Blockchain? Explain the applications of Blockchain in the banking industry and in the education sector. [Annual 2026 – Paper D] (1+2+2)

Answer:

Blockchain is a decentralised, distributed digital ledger that records transactions in blocks linked in a chain by cryptographic hashes. Copies exist on many computers (nodes), and new blocks are added by consensus, so the records are secure, transparent and practically impossible to alter (immutable).

Applications in banking

  • Fast, low-cost payments and remittances: cross-border transfers can be done in minutes without many intermediaries (e.g. blockchain-based remittance services between Malaysia and Pakistan).

  • Fraud prevention and secure records: tamper-proof transaction records, smart contracts that execute loans and trade agreements automatically, and shared KYC (customer identity) records reduce fraud and paperwork.

Applications in education

  • Secure digital certificates and degrees: universities issue degrees on blockchain, so employers can instantly verify them and fake degrees are prevented.

  • Lifelong learning records and transparency: students’ transcripts, credits and achievements are stored securely and can be shared between institutions, and scholarship and fee payments can be tracked transparently.

Diagram: What is Blockchain? Explain the applications of Blockchain in the banking industry and in the education sector

Structure of a blockchain

You can find the other units of 2nd Year Computer Science on the main page: FBISE 2nd Year Computer Science short and long questions, all units.

Questions follow the FBISE HSSC-II Computer Science syllabus and paper pattern. Please confirm all dates and figures on the official website: www.fbise.edu.pk

Need help with 2nd Year Computer Science? Join our live online classes for the Federal Board. Book a free demo class.

All chapters of this subject

📌 Struggling with this chapter? Join our live online tuition — one-to-one or small group classes with experienced teachers. Book a free demo class →

Ask a question about this topic

Your email address will not be published. Required fields are marked *