You are on page 1of 6

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)

1. Which of the following 2 statements are true about whitespace?


Mark for Review
(1) Points

(Choose all correct answers)

Whitespace eliminates typing mistakes while programming.


Whitespace makes your code more readable. (*)

Whitespace reduces the performance of the program.

Whitespace increases execution time of your program.

Whitespace helps to keep your code organized. (*)

2. You can set any number of breakpoints for your program.


Mark for Review
(1) Points

True (*)

False

3. Which of the following three statements are true about breakpoint?


Mark for Review
(1) Points

(Choose all correct answers)

They insert break statements.

They help with debugging. (*)

They can be used to check the current state of the program (*)

They pause code execution. (*)

They abruptly ends the code execution.


4. A breakpoint can be set by clicking a number in the left margin of the IDE. Clicking
again removes the breakpoint. Mark for Review
(1) Points

True (*)

False

5. 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 when the line ends. (*)

Start with a slash- star (/*). End with slash-star (/*).

Start with two slashes and a star (//*). End with a star-slash (*/).

Start with two slashes (//). End with two slashes (//).

6. Java mostly reads code line-by-line.


Mark for Review
(1) Points

True

False

7. Which of the following are adequate definitions for components of the Spiral Model of
Development? Mark for Review
(1) Points

(Choose all correct answers)

Test: Run the code and verify results

Develop: Collect all specified instructions

Requirements: Start the development

Design: Plan the approach


8. A software feature may allow the user to perform a specific task.
Mark for Review
(1) Points

True

False

9. During the Testing phase of software development, which of the following are the
tasks undertaken by the programmer? Mark for Review
(1) Points

(Choose all correct answers)

Finding the bugs.

Listing required features.

Planning the order to implement features.

Fixing the bugs.

10. The Spiral Model reflects an iterative development process.


Mark for Review
(1) Points

True

False

11. There are several fields and methods in a Shirt class. Which of the following could be a
method in the Shirt class? Mark for Review
(1) Points

price

getShirtSize()

color

size

12. In object oriented programming, there is an emphasis on which of the following two:
Mark for Review
(1) Points

(Choose all correct answers)

Modeling objects.

Writing algorithms.
Object interaction without a prescribed order.
Creation of procedures.
13. An object may interact with another object by invoking methods.
Mark for Review
(1) Points

True

False

14. Which of the following language is called a procedural language?


Mark for Review
(1) Points

C++

Java C

Java

15. In object oriented programming, an object comprises of properties and behaviors


where properties represented as fields of the object and behavior is represented as Mark for Review
method. (1) Points

True

False

You might also like