Total Pageviews

Monday, September 7, 2026

📊 Data Preprocessing in dataset for Machine Learning using python

📊 Data Preprocessing in Machine Learning

Professional College Notes with Python Programs & Outputs

1. What is Data Preprocessing?

Definition:
Data preprocessing is the process of inspecting, cleaning, transforming and preparing raw data before it is supplied to a machine-learning algorithm.

Real-world data is rarely perfect. A dataset may contain missing values, noisy observations, inconsistent formats, categorical values, redundant features and different numerical scales.

Raw Data
Data Cleaning
Transformation
Feature Selection
ML Model
Student Note: The quality of the input data strongly influences the quality of the machine-learning model. Therefore, preprocessing is an important part of the ML workflow.

2. Why Do We Preprocess Data?

Reason Explanation
Improved Data Quality Makes data more consistent, accurate and reliable.
Better Model Performance Helps algorithms identify useful patterns.
Improved Accuracy Properly prepared data can improve meaningful model evaluation.
Reduced Computational Cost Removing unnecessary data can reduce processing requirements.
Feature Engineering Helps identify and construct useful input variables.
Common problems in raw data:
  • Missing values
  • Outliers and noise
  • Inconsistent formats
  • Categorical variables
  • Different feature scales
  • Redundant features
  • High-dimensional data

3. Important Python Libraries

🐼
Pandas Data manipulation
🔢
NumPy Numerical computation
🤖
Scikit-Learn ML preprocessing
📈
Matplotlib Visualization
Python Code
import numpy as np import pandas as pd from sklearn.preprocessing import ( MinMaxScaler, StandardScaler, OneHotEncoder, LabelEncoder ) print("Libraries imported successfully")
Output
Libraries imported successfully

4. Handling Missing Values

A missing value occurs when a dataset does not contain a valid value for a particular observation. Examples include: NaN, None, NULL

4.1 Create a Dataset with Missing Values

import pandas as pd import numpy as np data = { "Age":[20,21,np.nan,23,24], "Salary":[25000,np.nan,30000,32000,35000], "Score":[80,85,90,np.nan,95] } df = pd.DataFrame(data) print(df)
Age Salary Score 0 20.0 25000.0 80.0 1 21.0 NaN 85.0 2 NaN 30000.0 90.0 3 23.0 32000.0 NaN 4 24.0 35000.0 95.0

4.2 Detect Missing Values

print(df.isnull().sum())
Age 1 Salary 1 Score 1 dtype: int64

4.3 Remove Rows

df_removed = df.dropna() print(df_removed)
Age Salary Score 0 20.0 25000.0 80.0 4 24.0 35000.0 95.0
When to use: Row removal can be reasonable when only a small amount of information is missing and removing those observations will not introduce serious bias.

4.4 Mean / Median Imputation

df["Age"] = df["Age"].fillna( df["Age"].mean() ) df["Salary"] = df["Salary"].fillna( df["Salary"].median() ) df["Score"] = df["Score"].fillna( df["Score"].mean() ) print(df)
Age Salary Score 0 20.0 25000.0 80.0 1 21.0 30000.0 85.0 2 22.0 30000.0 90.0 3 23.0 32000.0 87.5 4 24.0 35000.0 95.0
Remember: Mean, median or another appropriate imputation strategy should be selected according to the data and problem. Median is often more robust than mean when extreme values are present.

5. Handling Noisy Data

Noise refers to unwanted variation, errors or irrelevant observations that can obscure useful patterns. Two techniques discussed here are: Smoothing and Binning.

5.1 Smoothing Using Moving Average

data = { "Marks":[50,52,49,90,51,53] } df = pd.DataFrame(data) df["Smoothed"] = ( df["Marks"] .rolling(window=3) .mean() ) print(df)
Marks Smoothed 0 50 NaN 1 52 NaN 2 49 50.33 3 90 63.67 4 51 63.33 5 53 64.67
A moving average can reduce short-term variation, but it does not automatically mean that an unusual observation should be deleted. Domain knowledge is important.

5.2 Binning

