DEVCOR Exam QuestionsBrowse all questions from this exam

DEVCOR Exam - Question 108


Refer to the exhibit. Which snippet creates a Webex space and adds the users in the variable user_list to that space?

A.

B.

C.

D.

Show Answer
Correct Answer:

The correct code snippet must create a Webex space and then add each user in the user_list to that space. The function add_user_to_space() takes two arguments: user and space. Therefore, the code needs to iterate over each user in the user_list and call add_user_to_space() with each user. The correct snippet is: space = create_space('Chatops Incident Space') for user in user_list: add_user_to_space(user, space)

Discussion

8 comments
Sign in to comment
vishal4567
Aug 24, 2022

B is right answer

lente_kriebels
Aug 22, 2022

Correct answer is B

ferock
Apr 28, 2023

definitely B

__al__
Mar 31, 2023

Just by looking at methods args and their docstrings you can tell it is B

ferock
May 1, 2023

B Basic python

kapppa
Sep 4, 2023

I think B is correct

cocieto
Aug 27, 2024

B, it is B

814d1c6
Feb 7, 2025

Going for B here