Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Technical Aptitude



Friday, January 24, 2020

Two finite state machines are said to be equivalent only if

Two finite state machines are said to be equivalent only if they
Ahave the same number of states
Bhave the same number of edges
Chave the same number of states and also the same number of edges
Drecognise the same set of tokens.
View Answer

most closely describes the regular expression 01 * 0

Which statement most closely describes the regular expression 01 * 0 ?
AIt represents a finite set of finite strings
BIt represents an infinite set of finite strings
CIt represents a finite set of infinite strings
DIt represents an infinite set of infinite strings.
View Answer

All compilers are designed to be

All compilers are designed to be
Arecursive
Bserially usable
Cself correcting
Dre-entrant.
View Answer

Generation of intermediate code based on an abstract machine

Generation of intermediate code based on an abstract machine model is useful in compilers because
Ait makes the implementation of lexical analysis and syntax analysis easier
Bsyntax directed translations can be written for intermediate code generation
Cit enhances the portability of the front end of the compiler
Dit is not possible to directly generate code for real machines.
View Answer

Recursive descent parsing is an example of

Recursive descent parsing is an example of
Atop down parsing
Bbottom up parsing
Cpredictive parsing
Dheuristic parsing.
View Answer

Categories