Which of the following is NOT a logical error?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. Using commas instead of the two required semicolons in a for loop header
Explanation
Commas in place of the semicolons of a for header is a syntax error caught by the compiler. The others compile but behave wrongly.More Programming Languages and Computer Graphics questions
- Which statement is false?
- The steps for analysis and design of object oriented system: (A) Draw interaction diagrams (B) Draw state chart and object diagram (C) Draw…
- Given below are two statements: Assertion A: Cohesion is a qualitative indication of the degree to which a module can be written more compa…
- Modules X and Y operate on the same input and output, then the cohesion is
- Arrange the following types of Cohesion from best to worst type. A. Logical Cohesion B. Sequential Cohesion C. Communication Cohesion D. Te…
- Which of the following UML diagrams has a static view?