CONCEPTS OF PROGRAMMING LANG.-TEXT
11th Edition
ISBN: 2810017678981
Author: Sebesta
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
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...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
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.
In terms of debugging, what are the advantages and disadvantages of manual walkthroughs over printed statements? Discuss?
Is there a definition for "debugging" in the context of computer programming?
Chapter 1 Solutions
CONCEPTS OF PROGRAMMING LANG.-TEXT
Ch. 1 - Why is it useful for a programmer to have some...Ch. 1 - Prob. 2RQCh. 1 - Prob. 3RQCh. 1 - Prob. 4RQCh. 1 - Prob. 5RQCh. 1 - In what language is most of UNIX written?Ch. 1 - What is the disadvantage of having too many...Ch. 1 - How can user-defined operator overloading harm the...Ch. 1 - Prob. 9RQCh. 1 - Prob. 10RQ
Ch. 1 - Describe some design trade-offs between efficiency...Ch. 1 - Prob. 12RQCh. 1 - Prob. 13RQCh. 1 - Prob. 14RQCh. 1 - Prob. 15RQCh. 1 - Prob. 16RQCh. 1 - Prob. 17RQCh. 1 - Prob. 18RQCh. 1 - Prob. 19RQCh. 1 - Prob. 20RQCh. 1 - Prob. 21RQCh. 1 - Prob. 22RQCh. 1 - Prob. 23RQCh. 1 - Prob. 24RQCh. 1 - Prob. 25RQCh. 1 - What role does the symbol table play in a...Ch. 1 - Prob. 27RQCh. 1 - Prob. 28RQCh. 1 - What are the advantages in implementing a language...Ch. 1 - Prob. 1PSCh. 1 - What are some features of specific programming...Ch. 1 - Prob. 3PSCh. 1 - Prob. 4PSCh. 1 - Prob. 5PSCh. 1 - What common programming language statement, in...Ch. 1 - Java uses a right brace to mark the end of all...Ch. 1 - Prob. 8PSCh. 1 - Explain the different aspects of the cost of a...Ch. 1 - Prob. 10PSCh. 1 - Describe some design trade-offs between efficiency...Ch. 1 - Prob. 12PSCh. 1 - Prob. 13PSCh. 1 - Prob. 14PSCh. 1 - How do type declaration statements for simple...Ch. 1 - Write an evaluation of some programming language...Ch. 1 - Prob. 17PSCh. 1 - Many contemporary languages allow two kinds of...
Knowledge Booster
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
- Can you explain the distinction between testing and debugging in the context of computer programs?arrow_forwarda field devoted to the study of computers When compared to passing by value, what are the advantages and disadvantages of passing by reference?arrow_forwardWhat are the pros and cons of debugging using manual walkthroughs as opposed to print statements? Discuss?arrow_forward
- Why is it important in modern programming languages to include both pass-by-value & pass-by-reference? Why not just have one or the other? In your answer, describe the benefits of having each AND describe why it wouldn't be a good idea to have only one or the other.arrow_forwardA new language with a block structured syntax similar to Algol 60 uses either pass-by-reference or pass-by-value as a parameter passing mechanism, but you don’t know which. Design a test program you can use to find out which parameter passing method it uses and explain how the results of your program will enable you to detect the parameter passing mechanism.arrow_forwardDebugging techniques like as print statements and manual walkthroughs have their advantages and disadvantages. Discuss.arrow_forward
- Is there any reason why modern programming languages can't do without pass-by-value and pass-by-reference constructs? Why is it that we can't just choose one of these? Please address the benefits of having both and the drawbacks of having either alone in your answer.arrow_forwardIs it correct to say that due to garbage collection feature in Java, a java program never goes out of memory?arrow_forwardthe research into computers What are the advantages and disadvantages of passing by value vs passing by reference, respectively?arrow_forward
- When applied to computer programming, is there any significance to the phrase "debugging"?arrow_forwardIn the context of a computer software, what is the key distinction between testing and debugging?arrow_forwardWhat are the advantages and disadvantages of manual walkthroughs over print statements for debugging? Discuss?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education