Exam Results
DEVASC ยท 10 questions ยท 10 min
Score
80.0%
Pass
Correct
8
out of 10
Wrong
2
need review
๐
Excellent work! You passed this practice exam.
Wrong Answers (2)
Q9 ยท Cisco Platforms and Development
Your answer: A
ยท
Correct: B
A developer is writing a Python script to send a message to a Webex space using the Webex REST API. The developer has a valid Bearer token stored in the variable `token`, the Room ID stored in `room_id`, and wants to send the text "Deployment successful" to the space. According to the Webex API documentation, messages are created by sending a POST request to `https://webexapis.com/v1/messages` with a JSON body containing `roomId` and `text` fields, and the token must be passed as a Bearer token in the `Authorization` header. Which of the following Python code snippets correctly constructs and sends this request?
Loading...
Q10 ยท Software Development and Design
Your answer: C
ยท
Correct: B
A developer is working on a Python project that includes the following files: `network_utils.py` (which contains reusable functions for connecting to devices and parsing responses), `models.py` (which defines classes representing network devices and their attributes), and `main.py` (which imports from both files and orchestrates the program flow). A new team member asks why the code is structured this way rather than written as a single large script. Which of the following best explains the primary benefit of this modular organization?
Loading...
Correct Answers (8)
โธ expand