Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Search results for lexical-analysis
44
votes
3
answers
1
GATE CSE 2011 | Question: 1
In a compiler, keywords of a language are recognized during parsing of the program the code generation the lexical analysis of the program dataflow analysis
In a compiler, keywords of a language are recognized duringparsing of the programthe code generationthe lexical analysis of the programdataflow analysis
go_editor
17.3k
views
go_editor
asked
Sep 29, 2014
Compiler Design
gatecse-2011
compiler-design
lexical-analysis
easy
+
–
51
votes
7
answers
2
GATE CSE 2018 | Question: 37
A lexical analyzer uses the following patterns to recognize three tokens $T_1, T_2$, and $T_3$ over the alphabet $\{a, b, c\}$. $T_1: a?(b \mid c)^\ast a$ $T_2: b?(a \mid c)^\ast b$ ... the string $bbaacabc$ is processed by the analyzer, which one of the following is the sequence of tokens it outputs? $T_1T_2T_3$ $T_1T_1T_3$ $T_2T_1T_3$ $T_3T_3$
A lexical analyzer uses the following patterns to recognize three tokens $T_1, T_2$, and $T_3$ over the alphabet $\{a, b, c\}$.$T_1: a?(b \mid c)^\ast a$$T_2: b?(a \mid c...
gatecse
21.3k
views
gatecse
asked
Feb 14, 2018
Compiler Design
gatecse-2018
compiler-design
lexical-analysis
normal
2-marks
+
–
28
votes
5
answers
3
GATE CSE 2010 | Question: 13
Which data structure in a compiler is used for managing information about variables and their attributes? Abstract syntax tree Symbol table Semantic stack Parse table
Which data structure in a compiler is used for managing information about variables and their attributes?Abstract syntax treeSymbol tableSemantic stackParse table
go_editor
14.4k
views
go_editor
asked
Sep 29, 2014
Compiler Design
gatecse-2010
compiler-design
lexical-analysis
easy
+
–
3
votes
1
answer
4
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 26
A lexical analyzer uses the following patterns to recognize four tokens $\textsf{T1, T2, T3},$ and $\textsf{T4}$ over the alphabet $ \{a,b,c\}.$ Rule1: aa*b*c* { print ( T1 ); } Rule2: c { print ( T2 ); ... never be used? Note that the analyzer outputs the token that matches the longest possible prefix. Rule$1$ Rule$2$ Rule$3$ Rule$4$
A lexical analyzer uses the following patterns to recognize four tokens $\textsf{T1, T2, T3},$ and $\textsf{T4}$ over the alphabet $ \{a,b,c\}.$Rule1: aa*b*c* { print...
GO Classes
627
views
GO Classes
asked
Jan 13
Compiler Design
goclasses2024-mockgate-11
goclasses
compiler-design
lexical-analysis
compiler-tokenization
multiple-selects
1-mark
+
–
0
votes
1
answer
5
Compiler-design
Q1. For the following grammar N -> AB | BA A -> a | CAC B -> b | CBC C -> a | b Find the FIRST and FOLLOW
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
Ebrahim
174
views
Ebrahim
asked
Jan 12
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
ullman
parsing
+
–
0
votes
1
answer
6
Compiler Design
Like Example Above please answer this question Q5. Implement a+b*(c+d)-e/f into: a). Quadruples. b). Triples. c). Indirect triples.
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.
Ebrahim
280
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
parsing
+
–
0
votes
1
answer
7
compiler Design
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c + d t3 : = e - t2 t4 : = t1 - t3
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c ...
Ebrahim
288
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
parsing
+
–
1
votes
1
answer
8
Errors
How to differentiate between Lexical, semantic and syntax error from a given code snippet. Why is this lexical error and not syntax error? $ y = 0x5i; $
How to differentiate between Lexical, semantic and syntax error from a given code snippet.Why is this lexical error and not syntax error? $ y = 0x5i; $
Mrityudoot
241
views
Mrityudoot
asked
Nov 12, 2023
Compiler Design
compiler-design
lexical-analysis
made-easy-test-series
+
–
1
votes
2
answers
9
Unacademy Compiler Design Workbook
Conisder the following program: Main() { int x = 10; If (x<20 ; Else y = 20; } When lexical analyzer scanning the above program, how many lexical errors can be produced?
Conisder the following program:Main(){ int x = 10;If (x<20 ;Elsey = 20;}When lexical analyzer scanning the above program, how many lexical errors can be produced?
lovish_bhatia
349
views
lovish_bhatia
asked
Sep 12, 2023
Compiler Design
compiler-design
lexical-analysis
syntax-directed-translation
+
–
1
votes
2
answers
10
Unacademy Compiler Design Workbook
Consider the following statements: (A) LL (k) grammars have one to one correspondence with DCFLs. (B) LR (k) grammars have one to one correspondence with CFLs. A is true but B is false A is false but B is true Both are False Both are True
Consider the following statements:(A) LL (k) grammars have one to one correspondence with DCFLs.(B) LR (k) grammars have one to one correspondence with CFLs. A is true bu...
lovish_bhatia
367
views
lovish_bhatia
asked
Sep 12, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
context-free-grammar
context-free-language
+
–
0
votes
2
answers
11
Compiler Design Lexical Analyser
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??
bhattacharya_arka
311
views
bhattacharya_arka
asked
Apr 18, 2023
Compiler Design
lexical-analysis
+
–
6
votes
1
answer
12
Tokens vs Lexeme
What is the difference between lexeme and tokens?
What is the difference between lexeme and tokens?
Tech Geek
19.8k
views
Tech Geek
asked
Apr 3, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
votes
2
answers
13
Compiler Design | Error in which stage detection
What is the earliest stage compiler error for the following C code snippet: int x = @33; Lexical Error Syntax Error Semantic Error None
What is the earliest stage compiler error for the following C code snippet:int x = @33;Lexical ErrorSyntax ErrorSemantic ErrorNone
Souvik33
587
views
Souvik33
asked
Jan 12, 2023
Compiler Design
compiler-design
lexical-analysis
error-detection
+
–
1
votes
3
answers
14
TANCET 2016 Lexical Analysis
Consider the following statements $S_{1}:$ The set of string described by a rule is called pattern associated with the token. $S_{2}:$ A lexeme is a sequence of character in the source program that is matched by Pattern for a token. Which of the following statement is/are true? ... $S_{2}$ is false $S_{2}$ is true $S_{1}$ is false Both $S_{1}$ and $S_{2}$ are false
Consider the following statements$S_{1}:$ The set of string described by a rule is called pattern associated with the token.$S_{2}:$ A lexeme is a sequence of character i...
Balaji Jegan
4.2k
views
Balaji Jegan
asked
Oct 23, 2018
Compiler Design
tancet
compiler-design
lexical-analysis
compiler-tokenization
+
–
6
votes
7
answers
15
Lexical vs Syntax Error
Na462
3.5k
views
Na462
asked
Oct 5, 2018
Compiler Design
compiler-design
lexical-analysis
ace-test-series
+
–
2
votes
2
answers
16
NIELIT Scientific Assistant A 2020 November: 100
The number of tokens in the following C/C++ statement is : printf("i=%d, &i=%xx", i&i); $9$ $6$ $10$ $12$
The number of tokens in the following C/C++ statement is :printf("i=%d, &i=%xx", i&i);$9$$6$$10$$12$
gatecse
601
views
gatecse
asked
Dec 9, 2020
Compiler Design
nielit-sta-2020
compiler-design
lexical-analysis
compiler-tokenization
+
–
15
votes
2
answers
17
GATE CSE 1987 | Question: 1-xvii
Using longer identifiers in a program will necessarily lead to: Somewhat slower compilation A program that is easier to understand An incorrect program None of the above
Using longer identifiers in a program will necessarily lead to:Somewhat slower compilationA program that is easier to understandAn incorrect programNone of the above
makhdoom ghaya
5.0k
views
makhdoom ghaya
asked
Nov 8, 2016
Compiler Design
gate1987
compiler-design
lexical-analysis
+
–
0
votes
0
answers
18
Best Open Video Playlist for Lexical Analysis Topic | Compiler Design
Please list out the best free available video playlist for Lexical Analysis Topic from Compiler Design as an answer here (only one playlist per answer). We'll then select the best playlist and add to GO classroom video ... ones are more likely to be selected as best. For the full list of selected videos please see here
Please list out the best free available video playlist for Lexical Analysis Topic from Compiler Design as an answer here (only one playlist per answer). We'll then select...
makhdoom ghaya
246
views
makhdoom ghaya
asked
Aug 18, 2022
Others
go-classroom
missing-videos
free-videos
video-links
lexical-analysis
+
–
0
votes
2
answers
19
lexical and syntax error
what is the difference between lexical error and syntax error?
what is the difference between lexical error and syntax error?
Mohit Aggarwal
1.4k
views
Mohit Aggarwal
asked
Dec 1, 2021
Compiler Design
compiler-design
lexical-analysis
+
–
6
votes
7
answers
20
Type of error
Find the type of error produced by the following C code. main() { in/*comment t x; floa/*comment*/t gate; } Lexical error syntax error both a) and b) None of these
Find the type of error produced by the following C code.main() { in/*comment t x; floa/*comment*/t gate; }Lexical errorsyntax errorboth a) and b) None of these
Ashwani Kumar 2
5.3k
views
Ashwani Kumar 2
asked
Feb 7, 2017
Compiler Design
lexical-analysis
syntax-analysis
compiler-tokenization
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register