marks = [35,42,48,55,63,71,88] bins = [0,40,60,80,100] labels = [ "Poor", "Average", "Good", "Excellent" ] result = pd.cut( marks, bins=bins, labels=labels ) print(result)
['Poor', 'Average', 'Average', 'Average', 'Good', 'Good', 'Excellent']

6. Data Transformation — Normalization

Normalization transforms numerical features to a common range, commonly 0 to 1.
Min-Max Normalization

x' = (x − xmin) / (xmax − xmin)

Python Example

from sklearn.preprocessing import MinMaxScaler data = { "Age":[20,25,30,35,40], "Salary":[20000,40000,60000,80000,100000] } df = pd.DataFrame(data) scaler = MinMaxScaler() normalized = scaler.fit_transform(df) normalized_df = pd.DataFrame( normalized, columns=df.columns ) print(normalized_df)
Age Salary 0 0.00 0.00 1 0.25 0.25 2 0.50 0.50 3 0.75 0.75 4 1.00 1.00
Useful for: Distance-based algorithms such as KNN and K-Means can be sensitive to differences in feature scale.

7. Data Transformation — Standardization

Standardization transforms a feature so that it has approximately mean = 0 and standard deviation = 1.
z = (x − μ) / σ

μ = Mean     σ = Standard Deviation
from sklearn.preprocessing import StandardScaler data = { "Age":[20,25,30,35,40], "Salary":[20000,40000,60000,80000,100000] } df = pd.DataFrame(data) scaler = StandardScaler() standardized = scaler.fit_transform(df) result = pd.DataFrame( standardized, columns=df.columns ) print(result.round(2))
Age Salary 0 -1.41 -1.41 1 -0.71 -0.71 2 0.00 0.00 3 0.71 0.71 4 1.41 1.41
Normalization vs Standardization

Normalization → commonly maps values to a fixed range such as 0 to 1.
Standardization → centers data around 0 using the mean and standard deviation.

8. Encoding Categorical Data

Machine-learning algorithms often require numerical input. Categorical text values therefore need an appropriate numerical representation.

8.1 One-Hot Encoding

One-hot encoding creates a separate binary column for each category.

from sklearn.preprocessing import OneHotEncoder data = pd.DataFrame({ "Color":[ "Red", "Blue", "Green", "Blue", "Red" ] }) encoder = OneHotEncoder( sparse_output=False ) encoded = encoder.fit_transform( data[["Color"]] ) result = pd.DataFrame( encoded, columns=encoder.get_feature_names_out( ["Color"] ) ) print(result)
Color_Blue Color_Green Color_Red 0 0.0 0.0 1.0 1 1.0 0.0 0.0 2 0.0 1.0 0.0 3 1.0 0.0 0.0 4 0.0 0.0 1.0

8.2 Label Encoding

from sklearn.preprocessing import LabelEncoder data = pd.DataFrame({ "Color":[ "Red", "Blue", "Green", "Blue", "Red" ] }) encoder = LabelEncoder() data["Color_Encoded"] = ( encoder.fit_transform( data["Color"] ) ) print(data)
Color Color_Encoded 0 Red 2 1 Blue 0 2 Green 1 3 Blue 0 4 Red 2
Important: Do not blindly use label encoding for nominal input features, because assigning numbers can imply an ordering that may not exist. One-hot encoding is often more appropriate for nominal features.

9. Feature Selection Using Correlation

Correlation measures the strength and direction of a relationship between numerical variables.
Correlation coefficient: −1 ≤ r ≤ +1

r ≈ +1 → strong positive relationship
r ≈ −1 → strong negative relationship
r ≈ 0 → weak or no linear relationship
import pandas as pd data = { "StudyHours":[1,2,3,4,5], "Marks":[40,50,60,70,80], "SleepHours":[8,7,6,5,4] } df = pd.DataFrame(data) correlation = df.corr() print( correlation.round(2) )
StudyHours Marks SleepHours StudyHours 1.00 1.00 -1.00 Marks 1.00 1.00 -1.00 SleepHours -1.00 -1.00 1.00
Interpretation: Features with very high correlation with one another may contain redundant information. However, correlation alone should not be used blindly to remove features; domain knowledge and model validation should also be considered.

10. Chi-Square Feature Selection

The Chi-Square test can be used to evaluate the association between categorical features and a categorical target.
from sklearn.feature_selection import chi2 from sklearn.preprocessing import LabelEncoder import pandas as pd df = pd.DataFrame({ "Color":[ "Red", "Blue", "Red", "Green", "Blue" ], "Target":[ 1, 0, 1, 0, 0 ] }) encoder = LabelEncoder() df["Color_Code"] = ( encoder.fit_transform( df["Color"] ) ) X = df[["Color_Code"]] y = df["Target"] scores, pvalues = chi2(X,y) print("Chi-Square:", scores) print("P-Value:", pvalues)
Chi-Square: [0.625] P-Value: [0.429...]
Interpretation: A small p-value can provide evidence of an association between the feature and target. A common significance threshold is 0.05, but the appropriate threshold and interpretation depend on the statistical context.

11. Feature Extraction

Feature extraction transforms the original feature space into a smaller set of new features while attempting to preserve important information.

One important technique is Principal Component Analysis (PCA).

11.1 Principal Component Analysis

PCA transforms correlated features into a smaller number of orthogonal principal components that capture directions of maximum variance.
import pandas as pd from sklearn.decomposition import PCA data = { "A":[1,2,3,4,5], "B":[10,20,30,40,50], "C":[5,4,3,2,1] } df = pd.DataFrame(data) pca = PCA( n_components=2 ) result = pca.fit_transform(df) pca_df = pd.DataFrame( result, columns=[ "PC1", "PC2" ] ) print(pca_df.round(2)) print( "Explained Variance:", pca.explained_variance_ratio_ )
PC1 PC2 0 20.05 0.00 1 10.02 0.00 2 0.00 0.00 3 -10.02 0.00 4 -20.05 0.00 Explained Variance: [1.000... 0.000...]
Why PCA?
  • Reduces dimensionality
  • Can reduce redundant information
  • Can help visualization
  • Can reduce computational requirements

12. Complete Data Preprocessing Workflow

1. Collect Data
2. Inspect
3. Clean
4. Encode
5. Scale
6. Select Features
7. Train Model
# ========================================== # COMPLETE BASIC PREPROCESSING PIPELINE # ========================================== import pandas as pd from sklearn.model_selection import train_test_split from sklearn.impute import SimpleImputer from sklearn.preprocessing import ( StandardScaler, OneHotEncoder ) # 1. Load data df = pd.read_csv("student_data.csv") # 2. Separate features and target X = df.drop("Result", axis=1) y = df["Result"] # 3. Train-test split X_train, X_test, y_train, y_test = ( train_test_split( X, y, test_size=0.20, random_state=42 ) ) # 4. Handle missing values imputer = SimpleImputer( strategy="median" ) # Apply only to suitable numerical columns # X_train = imputer.fit_transform(X_train) # X_test = imputer.transform(X_test) # 5. Scale numerical features scaler = StandardScaler() # X_train = scaler.fit_transform(X_train) # X_test = scaler.transform(X_test) print("Preprocessing pipeline completed")
Preprocessing pipeline completed
Very Important for Students: Fit preprocessing transformations on the training data and use the learned transformation on the test data. For example:

scaler.fit(X_train)
then
scaler.transform(X_test)

Do not calculate preprocessing parameters from the complete dataset before splitting, because this can cause data leakage.

13. Quick Revision Table

Technique Main Purpose Typical Python Tool
Missing Value Removal Remove incomplete observations dropna()
Imputation Replace missing values fillna(), SimpleImputer
Smoothing Reduce short-term noise rolling()
Binning Group continuous values pd.cut()
Normalization Scale to common range MinMaxScaler
Standardization Mean 0, standard deviation 1 StandardScaler
One-Hot Encoding Categorical → binary columns OneHotEncoder
Label Encoding Categories → integer labels LabelEncoder
Correlation Identify linear relationships DataFrame.corr()
Chi-Square Feature-target association chi2()
PCA Dimensionality reduction PCA()

