🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: TOC Basics: all 10 questions

Quiz: TOC Basics · Question 8 of 10

If L₁ = {a, b} and L₂ = {c, d}, how many strings are in the concatenation L₁L₂?

If L₁ = {a, b} and L₂ = {c, d}, how many strings are in the concatenation L₁L₂?

  1. A.2
  2. B.4
  3. C.6
  4. D.8
Answer & explanation

Correct answer: 4

L₁L₂ = {ac, ad, bc, bd}: every string of L₁ followed by every string of L₂.

Can you get the rest right without peeking?

Take the timed Quiz: TOC Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →