Question
What does a lexer (lexical analyzer) do in the
compilation process?Solution
A lexer (lexical analyzer) is responsible for converting the source code into a stream of tokens. It identifies keywords, operators, identifiers, and other language constructs, producing a structured representation that's easier for the subsequent compilation phases to process.
The truth table for a boolean function with two variables, A and B, has four rows. How many different boolean functions can be defined with two variables?
In the context of a database, what is a transaction?
Python is an example of which type of programming language?
Which command is used to search for a specific pattern in a file in a Unix/Linux system?
What data structure is commonly used to implement a graph's adjacency list?
Which layer of the OSI model deals with electrical, mechanical, and physical aspects of data transmission?
Attributes are made of more than one simple attribute.
Which of the following is NOT an example of a common cybersecurity threat?
What application layer protocol is used for the retrieval of email from a mail server?
What is the purpose of a firewall in cybersecurity?