14. Important Examination Points

Remember these points:
  1. Data preprocessing prepares raw data for machine learning.
  2. Missing values can be removed or imputed.
  3. Mean, median and mode are common simple imputation choices.
  4. Normalization commonly scales values to a fixed range such as 0 to 1.
  5. Standardization produces features centered around zero with unit variance.
  6. One-hot encoding creates binary columns for categories.
  7. Label encoding maps categories to integer labels.
  8. Correlation can help identify redundant numerical features.
  9. Chi-Square can be used for categorical feature selection.
  10. PCA is a dimensionality-reduction technique.
  11. Preprocessing should be performed carefully to avoid data leakage.

15. Final Summary

Good Machine Learning = Good Data + Appropriate Preprocessing + Suitable Model + Proper Evaluation

Data preprocessing is not simply a collection of Python commands. It is a decision-making stage in which the student must understand the structure, quality and meaning of the data.

The correct preprocessing technique depends on the type of data, the machine-learning algorithm, the problem being solved, and the assumptions behind the technique.

Reference: DZone — Machine Learning With Python: Data Preprocessing Techniques
```

Saturday, September 5, 2026

ANKITA

Comprehensive AI Assessment

Compiled questions from Chapter 1 and Chapter 2. Attempt all sections.

A. Select the correct option.

1. What was the first artificial intelligence program called?

2. Which of these is the name of the first chatbot?

3. Which of these was the first intelligent humanoid robot?

4. What are the applications of artificial intelligence in healthcare?

5. Which of these is not an application of AI in education?

6. Which of the following functions is not carried out by robots in the agriculture sector?

7. An AI-powered car that can drive autonomously without a driver present is called:

8. How do social media apps use AI?

B. Fill in the blanks.

1. Technological developments are only limited by human __________.

2. Warren McCulloch and Walter Pitts modelled a simple __________ with electrical circuits.

3. Devices like Fitbit or iWatch collect data like the sleep patterns of the individual, heart rate, etc., which can help with early disease __________.

4. __________ act as friendly customer service representatives that work 24/7 to help people shop.

5. Search engines show you __________ based on your search.

6. Chatbots use __________ driven by AI to answer queries and carry out tasks.

7. AI-powered __________ and __________ are used for spraying insecticides and detecting weed formation on large farms.

8. To better understand conversations, Facebook employs AI in conjunction with a tool known as __________.

C. Write T for True and F for False.

1. Mythology and science fiction can evolve into reality as time progresses.

[ ]

2. A chatbot can convince people that they are talking to a human and not an AI.

[ ]

3. IBM Deep Blue is an AI-based program.

[ ]

4. Personal digital assistants use speech recognition to answer questions.

[ ]

5. AI cannot be trained to generate music and graphics.

[ ]

6. Robots are too clumsy to assist doctors during surgery.

[ ]

7. Frauds during ecommerce transactions cannot be prevented.

[ ]

8. AI helps in making personal recommendations to users in ecommerce, entertainment, apps, etc.

[ ]

9. AI can detect and remove spam from your inbox.

[ ]

10. ISRO's Vyommitra can support astronauts on crewed missions.

[ ]

D. Answer in one word or sentence.

1. What is first AI writer?

2. What does the Turing test check?

3. What did the Logic Theorist program prove?

4. How does AI help in physical therapy?

5. How can AI help in keeping a check on the mental health of children?

6. How can robots help us with housekeeping?

7. How is home security empowered by AI?

8. Mention any three tasks that can be carried out by digital assistants like Amazon Echo.

E. Answer the following questions.

1. What was the reason for the second AI winter?

2. What was the aim of the first AI conference at Dartmouth? What did the conference achieve?

3. What were the important developments during the golden years of AI?

4. What was Project Debater? Write down its aim.

5. What are GANs?

6. What was the name of Google's first self-driving car?

7. What is an android?

8. Give any one example of the following AI-powered applications: a. Social media, b. Navigation, c. Chatbot, d. E-Commerce

9. AI can help in making online shopping a pleasant experience for customers - Justify.

10. Mention any three fields where robots are being used and in what way.

11. What is the change brought about by the 'Internet of Things' in home automation? Mention the AI-enabled smart devices that can be used at home.

12. What are the tasks carried out by AI-powered robots to help in enhancing crop production?

13. Give an example of how ISRO is using AI in space expeditions.

F. AI Imagine (Project Work & Scenario Questions)

1. Imagine that you are an AI-powered humanoid. What would be your name? Write an autobiography of 10 to 12 lines on how you were created and how you helped in making the world a better place. You can make a sketch of the humanoid indicating the special features you would have.

2. The world is still facing wars between countries and disasters like earthquakes or tornadoes where thousands of people get affected – they face the danger of hunger and starvation, lack of proper medical supplies, getting separated from their family or getting trapped under debris. Make a PowerPoint presentation on how AI could help in such situations:
a. How can AI help in rescuing humans trapped under debris by the heat they emit and rescue teams?
b. If you could go back in time and change history, what is the one issue you would address any one of the following issues facing the world today: poverty, hunger, climate change. State your reasons.

3. If you were given the following themes to develop an AI project, which one of the themes would you choose? Mention the function that your project would perform. For example, 'I would like to make an app/project on cooking, where it would tell the users how to cook nutritional food.'
Themes: Painting, Story telling, Music, Nature related, Cooking, Dancing

srijit hitartho

🚗
🤖
🗼 💻 🖥️ 🧠
🖥️
🗼
✨ ICSE Computer Applications Assessment ✨

Computism Lab

Class 8 - Java Programming & Basic Concepts

🧠
🤖
Subject: Computer Applications (Java)
Max Marks: 70
Time Allowed: 2 Hours
Section A: Multiple Choice Questions on Datatypes10 Marks
  1. What is the size of an `int` data type in Java?
    • a. 2 bytes
    • b. 4 bytes
    • c. 8 bytes
    • d. 1 byte
  2. Which of the following is a non-primitive (reference) data type in Java?
    • a. int
    • b. char
    • c. String
    • d. double
  3. What is the default value of a `boolean` data type variable in Java?
    • a. true
    • b. false
    • c. 0
    • d. null
  4. Which data type occupies the maximum memory space in Java?
    • a. float
    • b. int
    • c. double
    • d. short
  5. What is the size of a `char` data type in Java?
    • a. 1 byte
    • b. 2 bytes
    • c. 4 bytes
    • d. 8 bytes
  6. Which of these integer data types has the smallest range?
    • a. int
    • b. long
    • c. byte
    • d. short
  7. Which data type is appropriate for storing fractional numbers like `99.99` by default?
    • a. float
    • b. double
    • c. int
    • d. char
  8. What kind of literal is `true` in Java?
    • a. Integer literal
    • b. Boolean literal
    • c. Character literal
    • d. String literal
  9. Which category do primitive data types belong to?
    • a. User-defined
    • b. Reference
    • c. Built-in / Fundamental
    • d. Derived
  10. What is the default data type for whole integer numbers in Java expressions?
    • a. byte
    • b. short
    • c. int
    • d. long
Section B: Assertion-Based MCQs on Java Basics10 Marks
  1. Assertion (A): Java is a platform-independent language.
    Reason (R): Java code is compiled into bytecode which can execute on any system with a JVM.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  2. Assertion (A): Variable names in Java are case-sensitive.
    Reason (R): `Rate` and `rate` are interpreted as two distinct identifiers by the Java compiler.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both are true, unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  3. Assertion (A): Every executable Java application requires a `main()` method.
    Reason (R): The JVM looks for the `main()` method as the starting point for program execution.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both are true, unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  4. Assertion (A): Semicolons are optional at the end of statements in Java.
    Reason (R): Every complete Java statement must be terminated with a semicolon.
    a) Both are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both are false.
  5. Assertion (A): Comments are executed during runtime to calculate values.
    Reason (R): Comments are ignored by the compiler and are meant only for documentation.
    a) Both are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both are false.
  6. Assertion (A): The assignment operator (`=`) is used to test equality between two variables.
    Reason (R): Equality is tested using the relational operator `==`.
    a) Both A and R are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both are false.
  7. Assertion (A): The `print()` method prints text and keeps the cursor on the same line.
    Reason (R): `println()` automatically inserts a newline character after printing output.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both are true, unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  8. Assertion (A): Keywords can be used as variable names in Java.
    Reason (R): Keywords are reserved words with pre-defined meanings in the Java language.
    a) Both A and R are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both are false.
  9. Assertion (A): The `if-else` statement is used for decision-making in Java.
    Reason (R): It allows alternate blocks of code to execute depending on a boolean condition.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both are true, unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  10. Assertion (A): Division of two integers using `/` yields an integer result, discarding fractional parts.
    Reason (R): Integer division truncates any decimal remainder in Java.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both are true, unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
Section C: True or False5 Marks
  1. Java is an object-oriented programming language. (True / False)
  2. A variable name in Java can start with a numeric digit. (True / False)
  3. The postfix increment operator (`++`) increases the value of the variable after its evaluation. (True / False)
  4. The `else` block is compulsory whenever an `if` statement is used. (True / False)
  5. Single-line comments in Java begin with `//`. (True / False)
Section D: Find the Output (Prefix/Postfix & If-Else Snippets)20 Marks
  1. Snippet 1:
    int a = 5;
    int b = ++a + a++;
    System.out.println("a = " + a + ", b = " + b);
  2. Snippet 2:
    int x = 10;
    int y = x++ + 3;
    System.out.println("x = " + x + ", y = " + y);
  3. Snippet 3:
    int m = 8;
    int n = --m - m--;
    System.out.println("m = " + m + ", n = " + n);
  4. Snippet 4:
    int a = 12;
    if (a % 2 == 0) {
      System.out.println("Even");
    } else {
      System.out.println("Odd");
    }
  5. Snippet 5:
    int p = 5, q = 10;
    if (p > q) {
      System.out.println(p);
    } else {
      System.out.println(q);
    }
  6. Snippet 6:
    int val = 4;
    int res = --val * 2;
    System.out.println("val = " + val + ", res = " + res);
  7. Snippet 7:
    int num = 7;
    if (num > 5) {
      num += 3;
    } else {
      num -= 2;
    }
    System.out.println(num);
  8. Snippet 8:
    int x = 2;
    int y = x++ + ++x + x;
    System.out.println(y);
  9. Snippet 9:
    int score = 75;
    if (score >= 90) {
      System.out.println("Grade A");
    } else if (score >= 60) {
      System.out.println("Grade B");
    } else {
      System.out.println("Grade C");
    }
  10. Snippet 10:
    int c = 3;
    int d = c++ * ++c;
    System.out.println("c = " + c + ", d = " + d);
