Suppose 15 programmers take 15 minutes to write 15 lines of code in total. How…

2026

Suppose 15 programmers take 15 minutes to write 15 lines of code in total. How many lines of code can be written by 60 programmers in 60 minutes?

  1. A.

    15

  2. B.

    240

  3. C.

    60

  4. D.

    120

Attempted by 873 students.

Show answer & explanation

Correct answer: B

The image shows the brief result. Below is a clear step-by-step explanation.

  • Step 1: Let r be the number of lines one programmer writes in one minute.

  • Step 2: Use the given information: 15 programmers working 15 minutes produce 15 lines. So 15 = r × 15 × 15.

  • Step 3: Solve for r: r = 15 ÷ (15 × 15) = 1/15 line per programmer per minute.

  • Step 4: For 60 programmers working 60 minutes, total lines = r × 60 × 60 = (1/15) × 60 × 60 = 240.

Answer: 240 lines

Explore the full course: Tcs Preparation