NCERT Class 12 Computer Science Computer Science: Chapter 6 — Searching

NCERT CBSE Class 12 Computer Science Computer Science Chapter 6 English PDF

This chapter introduces the fundamental concept of searching in computer science. It explains that searching is the process of locating a specific element within a collection of data. The chapter details the Linear Search algorithm, also known as sequential or serial search. This method involves comparing the target key with each element in the list one by one until a match is found or the entire list is traversed. It is suitable for small, unordered collections. The chapter also briefly mentions other search techniques like Binary Search and Hashing, highlighting their importance for efficient data retrieval in computer programs. Understanding these searching techniques is crucial for designing effective algorithms.

Quick info

BoardCBSE / NCERT
ClassClass 12
SubjectComputer Science
BookComputer Science
ChapterChapter 6 — Searching
LanguageEnglish
PDF typeNCERT Textbook
SessionCBSE 2026
Reading time2 minutes
Word count336

Learning outcomes

Vocabulary

WordMeaning
SearchingThe process of locating a particular element in a collection of elements.
KeyThe item to be searched for in a list or collection.
Linear SearchA simple search algorithm that checks each element of a list sequentially until a match is found or the list is exhausted.
Sequential SearchAnother name for Linear Search, emphasizing the item-by-item comparison in order.
Serial SearchSynonym for Linear Search, referring to the sequential checking of elements.
Collection of elementsA group or list of data items.
ElementA single item within a collection or list.
AlgorithmA step-by-step procedure or set of rules to be followed in calculations or other problem-solving operations.
IndexA numerical position of an element in a list, usually starting from 0.
TraversedVisited or processed each element in a list or data structure.

The complete chapter text is read in the official NCERT PDF viewer below (streamed from ncert.nic.in). This page provides NCERT Help study material — summary, vocabulary, practice questions, and FAQs — not a full reproduction of the textbook.

Read chapter online

This PDF is loaded from the official NCERT website (ncert.nic.in). Use the page buttons below to read — download is disabled on NCERT Help.

Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.

Loading document …
Page of
Loading page …

Practice questions

  1. What is the primary goal of searching in computer science? Answer: The primary goal of searching is to locate a particular element within a collection of elements and determine if it is present.
  2. Describe the basic principle of Linear Search. Answer: Linear Search compares the target key with each element in the list one by one, starting from the first element, until a match is found or the end of the list is reached.
  3. When is Linear Search considered most useful? Answer: Linear Search is most useful for collections of items that are small in size and are unordered.
  4. What does it mean for a search to be 'unsuccessful' in Linear Search? Answer: A search is unsuccessful when the key element is not found after comparing it with every element in the list.

Practice MCQs

Q1. Which of the following is the simplest search method?

Q2. Linear Search is also known as:

Q3. In Linear Search, if the key is the last element of the list, how many comparisons are made (assuming a list of n elements)?

Q4. Which type of data collection is Linear Search best suited for?

Q5. What does the 'index' variable typically represent in the Linear Search algorithm?

Frequently asked questions

What is the main purpose of searching in computer science?

The main purpose of searching is to find a specific piece of data (an element) within a larger set of data (a collection or list).

What is Linear Search?

Linear Search is a basic algorithm that checks each element in a list sequentially until the desired element (key) is found or the list ends.

What are the other names for Linear Search?

Linear Search is also known as Sequential Search or Serial Search.

When is Linear Search a suitable method?

Linear Search is suitable for small lists or when the data is not sorted, as it doesn't require any pre-ordering of elements.

What happens if the element is not found using Linear Search?

If the element is not found after checking all items in the list, the search is declared unsuccessful.

What is the role of the 'index' in the Linear Search algorithm?

The 'index' keeps track of the current position of the element being examined in the list, starting from the beginning.

Related resources

Important topics

Introduction to Searching Linear Search Algorithm Sequential/Serial Search Algorithm 6.1: Linear Search Steps Worst-case comparisons in Linear Search Applications of Linear Search

Topics covered

Introduction to Searching Importance of Searching in Computer Science Linear Search Algorithm Sequential Search Serial Search Algorithm 6.1: Linear Search Activity 6.1: Linear Search Comparisons Example 6.1: Linear Search Execution Table 6.1: Element Index Mapping Table 6.2: Step-by-step Linear Search Process Search Unsuccessful Condition Search Successful Condition

NCERT Class 12 Computer Science — Computer Science — Chapter 6 — Searching. Verified by NCERT Help Editorial Team. Reviewed on 29 Jul 2026. Last updated 10 Aug 2026.