Section E: Java Basic Programs (5 Programs)25 Marks
  1. Program 1: Even or Odd Number Checker
    Write a Java program to check whether a given integer (`int n = 14`) is even or odd using an `if-else` statement.

  2. Program 2: Greatest of Three Numbers
    Write a Java program to find and print the greatest among three given numbers (`a = 15`, `b = 25`, `c = 20`) using nested `if-else`.

  3. Program 3: Simple Interest Calculator
    Write a Java program to calculate Simple Interest given Principal (`P = 5000`), Rate (`R = 7.5`), and Time (`T = 3` years) using the formula $SI = (P \times R \times T) / 100$.

  4. Program 4: Print Numbers from 1 to 10
    Write a Java program using a `for` loop to print numbers from 1 to 10, each separated by a space or on a new line.

  5. Program 5: Vowel or Consonant Checker
    Write a Java program using a `switch` statement to check whether a given character (`char ch = 'e'`) is a vowel or a consonant.

⭐ Best of Luck for Your Examination! Code with Precision and Confidence! 🚀
CREATED BY BIJAN KRISHNA PAUL

COMPUTISM LAB CLASS 5 HALF YEARLY EXAMINATION

💻
🤖
🖥️
🗼
✨ Class 5 Computer Science Examination ✨

KCOMPUTISM LAB CLASS 5 HALF YEARLY EXAMINATION

