Which of the following is an example of a logical error? a. ending a statement with a period in a language that requires a semicolon b. using the word start when a language requires begin c. dividing by 3 when you meant to divide by 30 d. starting a statement with an uppercase letter in a language that requires all lowercase
Added by Jennifer F.
Step 1
Let's think step by step. Show more…
Show all steps
Your feedback will help us improve your experience
Ernest Castorena and 97 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
You run a program and it gives you the difference of two values as the output, instead of the sum of the values, as intended. This is what type of error? a. syntax b. analysis c. coding d. design e. logic
Incorrect use of spacing with an if statement: a. detracts from its readability b. causes a syntax error message c. can change the program logic d. causes a logic error message e. all of the above
Two major types of errors found in programs are: a. compiler and syntax b. compiler and exceptions c. logic and grammar d. compiler and run-time e. exceptions and logic
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD