Bird
Raised Fist0

If a search engine uses a simple algorithm that returns results containing all query words, what will be the output for query "apple banana" on pages: Page1: "apple orange", Page2: "banana apple", Page3: "banana grape"?

medium📝 Analysis Q5 of Q15
Intro to Computing - How the Internet Works
If a search engine uses a simple algorithm that returns results containing all query words, what will be the output for query "apple banana" on pages: Page1: "apple orange", Page2: "banana apple", Page3: "banana grape"?
APage3 only
BPage2 only
CPage1, Page2, and Page3
DPage1 and Page2
Step-by-Step Solution
Solution:
  1. Step 1: Identify pages containing both 'apple' and 'banana'

    Page2 contains both words; Page1 only has 'apple'; Page3 only has 'banana'.
  2. Step 2: Select pages matching all query words

    Only Page2 matches all query words.
  3. Final Answer:

    Page2 only -> Option B
  4. Quick Check:

    All query words present = Page2 [OK]
Quick Trick: All query words must appear in results [OK]
Common Mistakes:
MISTAKES
  • Including pages missing one word
  • Confusing 'and' with 'or' logic
  • Ignoring query word presence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes