before a programmer plans the logic of the program, he or she must ___.\no test the program\no write the…

before a programmer plans the logic of the program, he or she must ___.\no test the program\no write the program code\no understand the problem\no maintain the program\n\nquestion 12\na ___ error results when you use a syntactically correct statement but use the wrong one for the current context.\no logical\no semantic\no programming\no syntax

before a programmer plans the logic of the program, he or she must ___.\no test the program\no write the program code\no understand the problem\no maintain the program\n\nquestion 12\na ___ error results when you use a syntactically correct statement but use the wrong one for the current context.\no logical\no semantic\no programming\no syntax

Answer

Answer:

  1. C. understand the problem
  2. A. logical

Brief Explanations:

  1. In programming, understanding the problem is a prerequisite for planning program - logic. One cannot write code, test, or maintain a program effectively without first understanding what the program is supposed to achieve.
  2. A logical error occurs when the code is syntactically correct but does not produce the expected result because the logic is wrong for the context. Semantic errors are related to meaning in a more language - specific sense, programming is a general term, and syntax errors are about incorrect code structure.