nerdexam
GIAC

GPYC · Question #21

GPYC Question #21: Real Exam Question with Answer & Explanation

The correct answer is C. ac. See the full explanation below for the reasoning.

Question

What is the output the following commands are typed in Python interactive mode?
>>> a = 5
>>> b = 10
>>> d = "a" + "c"
>>> print (d)

Options

  • A15
  • BNameError: name 'c' is not defined
  • Cac
  • DTypeError: cannot concatenate 'str' and 'int' objects

Community Discussion

No community discussion yet for this question.

Full GPYC Practice
What is the output the following commands are typed in Python... | GPYC Q#21 Answer | NerdExam