Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What do you mean by: Syntax Error, Logical Error, Runtime Error?

Answers were Sorted based on User's Feedback



What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / vivek tiwari

Syntax Error-Errors in coding which do not follw language
syntax format. It can occur by human mistak in typing & due
lack knowledge of language .

EX - Ram are a boy. error
correct- Ram is a boy.

Logical Error- Here is correct, program will execute
properly but not give answer correct.

EX- Table is a boy syntax correct
but meaning is not

Runtime Error- overflow, underflow, out of memory capacity.

Is This Answer Correct ?    165 Yes 32 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / asit ranjan

Syntax error occurs when there happens to be a misuse of a
programming language's instructions.It happens at the time
of compilation.such errors need to be rectified before
proceeding further.
e.g.
1> x_y+z will cause syntax error as '_' is not an
assignment operator.
2>if(a=b) will cause syntax error as '=' is not relational
operator.

Runtime Error occurs at run-time.Such error cause a program
to end abrubtly or even cause system shut-down.Such errors
are hard to detect.
e.g. Error caused due to low system memory.

Logical Error :- It may happen that a program contains no
syntax or run-time errors but still it doesn't produce the
correct O/P.It is because the developer has not understood
the problem statement properly.These errors are hard to
detect as well.
e.g. Error caused when any loop is not closed at the right
place.

Is This Answer Correct ?    68 Yes 10 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / ajaya kumar

Syntax Error-Synatx Error is due to lack of knowledge in a
specific language. It is due to somebody does not know how
to use the features of a language.We can know the errors at
the time of compilation.
logical Error-It is due to the poor understanding of the
requirement or problem.
Runtime Error-The exceptions like divide a number by 0,
overflow and underfloe comes under this.

Is This Answer Correct ?    72 Yes 29 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / prathap reddy

A logic error (sometimes called a semantic error) is a bug
in a program that causes it to operate incorrectly, but not
to terminate abnormally (or crash). A logic error produces
unintended or undesired output or other behavior, although
it may not immediately be recognized as such

A syntax error ( IPA: /&#712;s&#618;ntæks &#603;r&#601;(&#633;)/ ) refers to an
error in the syntax of a sequence of characters or tokens
that is intended to be written in a particular programming
language.For compiled languages syntax errors occur
strictly at compile-time.

A runtime error is a computer error that appears in the
form of a message box consisting of a particular code along
with its corresponding definitions. Usually, a user will
notice that the computer becomes noticeably slow before a
runtime error appears.


Is This Answer Correct ?    29 Yes 8 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / bipin from utkal university

syntax error is the poor understanding of the language ie
grammatical error
Ex printf("bbsr")
this is syntax error because every c statement should
terminate by semicolon

logical error is the poor understanding of the program ie
program is grammatcally correct but you will get unexpected
result due to incorrect in program logic
Ex: suppose our program is add two integer.In program you
have written a-d instead of a+b.so you will get unexpected
output

runtime error is the bug(error) at run time.
Ex something divided by zero, 44/0

Is This Answer Correct ?    16 Yes 6 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / aatish gupta

syntax errors:it occurs when rules of a programming language are missued ,when a grammatical rule of c++ is violated.syntax refers to formal rules governinp the construction of valid statements in a language runtime errors:it is occurs during thr execution of programme logical errors: a logical error is an reeor introduced in a programme by incrroct translation logic of the programme

Is This Answer Correct ?    11 Yes 6 No

What do you mean by: Syntax Error, Logical Error, Runtime Error?..

Answer / siya

syntax error..means error in the formats.

logic error means error in the pgm logic

run time means error accurs at run time..

Is This Answer Correct ?    21 Yes 19 No

Post New Answer

More Data Structures Interview Questions

Write a Binary Search program

7 Answers   Microsoft, TCS,


What are the disadvantages of representing a stack or queue by a linked list?

0 Answers  


Is quicksort recursive?

0 Answers  


What is the difference between list, set and map?

0 Answers  


What is stack in data structure with the example?

0 Answers  


How many sorting are there in data structure?

0 Answers  


What is a hashset?

0 Answers  


Explain about the different lists available in the collection?

0 Answers  


Which algorithm is used in collections sort method?

0 Answers  


Explain the steps to insert data into a singly linked list?

0 Answers  


Define quadratic probing?

0 Answers  


Why arraylist is not efficient for manipulation?

0 Answers  


Categories