QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 85

Classify SyntaxError diagnostics when Python cannot parse a piece of code. Which statements are true? Select all that apply.

  1. The affected code is rejected before it executes.Ճիշտ պատասխան
  2. Only malformed arithmetic can cause it.
  3. The indicated location may follow the real mistake.Ճիշտ պատասխան
  4. The marker always identifies the exact character to change.

Բացատրություն

The parser rejects the code before that code can execute, and its displayed location is a diagnostic clue rather than a guarantee of the exact mistaken character. Arithmetic is only one possible context; many malformed language constructs can fail to parse.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 85: Classify SyntaxError diagnostics when Python cannot parse a… · Python Fundamentals · Questena