CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following grammer.
SZZ
ZxZ|y
which of the following is represent 'handle' in the generation of string 'xxxyxy'?

A
Zxy
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
ZxZ
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
xZ
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
xZxy
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C xZ
String given " xxxyxy"

Handle{ZxZ}
sZZZxZZxyxZxyxxZxyxxxZxyxxxyxy
  • ZxZ is not handle i.e. cannot reduce to any variable.
  • Zxy is not handle i.e, cannot reduce to any varibale.
  • xZxy is not handle i.e. cannot reduce to any variable.
  • xZ is handle since xZ reduce to Z in next step.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Validity of Statements
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon