Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent
then call us on 08791490301
DRIVE
SPRING 2017
PROGRAM
BACHELOR OF
COMPUTER APPLICATION
SEMESTER
5
SUBJECT CODE
& NAME
BCA 5041 -
COMPILER DESIGN
1 What do
you mean by Attribute? Classify different types of attributes.
Answer: Attribute: It is the name of the column. An
attribute gives the characteristics of the entity. For example, A customer of
bank may be described by : name, address, customer ID number. It is also called
as data element,
2 Write down
the role of a lexical analyzer
Answer: Lexical analysis is the first phase of a
compiler. It takes the modified source code from language preprocessors that
are written in the form of sentences. The lexical analyzer breaks these
syntaxes into a
3 What do
you mean by context free grammar? Explain with an example.
Answer: A context-free grammar basically consists
of a finite set of grammar rules. In order to define grammar rules, we assume
that we have two kinds of symbols: the terminals, which are the symbols of the
alphabet
4 Explain
the concept of Top down parsing.
Answer: When the parser starts constructing the
parse tree from the start symbol and then tries to transform the start symbol
to the input, it is called top
5 Write
short notes on
a)
Preprocessors
b)
Assemblers
Answer: a) The C Preprocessor is not a part of the
compiler, but is a separate step in the compilation process. In simple terms, a
C Preprocessor is just a text substitution tool and it instructs the compiler
to do required pre-processing before the actual compilation. We'll refer to the
C Preprocessor as CPP.
6 Explain
the different storage allocation strategies.
Answer: Different
ways to allocate objects
Static allocation – allocates storage at
compile time
Stack allocation - manages run time storage as
stack
Heap allocation – allocates and de-allocates
storage area as needed at runtime.
Static
allocation
Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent
then call us on 08791490301
No comments:
Post a Comment