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

Quiz: REST Assured · Question 4 of 10

What does body("title", hasItems("Java Full Stack", "DSA in Python")) check on a list response?

What does body("title", hasItems("Java Full Stack", "DSA in Python")) check on a list response?

  1. A.That the list has exactly two items
  2. B.That the titles of the courses include both values
  3. C.That every course has both titles
  4. D.That the first title equals both values
Answer & explanation

Correct answer: That the titles of the courses include both values

On an array, "title" collects every element's title.

Can you get the rest right without peeking?

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

Start the quiz →