nerdexam
Microsoft

98-372 · Question #105

Allen creates an application using .NET Framework 4.0. He is unable to compile the application due to errors. What type of errors is he experiencing?

The correct answer is A. Syntax errors. Allen is experiencing syntax errors. Syntax errors are those errors that occur when a compiler is unable to compile the supplied code. An application with syntax errors does not compile successfully. Syntax errors are the most common type of errors and can be easily identified…

Understanding Error Handling

Question

Allen creates an application using .NET Framework 4.0. He is unable to compile the application due to errors. What type of errors is he experiencing?

Options

  • ASyntax errors
  • BLogical errors
  • CRuntime errors
  • DExceptions

How the community answered

(27 responses)
  • A
    74% (20)
  • B
    11% (3)
  • C
    4% (1)
  • D
    11% (3)

Explanation

Allen is experiencing syntax errors. Syntax errors are those errors that occur when a compiler is unable to compile the supplied code. An application with syntax errors does not compile successfully. Syntax errors are the most common type of errors and can be easily identified as soon as they occur. Answer: D is incorrect. An exception is an unexpected event that interrupts the normal execution of an application. It is generated if an unexpected condition occurs in the application. Developers write the exception handling code in the application's source code to deal with unexpected conditions that may arise during the application execution. When an error occurs during an application execution, the common language runtime throws an exception that contains error information. The application in turn, handles the exception that . Answer: B is incorrect. Logical errors are those errors that appear in an application once it is in use. An application with logical errors compiles and executes correctly. However, it does not produce the desired result. Logical errors are the most difficult ones to locate because there is generally no information available about the source of error. Answer: C is incorrect. Runtime errors are those errors that occur when an application attempts to perform an operation that is not allowed. They are called runtime errors because they appear only when an application executes. When a runtime error occurs, an exception that describes the error is thrown.

Topics

#syntax errors#compilation errors#error types#build errors

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice