
Keyword Recognition and Symbol Table Quiz

Quiz
•
Computers
•
1st Grade - University
•
Hard
M. R.
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of a symbol table in a compiler?
To generate intermediate code
To store the source code
To perform keyword recognition
To associate identifiers with their attributes
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a method for efficient keyword recognition?
Storing keywords in length order
Using a perfect hashing function
Using a linear search on all keywords
Using a binary search on an alphabetically ordered table
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a characteristic of a perfect hashing function?
It results in a unique value for each keyword
It is complex and time-consuming to compute
It requires a large amount of memory
It allows for multiple entries for the same keyword
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is simplest to implement for a symbol table?
Hash table
Binary search tree
Linear list
AVL tree
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a new name is added to a linear list symbol table?
It is added at the beginning of the list
It is added at the end of the list
It replaces the first entry
It is added randomly
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a hash table, what does the hash function do?
It checks for duplicate entries
It sorts the entries alphabetically
It maps strings to integer values
It deletes entries from the table
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main drawback of using a linear list for a symbol table?
It cannot handle dynamic entries
It requires a lot of memory
It has poor performance with large n and e
It is difficult to implement
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Logic Gates & Truth Tables

Quiz
•
9th - 12th Grade
20 questions
Logic Gates and Truth Tables (GCSE)_LC

Quiz
•
10th Grade
16 questions
Hashing and Digital Signatures - CompTIA Security+ SY0-701 - 1.4

Quiz
•
9th - 12th Grade
20 questions
Data Structures and Algorithm

Quiz
•
University
20 questions
WEB DESIGN QUIZ P2

Quiz
•
12th Grade
20 questions
Data Structures Quiz

Quiz
•
University
16 questions
Revision for Chapter 5

Quiz
•
University
11 questions
Understanding Hash Tables (video)

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
10 questions
Keyboard Typing

Quiz
•
4th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade