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

Quiz: Agentic Coding Tools · Question 9 of 10

What does this print? (code)

What does this print?

RISKY = ("package.json", ".env", "deploy/")
changed = ["src/app/page.tsx", "package.json", "deploy/deploy.sh", "README.md"]
print(sum(any(r in f for r in RISKY) for f in changed))
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Answer & explanation

Correct answer: 2

package.json and deploy/deploy.sh match the risky patterns.

Can you get the rest right without peeking?

Take the timed Quiz: Agentic Coding Tools quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →