In PL/I compilation, what is “Syntax analysis” associated with________________?
Show answer Hide answer
Answer: B. recognition of basic syntactic constructs through reductions
Explanation
Syntax analysis parses source code streams to verify adherence to grammatical rules. It recognizes syntactic constructs through structural reductions based on formal grammar. This process builds parse trees that represent the hierarchical structure of expressions. Compilers use formal grammars, often expressed in Backus Naur Form, during compilation. Syntax analysers take token streams from lexical analysis as their primary input. Reduction techniques consolidate smaller tokens into larger grammatical constructs.
Syntax checking prevents compilation when programmers violate language grammar rules. Integrated development environments use syntax analysis for real time error underlining. Compilers must validate syntax before generating intermediate or machine code. Option A refers to matrix optimization techniques rather than parsing source code. Option C describes lexical analysis, which processes basic elements and creates tokens. Option D involves macro processing rather than core syntactic analysis phases.
- Subject
- Computer Science
- Category
- Software Engineering
- Topic
- —
- Difficulty
- medium
Related questions
Q1. If special print forms are needed, how does the programmer specify them________________?
Show answer Hide answer
Answer: B. JCL
Job Control Language provides necessary instructions to the operating system regarding job execution parameters. Programmers use JCL statements to define datasets and special print forms required by batch jobs. Operating...
Q2. In an absolute loading scheme, what loader function is performed?
Show answer Hide answer
Answer: B. Loading
In an absolute loading scheme, the loader performs only the loading function into fixed memory locations. It assumes the program was assembled specifically for one exact memory address without requiring adjustments. Link...
Q3. What system program combines separately compiled modules into an executable form_______________?
Show answer Hide answer
Answer: C. linking loader
A linking loader integrates multiple object files into a single runnable binary program format easily. It resolves external symbols and crossreferences so functions call each other across different source modules. Withou...
Q4. Convert ASCII/BEAR/assembly pseudo-ops into hexadecimal machine code________________?
Show answer Hide answer
Answer: D. 42 65 61 72
The ASCII values for the letters B, E, A, and R correspond to 42, 65, 61, and 72 in hexadecimal. Translating text strings into machine code involves converting each character to its standard ASCII hexadecimal equivalent....
Q5. In PL/I compilation, what is “Lexical analysis” associated with________________?
Show answer Hide answer
Answer: C. recognition of basic elements and creation of uniform symbols
Lexical analysis recognizes basic elements and creates uniform tokens. It scans source code characters to build meaningful symbol tokens. This is the initial phase of any standard compiler pipeline. Compilers transform h...
Q6. Convert 11014B machine code to assembly, assuming no pseudo-ops generated it__________________?
Show answer Hide answer
Answer: D. STOREA h#014B, d
The hexadecimal machine code value 11014B specifically decodes into the STOREA instruction within the instruction set. The byte pattern maps directly to the opcode for storing accumulator contents into a designated memor...