nerdexam
GIAC

GPYC · Question #2

What are the contents of the variable x when the following is executed in a Python interactive session? x = "So you want a GIAC Certification?" x.split()[0][1] print(x)

The correct answer is C. 'So you want a GIAC Certification?'. You've hit your limit · resets 1pm (America/New_York)

Python Fundamentals & Command Line Tools

Question

What are the contents of the variable x when the following is executed in a Python interactive session? x = "So you want a GIAC Certification?" x.split()[0][1] print(x)

Options

  • A'So'
  • B'So you'
  • C'So you want a GIAC Certification?'
  • D'So', 'you'

How the community answered

(21 responses)
  • B
    5% (1)
  • C
    95% (20)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#string immutability#string methods#split#print

Community Discussion

No community discussion yet for this question.

Full GPYC Practice