Computer Science, asked by priyanshiyadav989, 1 month ago

Which of the following errors will be detected at compile time? Mark all that apply. A : Missing semicolon at the end of a statement , B: Missing left curly brace, C: Missing curly braces around a sequence of statements in a while loop,D : Division by a variable that might be zero , E: Forgetting to declare the type of a variable , F :
Trying to subtract two strings​

Answers

Answered by amanpathak8833
8

Answer:

A,B,C,E are compile time errors cz there is some syntax errors

Answered by greeshmakachirayil
0

Answer:

A, B, C, and E are compile-time errors.

Compile-Time Errors: These are errors that occur when you break the writing syntax requirements. This compiler error indicates that something has to be fixed before compiling the code. All of these issues are detected by the compiler and are hence known as compile-time faults.

The most frequent Compile-Time mistakes are as follows:

  • omitted parenthesis ()
  • Displaying a variable's value without declaring it
  • a semicolon is missing (terminator)

A syntax error occurs when there is an error in a program's source code. Because computer programs must conform to strict syntax in order to compile properly, any elements of the code that break the syntax of the programming language will result in a syntax error.

This sort of error differs from a logic fault in that it is a minor grammatical error contained to a single character.

Learn more about compile time error here:

https://brainly.in/question/10350363

Learn more about types of error here:

https://brainly.in/question/610314

#SPJ2

Similar questions