Half-Yearly Assessment

🧠
🤖
Class: 5
Max Marks: 70
Time Allowed: 2 Hours
Section A: Fill in the Blanks10 Marks
  1. The term 'software' was first used by John W. in 1957.
  2. An operating system acts like a school managing a computer's tasks.
  3. The default tab stop in Word is set at every inch.
  4. First generation computers were based on tubes.
  5. Charles is considered as the father of computers.
  6. The option places the selected text slightly above the baseline.
  7. Application software cannot run without software.
  8. ENIAC consisted of 18,000 vacuum tubes and weighed tons.
  9. The shortcut key to use the Find feature in MS Word is Ctrl + .
  10. Fourth generation computers are based on microprocessors called circuits.
Section B: Multiple Choice Questions (MCQs)20 Marks
  1. Which of the following was the first mechanical calculating device?
    • a. Pascaline
    • b. Abacus
    • c. Mark I
    • d. ENIAC
  2. Who invented the first mechanical calculator called Pascaline?
    • a. John Napier
    • b. Blaise Pascal
    • c. Howard Aiken
    • d. Herman Hollerith
  3. Which of these was the first general-purpose electronic digital computer?
    • a. UNIVAC I
    • b. ENIAC
    • c. EDVAC
    • d. Mark I
  4. Transistors were used in which generation of computers?
    • a. First Generation
    • b. Second Generation
    • c. Third Generation
    • d. Fourth Generation
  5. Integrated Circuits (ICs) were the main technology of which generation?
    • a. First
    • b. Second
    • c. Third
    • d. Fourth
  6. Which high-level language came into existence during the second generation?
    • a. FORTRAN
    • b. PASCAL
    • c. Scratch
    • d. C++
  7. Software is broadly classified into how many types?
    • a. One
    • b. Two
    • c. Three
    • d. Four
  8. Which of the following is an example of an operating system?
    • a. MS Word
    • b. Windows
    • c. Paint
    • d. WinZip
  9. What is the first spreadsheet program ever created?
    • a. MS Excel
    • b. VisiCalc
    • c. Lotus 1-2-3
    • d. Google Sheets
  10. Which utility software reduces the size of files to save disk space?
    • a. Backup
    • b. Compression
    • c. Defragmentation
    • d. Disk Cleanup
  11. The process of rearranging fragmented data into contiguous blocks is called:
    • a. Compression
    • b. Defragmentation
    • c. Formatting
    • d. Backing up
  12. Which tool helps copy formatting from one text and apply it to another?
    • a. Format Painter
    • b. Find and Replace
    • c. Subscript
    • d. Superscript
  13. Where is the header placed in a Word document?
    • a. Bottom
    • b. Top
    • c. Middle
    • d. Center
  14. Which tab contains the Columns and Page Setup options in Word?
    • a. Home tab
    • b. Insert tab
    • c. Layout tab
    • d. View tab
  15. What is the default page orientation in MS Word?
    • a. Landscape
    • b. Portrait
    • c. Vertical
    • d. Square
  16. Which feature is used to insert a picture from your computer PC?
    • a. Online Pictures
    • b. This Device
    • c. Clip Art
    • d. Shape
  17. Language processors include assembler, compiler, and:
    • a. Interpreter
    • b. Defragmenter
    • c. Generator
    • d. Formatter
  18. Which technology connects everyday objects like light bulbs and thermostats to the internet?
    • a. Artificial Intelligence
    • b. Internet of Things (IoT)
    • c. Virtual Reality
    • d. Robotics
  19. What is the shortcut key for the Replace feature in Word?
    • a. Ctrl + F
    • b. Ctrl + H
    • c. Ctrl + R
    • d. Ctrl + P
  20. Which device was invented by Herman Hollerith for tabulating data?
    • a. Mark I
    • b. Tabulating Machine
    • c. Analytical Engine
    • d. UNIVAC I
