FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of error occurs when a programmer misspells a word or instruction?
A
System
B
Runtime
C
Logic
D
Syntax
Explanation: 

Detailed explanation-1: -Syntax errors are mistakes in the source code, such as spelling and punctuation errors, incorrect labels, and so on, which cause an error message to be generated by the compiler.

Detailed explanation-2: -A syntax error occurs when a programmer writes an incorrect line of code. Most syntax errors involve missing punctuation or a misspelled name. If there is a syntax error in a compiled or interpreted programming language, then the code won’t work.

Detailed explanation-3: -A program may be syntactically correct and no warning reported but still give a wrong answer, is a program that contain a bug. A bug is either a programming error (i.e. + instead of-) or a logical error where you cannot perform an operation sequence in a logical manner.

Detailed explanation-4: -A logical error in a program is an error were the instructions given in the program do not accomplish the intended goal. “Get me a cup of coffee.” is a logical error when the person intended to ask for a cup of tea. In computer programs, this error can occur in many different forms.

There is 1 question to complete.