Searching
CBSE · Class 12 · Computer Science
Flashcards for Searching — CBSE Class 12 Computer Science. Quick Q&A cards covering key concepts, definitions, and formulas.
What is searching in computer science?
Answer
Searching means locating a particular element (called 'key') in a collection of elements. The search result determines whether that element is present in the collection or not. If present, it also fin
Define Linear Search and explain its alternative names.
Answer
Linear search is the most fundamental search method where every element of a list is compared with the key one by one. It is also called sequential search or serial search because comparison is done i
What is the time complexity of Linear Search in the best case scenario?
Answer
In the best case, Linear Search requires only 1 comparison. This happens when the key to be searched is the first element in the list. The algorithm finds the element immediately without checking othe
What is the time complexity of Linear Search in the worst case scenario?
Answer
In the worst case, Linear Search requires n comparisons (where n is the number of elements). This happens when: 1) The key is the last element in the list, or 2) The key is not present in the list at
Write the algorithm steps for Linear Search.
Answer
1. SET index = 0 2. WHILE index < n, REPEAT Step 3 3. IF numlist[index] = key THEN PRINT 'Element found at position', index+1 STOP ELSE index = index+1 4. PRINT 'Search unsuccessful'
What is the main prerequisite for Binary Search?
Answer
The main prerequisite for Binary Search is that the list must be sorted (arranged in ascending or descending order). Binary search cannot work on unsorted lists because it relies on the ordering to el
Explain the basic principle of Binary Search.
Answer
Binary Search compares the key with the middle element of a sorted list. Based on the comparison: 1) If middle = key: search successful, 2) If middle > key: search in first half, 3) If middle < key: s
How is the middle position calculated in Binary Search?
Answer
The middle position is calculated using the formula: mid = (first + last) // 2, where first is the starting index, last is the ending index, and // is the floor division operator that gives the intege
+12 more flashcards available
Practice AllGet detailed flashcards for Searching
Super Tutor gives you interactive content for every chapter of CBSE Class 12 Computer Science — summaries, quizzes, flashcards, and more.
Try Super Tutor — It's FreeFrequently Asked Questions
What are the important topics in Searching for CBSE Class 12 Computer Science?
Searching covers several key topics that are frequently asked in CBSE Class 12 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.
How to score full marks in Searching — CBSE Class 12 Computer Science?
Start by understanding all key concepts. Practise previous year questions from this chapter. Revise formulas and definitions regularly. Use flashcards for quick revision before the exam.
How many flashcards are available for Searching?
There are 20 flashcards for Searching covering key definitions, formulas, and concepts. Use them daily for 10–15 minutes for best results.
Sources & Official References
- NCERT Official — ncert.nic.in
- CBSE Academic — cbseacademic.nic.in
- CBSE Official — cbse.gov.in
- National Education Policy 2020 — education.gov.in
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More Resources for Searching
Important Questions
Practice with board exam-style questions
Syllabus
What topics to cover
Revision Notes
Key points for last-minute revision
Study Plan
Step-by-step plan to ace this chapter
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Practice Quiz
Test yourself with a quick quiz
Concept Maps
See how topics connect visually