Section C: Assertion-Based MCQs10 Marks
  1. Assertion (A): An operating system acts as a bridge between the user and computer hardware.
    Reason (R): Without an operating system, a computer cannot manage its internal activities or run applications.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but R is not the correct explanation of A.
    c) A is true, but R is false.
    d) A is false, but R is true.
  2. Assertion (A): First generation computers produced massive heat and burnt out frequently.
    Reason (R): They were built using thousands of vacuum tubes.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but R is not the correct explanation of A.
    c) A is true, but R is false.
    d) A is false, but R is true.
  3. Assertion (A): Application software can run independently without any system software.
    Reason (R): System software controls the overall operations and manages system resources for application programs.
    a) Both A and R are true.
    b) A is true, but R is false.
    c) A is false, but R is true.
    d) Both A and R are false.
  4. Assertion (A): Defragmentation speeds up data retrieval on a hard disk.
    Reason (R): It consolidates scattered file pieces into a single contiguous area.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but R is not the correct explanation of A.
    c) A is true, but R is false.
    d) A is false, but R is true.
  5. Assertion (A): Computers possess real human thinking and emotions.
    Reason (R): Artificial intelligence enables computers to solve complex problems and learn from patterns.
    a) Both A and R are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both A and R are false.
  6. Assertion (A): The Format Painter tool copies text formatting from one place and applies it to another.
    Reason (R): It copies font styles, sizes, colors, and border settings effortlessly.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  7. Assertion (A): The default page orientation in MS Word is Landscape.
    Reason (R): Portrait orientation prints text vertically along the longer side of the page.
    a) Both A and R are true.
    b) A is true, R is false.
    c) A is false, but R is true.
    d) Both A and R are false.
  8. Assertion (A): Virtual Reality (VR) immerses a user in a completely different digital environment using a special headset.
    Reason (R): Augmented Reality (AR) adds digital elements directly into the real physical world.
    a) Both A and R are true, and R explains AR while A explains VR.
    b) Both are false.
    c) A is true, R is false.
    d) A is false, R is true.
  9. Assertion (A): A backup utility helps protect against data loss if a hard disk fails.
    Reason (R): Backups create duplicate copies of important data on secondary storage devices.
    a) Both A and R are true, and R is the correct explanation of A.
    b) Both A and R are true, but unrelated.
    c) A is true, R is false.
    d) A is false, R is true.
  10. Assertion (A): Third generation computers replaced transistors with Integrated Circuits (ICs).
    Reason (R): ICs made computers larger, slower, and more expensive than second-generation machines.
    a) Both A and R are true.
    b) A is true, R is false.
    c) A is false, R is true.
    d) Both are false.
Section D: True or False10 Marks
  1. Abacus was the first mechanical device invented to perform calculations. (True / False)
  2. Computers do not need electrical power or internet connection to operate. (True / False)
  3. System software runs in the background and users cannot interact directly with it. (True / False)
  4. Disk Cleanup helps free up hard drive space by removing unwanted temporary files. (True / False)
  5. You cannot insert a line break in the middle of a sentence in Word. (True / False)
  6. The Superscript option places selected text slightly below the baseline. (True / False)
  7. Charles Babbage is known as the father of modern computers. (True / False)
  8. Fourth generation computers use microprocessors based on VLSI circuits. (True / False)
  9. The columns option allows you to format document text in newspaper style. (True / False)
  10. Computers possess real instincts and can experience feelings like happiness or sadness. (True / False)
Section E: Short Answer Questions (2 Marks Each)20 Marks
  1. What is software? Name its two main types.
  2. State any two main functions of an operating system.
  3. Define backup. Why is regular data backup essential?
  4. What is the purpose of the Disk Cleanup utility in a computer system?
  5. Differentiate between Superscript and Subscript options in MS Word.
  6. What is the use of headers and footers in a document?
  7. Differentiate between system software and application software.
  8. What are language processors? Name the three types of language processors.
  9. Write any two limitations of a computer.
  10. What is Artificial Intelligence (AI)? Give two examples of AI applications.
⭐ Best of Luck for Your Examination! Keep Learning! 🚀
CREATED BY BIJAN KRISHNA PAUL