Exam 200-901 Question id=6218 Software Development and Design

Refer to the exhibit.

[ { "type": "fruit", "items": [ { "color": "green", "items": [ "kiwi", "grape" ] }, { "color": "red", "items": [ "strawberry", "apple" ] } ] }, { "type": "vegs", "items": [ { "color": "green", "items": [ "lettuce", ] }, { "color": "red", "items": [ "pepper" ] } ] } ]

A REST API returns this JSON output for a GET HTTP request, which has been assigned to a variable called “vegetables”.
Using Python, which output is the result of this command?

print(filter(lambda 1: 1[ ‘type’ ] == ‘fruit’, vegetables) [0][‘items’][0][‘items’][0])

A. {‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}
B. [‘kiwi’, ‘grape’]
C. lettuce
D. kiwi

WARNING

the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...
Subject:

only logged users can write comments