Test: Section 2 Quiz
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 2 Quiz
(Answer all
... [Show More] questions in this section)
1. When the program runs normally (when not in debug mode), which
statement is true about breakpoints?
Mark for
Review
(1) Points
Any Breakpoint will stop program execution.
Breakpoints will stop program execution at the first breakpoint.
Breakpoints will not have any effect on program execution. (*)
Breakpoints will stop program execution at the last breakpoint.
Correct
2. Which of the following are considered Whitespace? Mark for
Review
(1) Points
(Choose all correct answers)
Space between words. (*)
Blank lines in the code. (*)
Indentation before the code. (*)
Space between the [ ] braces.
Space in the print statements.
Correct
3. Which of the following two features are supported by the NetBeans IDE. Mark for
Review
(1) Points
(Choose all correct answers)
NetBeans provides a shortcut to format whitespace. (*)
NetBeans automatically runs the program once all the braces in the code
are matched.
NetBeans highlights matching braces. (*)
Once NetBeans spots a problem, it won’t allow you to continue coding
until the progrblem is fixed.
Incorrect. Refer to Section 2 Lesson 2.
4. Which of the following three statements are true about breakpoint? Mark for
Review
(1) Points
(Choose all correct answers)
They can be used to check the current state of the program (*)
They abruptly ends the code execution.
They pause code execution. (*)
They help with debugging. (*)
They insert break statements.
Incorrect. Refer to Section 2 Lesson 2.
5. Which of the following 2 statements are true about whitespace? Mark for
Review
(1) Points
(Choose all correct answers)
Whitespace makes your code more readable. (*)
Whitespace eliminates typing mistakes while programming.
Whitespace reduces the performance of the program.
Whitespace increases execution time of your program.
Whitespace helps to keep your code organized. (*)
Correct
Page 1 of 3 Next Summary
Test: Section 2 Quiz
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 2 Quiz
(Answer all questions in this section)
6. Which two are the correct syntax for adding comments? Mark for
Review
(1) Points
(Choose all correct answers)
Start with a slash-star (/*). End with a star-slash (*/). (*)
Start with two slashes (//). End with two slashes (//).
Start with two slashes (//). End when the line ends. (*)
Start with two slashes and a star (//*). End with a star-slash (*/).
Start with a slash- star (/*). End with slash-star (/*).
Correct
7. Which of the following are adequate definitions for components of the Spiral
Model of Development? [Show Less]