CS Atlas GATE 2027
TOC course
0 / 91 complete

TOC/Phase 0 · Foundations

Checkpoint CP0 · Item 13 of 91

Foundations

Read at your own pace. Try the questions before opening the answers.

On this page

Introduction

15 questions covering all of Phase 0. Attempt everything before submitting. Each question lists the lesson to re-read if you miss it.

Practice questions

  1. MCQ · 1 mark

    Which is TRUE?

    1. {∅} = ∅
    2. ∅ ∈ ∅
    3. ∅ ⊆ {∅}
    4. |P(∅)| = 0
  2. NAT · 1 mark

    |P(P({a}))| = ?

    Write your answer before opening the key.

  3. NAT · 2 marks

    Number of functions from a 3-element set to a 3-element set that are NOT one-to-one?

    Write your answer before opening the key.

  4. MCQ · 1 mark

    The relation “w and v have the same length” on Σ* is:

    1. not reflexive
    2. an equivalence relation with infinitely many classes
    3. an equivalence relation with finitely many classes
    4. not transitive
  5. MCQ · 1 mark

    The contrapositive of “if L is finite then L has a property R” is:

    1. If L has R then L is finite
    2. If L lacks R then L is infinite
    3. If L is infinite then L lacks R
    4. L is finite and lacks R
  6. MSQ · 2 marks

    Which are valid conclusions from “P ⇒ Q” and “¬Q”?

    1. ¬P
    2. P
    3. Q ⇒ P
    4. Nothing about P
  7. NAT · 1 mark

    A machine has 9 modes. What is the minimum input length that guarantees it visits some mode twice?

    Write your answer before opening the key.

  8. NAT · 2 marks

    Minimum number of binary strings of length 3 you must pick (repeats allowed) to guarantee picking some string at least 3 times?

    Write your answer before opening the key.

  9. MCQ · 1 mark

    In a directed graph, infinitely many distinct paths from u to v exist iff:

    1. v has a self-loop
    2. u has out-degree > 1
    3. some cycle lies on a path from u to v
    4. the graph has a cycle anywhere
  10. NAT · 1 mark

    Number of distinct substrings (including ε) of abba?

    Write your answer before opening the key.

  11. MCQ · 1 mark

    Which has exactly one element?

    1. ∅
    2. {ε}
    3. Σ⁺ over {a}
    4. Σ¹ over {a,b}
  12. NAT · 2 marks

    Over {a,b}, how many strings of length 7 contain at least one a AND at least one b?

    Write your answer before opening the key.

  13. MSQ · 2 marks

    Which identities hold for every language L?

    1. (L*)* = L*
    2. L∅ = ∅
    3. ∅* = ∅
    4. L*L* = L*
  14. NAT · 2 marks

    Over {0,1}, number of strings of length 6 that start with 00 or end with 11?

    Write your answer before opening the key.

  15. MCQ · 1 mark

    Which language corresponds to “binary number divisible by 4” (no leading-zero restrictions, length ≥ 2)?

    1. strings ending in 00
    2. strings ending in 0
    3. strings starting with 00
    4. strings with four 1s

Answer key

Reveal answers when you’re ready
  1. C — ∅ is a subset of every set.
    • A: One has an element, one doesn’t.
    • B: ∅ has no elements.
    • D: P(∅) = {∅} has 1 element.

    Review lesson 0.2.1

  2. 4 — |{a}| = 1 → |P| = 2 → |P(P)| = 4.

    Review lesson 0.2.1

  3. 21 — 3³ − 3! = 27 − 6 = 21.

    Review lesson 0.2.2

  4. B — One class per length 0,1,2,… — infinitely many.
    • A: Every string has its own length.
    • C: Lengths are unbounded.
    • D: Equal lengths chain.

    Review lesson 0.2.2

  5. B — ¬R ⇒ ¬finite.
    • A: Converse.
    • C: Inverse.
    • D: Negation of the statement.

    Review lesson 0.2.3

  6. A — Modus tollens: ¬Q ⇒ ¬P.
    • B: Contradicts the contrapositive.
    • C: Converse, not implied.
    • D: ¬P does follow.

    Review lesson 0.2.3

  7. 9 — 9 symbols → 10 moments > 9 modes.

    Review lesson 0.2.4

  8. 17 — 8 boxes; (3−1)·8 + 1 = 17.

    Review lesson 0.2.4

  9. C — You need to be able to loop on the way.
    • A: Only if v is reachable — but then it is a special case of C.
    • B: Branching alone gives finitely many.
    • D: A cycle elsewhere doesn’t help.

    Review lesson 0.2.5

  10. 9 — ε; a,b; ab,bb,ba; abb,bba; abba → 1+2+3+2+1 = 9.

    Review lesson 0.3.1

  11. B — Only ε.
    • A: 0 elements.
    • C: Infinite.
    • D: 2 elements.

    Review lesson 0.3.2

  12. 126 — 2⁷ − 2 (remove aaaaaaa and bbbbbbb) = 126.

    Review lesson 0.3.3

  13. ABD — Standard identities.
    • C: ∅* = {ε}.

    Review lesson 0.3.3

  14. 28 — 16 + 16 − 4 = 28.

    Review lesson 0.3.3

  15. A — Divisible by 4 ⇔ last two bits are 00.
    • B: That is divisible by 2.
    • C: Prefix doesn’t matter.
    • D: Unrelated.

    Review lesson 0.3.4

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.