Search Header Logo

Programming Language Concepts Quiz

Authored by Fidaa Abed

Computers

12th Grade

Used 4+ times

Programming Language Concepts Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of grammar can describe both syntax and semantics?

BNF

Context-free grammar

Attribute grammar

Lexical grammar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary focus of Chapter 3?

Introduction to Programming

Describing Syntax and Semantics

Compiler Design

Data Structures and Algorithms

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a component of a BNF rule?

Left-hand side (LHS)

Right-hand side (RHS)

Start symbol

static semantic

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an ambiguous grammar generate?

Multiple parse trees for the same sentence

Only one parse tree for each sentence

No parse trees

Syntax errors

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of attribute grammars in compiler design?

Syntax generation

Static semantics checking

Dynamic semantics description

Lexical analysis

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does EBNF stand for?

Extended Backus-Naur Form

Enhanced Backus-Naur Form

Elementary Backus-Naur Form

Elaborated Backus-Naur Form

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which term refers to the lowest level syntactic unit of a language?

Token

Lexeme

Sentence

Grammar

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?