Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions