Discussion questions1-3 - Essay Example

Only on StudentShare

Extract of sample
Discussion questions1-3

The interpreter does not differentiate between exception and syntax error, it continues to interpret and execute the source code till possible. However, it stops interpreting where finds a syntax error with an error message. In this regard, it is achievable for interpreters to handle the syntax errors as exceptions to continue an execution of a source code/program even after the syntax error.
Defensive programming is to investing more time in writing a secure program by validation of extensive of input, avoiding garbage values and standardization of exception handling. The defensive programming relates to variables as in the defensive programming we need to use naming scheme (preferably Hungarian Variables) begins with int, str and providing meaningful variables names. All the variables should be explicitly initialized to avoid garbage values, long script should be break into sections that facilitates reusability and makes easy debugging. Hence, it can be said that the defensive programming avoids not only syntax errors but also some semantic errors while using the above methods, so that when viewing variables the programmer explicitly knows for what purpose the variable is declared and used in a program.
Spreadsheet model is one of the major business models that is ubiquitous and allow us to develop more complex and detailed models than traditional mathematics allows. It facilitates business communication especially performing modeling tasks and accounting statements in effective and efficient manner, as it is more-powerful and refined tool. This is the reasons for which spreadsheet modeling is high in demand of recruiters.
Modeling helps us to make informed decisions in any business. We can model a system before its actual implementation to know any defect in the model, test the model and can identify pros and cons of the modeled system. Modeling can be used to investigate alternate ways of doing business, without investing in a ...
Download paper

Summary

Syntax errors are treated differently in C+ (Compiler) and Java (Interpreter), as the interpreters are used to interpret the source code line by line, whereas, the compiler (C+) compiles the whole code at once and displays all the errors at a time.
Usually, the compiler does…
Author : geraldgorczany

Related Essays

Database Structures, Languages, and Architectures SLP
2 pages (502 words) Research Paper
Should Abortion be Legal?
9 pages (2259 words) Research Paper
Program Theory : 3
3 pages (753 words) Essay
Week 3 lab cis175
1 pages (251 words) Assignment
Week 3 lab cis175
1 pages (251 words) Assignment
Got a tricky question? Receive an answer from students like you! Try us!