JAVA 6. Which of the following will cause a runtime error? division by 1 omittin
ID: 3934709 • Letter: J
Question
JAVA
6. Which of the following will cause a runtime error?
division by 1
omitting a semicolon from a line of code
using incorrect bounds for a loop
squaring a number instead of cubing it in an equation
7. Which of the following is a logic error?
division by 0
squaring a number instead of cubing it in an equation
using incorrect bounds for a loop
forgetting a semicolon
8.Which of the following types of error will cause your program to crash?
syntax error
logic error
observation error
unforced error
runtime error
9.True or False: the parent class for all exceptions is called Error?
True
False
10.True or False. Every try/catch structure has exactly one catch block.
True
False
Explanation / Answer
Question 6:
Answer: using incorrect bounds for a loop
Question 7:
Answer: division by 0
Question 8:
Answer:
runtime error
logic error
Question 9:
Answer: False.the parent class for all exceptions is called Exception
Question 10:
Answer:False Every try/catch structure can have more than one catch block.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.