Concepts Of Programming Languages
Concepts Of Programming Languages
12th Edition
ISBN: 9780134997186
Author: Sebesta, Robert W.
Publisher: Pearson,
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 1, Problem 17PS

Explanation of Solution

Chances of syntax errors between Pascal and Java while using semicolon:

Pascal uses semicolons to separate statements while JAVA uses semicolons to terminate statements.

  • One of these approaches is more natural while the other is more error free syntactically.
  • We personally feel that the Pascal approach is more natural as semicolons are used in English to separate different parts of a sentence.
  • So, it should come naturally to an English speaker that a semicolon should be used to separate statements.
  • So, this approach seems more natural. While the approach used by JAVA is less to prone to syntactic errors...

Blurred answer
Students have asked these similar questions
Although Algol60's flexible style permits statements to start and stop anywhere, the majority of programming languages today demand that statements explicitly end with an end symbol, such as a semicolon or a colon. In contrast, Python and a select few other programming languages have a predefined structure whereby statements start in a certain column and conclude at the end of a line of code unless continuation marks are included for each statement. You will discover how fixed or free formats affect readability, writability, and security in this section.
The phrases "cohesion" and "coupling" are used interchangeably in the area of computer programming.
Some programming languages—for example, Pascal—have used thesemicolon to separate statements, while Java uses it to terminatestatements. Which of these, in your opinion, is most natural and leastlikely to result in syntax errors? Support your answer.

Chapter 1 Solutions

Concepts Of Programming Languages

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education