Question: According to the production rules for Mini - Triangle shown at the end of this paper, which of the following are Mini - Triangle expressions?

According to the production rules for Mini-Triangle shown at the end of this paper, which of the following are Mini-Triangle expressions?
a) true
b)sin(x)
c)-n
d)m2=n
e)m-n**2
2 According to the production rules for Mini-Triangle shown at the end of this paper, which of the following are Mini-Triangle commands?
a)n:=n+1
b) halt
c) put (m,n)
d) if n>m then m:=n
e) while n>0 do n : =n-1
3 According to the production rules for Mini-Triangle shown at the end of this paper, which of the following are Mini-Triangle declarations?
a) const pi -3.1415
b) const y-x+1
c) var b: Boolean
d) var m, n: Integer
e) var y: Integer; const dpy -365
Mini-Triangle Production Rules
 According to the production rules for Mini-Triangle shown at the end

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!