Question 1 of 16
JavaScript Source Text, Lexical Grammar & Parsing — Quiz
Check your understanding of ECMAScript source text, lexical input, parsing goals, directive prologues, and automatic semicolon insertion.
Knowledge check
JavaScript Source Text, Lexical Grammar & Parsing — Quiz
Check your understanding of ECMAScript source text, lexical input, parsing goals, directive prologues, and automatic semicolon insertion.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 16
Which grammar recognizes input elements?
Question 3 of 16
Which is not an ECMAScript token?
Question 4 of 16
What generally happens to comments before syntactic parsing?
Question 5 of 16
Why are Unicode identifier rules part of lexical grammar?
Question 6 of 16
Why does ECMAScript have multiple lexical goals?
Question 7 of 16
What are ECMAScript top-level parse goals?
Question 8 of 16
What is conceptually produced by successful parsing?
Question 9 of 16
Does ASI insert a semicolon after every newline?
Question 10 of 16
What can a [no LineTerminator here] restriction do?
Question 11 of 16
What is a directive prologue?
Question 12 of 16
Where is "use strict" recognized?
Question 13 of 16
Which line is especially vulnerable to ASI ambiguity after an expression?
Question 14 of 16
What is a syntax error?
Question 15 of 16
Which lesson owns module linking/evaluation details?
Question 16 of 16
Which statement best describes lexical and syntactic grammar?
Quiz results
Review
-
What is the starting material for ECMAScript parsing?Hint used
-
Which grammar recognizes input elements?Hint used
-
Which is not an ECMAScript token?Hint used
-
What generally happens to comments before syntactic parsing?Hint used
-
Why are Unicode identifier rules part of lexical grammar?Hint used
-
Why does ECMAScript have multiple lexical goals?Hint used
-
What are ECMAScript top-level parse goals?Hint used
-
What is conceptually produced by successful parsing?Hint used
-
Does ASI insert a semicolon after every newline?Hint used
-
What can a [no LineTerminator here] restriction do?Hint used
-
What is a directive prologue?Hint used
-
Where is "use strict" recognized?Hint used
-
Which line is especially vulnerable to ASI ambiguity after an expression?Hint used
-
What is a syntax error?Hint used
-
Which lesson owns module linking/evaluation details?Hint used
-
Which statement best describes lexical and syntactic grammar?Hint used