Which statement is true ?

Which statement is true ? Correct Answer Every SLR grammar is unambiguous but not every unambiguous grammar is SLR

The correct answer is option 3.

Key Points

  • Canonical LR is the most powerful parser as compared to other LR parsers. Order: LR(0)< SLR < LALR < CLR. So, it is False.
  • Here, LP Linear Precedence. Every grammar generated by LP is CFG but all CFG's are not LP. So, it is False.
  • SLR grammar cannot be ambiguous but if any unambiguous grammar has shift-reduce conflict then it cannot be parsed with an SLR parser. True
  • LR(k) has a k-look ahead which can always see ahead of the input in order to avoid backtracking. So, it is False. 

∴ Hence the correct answer is Every SLR grammar is unambiguous but not every unambiguous grammar is SLR.

Related Questions

In this question, a passage and a related statement have been given. Read the passage carefully and assess the statement based on it. Using knives and screws, two Russian astronauts on Tuesday took a sample of substance around a mysterious cavity of the spacecraft called the Soyuz, which was placed in the International Space Station, a Moscow official suggested that it was a break - It can also be done. In August, two months after the last visit of the vehicle, the air leak was detected in the Soyuz spacecraft due to the 2 mm air in the ISS. Roskosmos, an astronomical institute, says that cutting off the insulation on the hole and sampling the material around it and the purpose of putting a new insulation on it is to find out that this small but dangerous hole has been done on earth or Is in space. The chief of Roskosmos has said that the error of manufacturing has not been found in the investigation. Experienced astronauts had to struggle but they managed their mission. Before the spacewalk, astronauts were able to inspect the hole just from within the spacecraft. The biggest difficulty was that in the Soyuz spacecraft, the ISS was not designed to improve during adverse weather space, and no railing was also made to catch the space passengers outside the vehicle. Statement: The mysterious hole in the So yuz spacecraft was due to the error of manufacturing. Select the appropriate from the given options A - Statement is completely true B - The statement is possibly true C - the statement can not be determined D - Statement is completely false
In this question, a passage and a related statement have been given. Read the passage carefully and assess the statement based on it. Using knives and screws, two Russian astronauts on Tuesday took a sample of substance around a mysterious cavity of the spacecraft called the Soyuz, which was placed in the International Space Station, a Moscow official suggested that it was a break - It can also be done. In August, two months after the last visit of the vehicle, the air leak was detected in the Soyuz spacecraft due to the 2 mm air in the ISS. Roskosmos, an astronomical institute, says that cutting off the insulation on the hole and sampling the material around it and the purpose of putting a new insulation on it is to find out that this small but dangerous hole has been done on earth or Is in space. The chief of Roskosmos has said that the error of manufacturing has not been found in the investigation. Experienced astronauts had to struggle but they managed their mission. Before the spacewalk, astronauts were able to inspect the hole just from within the spacecraft. The biggest difficulty was that in the Soyuz spacecraft, the ISS was not designed to improve during adverse weather space, and no railing was also made to catch the space passengers outside the vehicle. Statement: In the Soyuz spacecraft, the air leak due to the presence of the leak was detected after two months of the last visit. Select the appropriate from the given options A - Statement is completely true B - The statement is possibly true C - the statement can not be determined D - Statement is completely false