Question: Section A Answer the following questions. Each question carries 1 mark. Explain various programming domains with suitable examples. Good language readability can improve writability. Good

Section A
Answer the following questions. Each question carries 1 mark.
Explain various programming domains with suitable examples.
Good language readability can improve writability.
Good language writability is detrimental to readability.
a). Which one of the above two statements is correct? Which one of the above two statements is wrong?
b). Give your explanation.
Discuss the process of compilation with suitable diagram.
If G is a grammar with productions
SSaS|aSb|bSa|SS|lon
Where S is the start variable. Then which of the following strings nor generated by G?
a). abab
b). aaab
c). abbaa
d). babba
How the concept of scope is implemented in C and Java. Explain with suitable codes. In simple terms, scope of a variable is its lifetime in the program. This means that the scope of a variable is the block of code in the entire program where the variable is declared, used, and can be modified.
Write a program in Java and Python to demonstrate the addition of two matrices.
Section B
Answer the following questions. Each question carries 2 marks.
Consider the following grammar
SbBaA
AbbSaAA
BaaSbBB
For the string w= bbaababa, find-
i). Leftmost derivation
ii). Rightmost derivation
iii). Parse Tree
8. Draw the parse tree and translate the expression 3+2+1**2 using semantic rule.
\table[[Production,Semantic Rules],[EE+T,{E.VAL:=E.VAL+T.VAL}
 Section A Answer the following questions. Each question carries 1 mark.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!