Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
197 views
in Computer by (239k points)
closed by
The errors that can be pointed out by the compiler are
1. Syntax errors
2. Internal errors
3. Sematic errors
4. Logical errors

1 Answer

0 votes
by (237k points)
selected by
 
Best answer
Correct Answer - Option 1 : Syntax errors

The correct answer is Syntax errors.

  • A syntax error is an error in the source code of a program.
  • Since computer programs must follow strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the programming language will produce a syntax error.
  • Unlike logic errors, which are errors in the flow or logic of a program, syntax errors are small grammatical mistakes, sometimes limited to a single character.
  • For example, a missing semicolon at the end of a line or an extra bracket at the end of a function may produce a syntax error.

  • Internal errors are due to faulty logic or coding in the program.
    • Common types of internal errors include Bounds errors, Inserting a null pointer into a collection, Attempting to use a bad date.
  • A semantic error is a violation of the rules of the meaning of a natural language or a programming language.
    • semantic errors are the hardest to debug because the interpreter provides no information about what is wrong.
  • A logic error (or logical error) is a mistake in a program's source code that results in incorrect or unexpected behavior.
    • It is a type of runtime error that may simply produce the wrong output or may cause a program to crash while running.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...