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

Quiz: DevSecOps Basics · Question 5 of 10

What does this print? (code)

What does this print?

scores = [9.8, 4.2, 7.0, 2.5]
print(sum(1 for s in scores if s >= 7.0))
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Answer & explanation

Correct answer: 2

9.8 and 7.0 are at or above 7.0, so two findings would block a High/Critical gate.

Can you get the rest right without peeking?

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

Start the quiz →