nerdexam
GIAC

GPYC · Question #45

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

Sign in or unlock GPYC to reveal the answer and full explanation for question #45. The question stem and answer options stay visible for context.

Question

What is the cause of the error shown below?
x=re.match("th", "this is the test") Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 're' is not defined</module></stdin>

Options

  • AA syntax error
  • BThe re module hasn't been imported
  • CA bad file name
  • DThe stdin module hasn't been imported

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GPYC Practice