nerdexam
Cisco

350-401 · Question #481

What is the output of this code?

The correct answer is D. CISCO. The code snippet's output 'CISCO' suggests that a string containing 'cisco' or 'Cisco' was processed to convert all its characters to uppercase before being printed.

Submitted by naveen.iyer· Mar 6, 2026Automation

Question

What is the output of this code?

Exhibits

350-401 question #481 exhibit 1
350-401 question #481 exhibit 2

Options

  • Ausername Cisco
  • Bget_credentials
  • Cusername
  • DCISCO

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    14% (5)
  • D
    78% (29)

Why each option

The code snippet's output 'CISCO' suggests that a string containing 'cisco' or 'Cisco' was processed to convert all its characters to uppercase before being printed.

Ausername Cisco

This output would occur if the literal string 'username Cisco' was printed directly.

Bget_credentials

This output would occur if the literal string 'get_credentials' was printed, or if a function with that name was called and returned this specific string.

Cusername

This output would occur if the literal string 'username' was printed, or if a variable named 'username' held this specific string value.

DCISCOCorrect

(Assuming the complete code snippet was provided) The output 'CISCO' implies that a string variable, likely holding 'cisco' or 'Cisco', was subjected to a string method or function (such as `.upper()` in Python) that transforms all alphabetic characters within the string to their uppercase equivalents, and then this modified string was printed.

Concept tested: String manipulation (uppercase)

Topics

#Python#string methods#code output#data types

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice