Chapter 1, 2 - OOP
Chapter 1, 2 - OOP
BID1249 : LibraryAccount
Account
Checking Savings
3. In ______ phase, we analyze the problem and determine whether a solution is possible.
a. Coding
b. Design
c. Analysis*
d. Testing
4. In ____ phase, we turn a requirements specification into a detailed design of the program.
a. Coding
b. Design*
c. Analysis
d. Testing
18. There are close to ____ methods defined in the String class.
a. 5
b. 50*
c. 10
d. 100
23. If the value of a data does not change, then it is called as _____
a. Variable
b. Constant*
c. Variable or constant
d. Neither variable not constant
25. ______ is a mechanism to design two or more entities that are different but share many
common features.
a. Polymorphism
b. Inheritance*
c. Class
d. Object
26. The classes that inherit common features from the superclass are called ______
a. Superclass
b. Subclass
c. Descendant
d. Both subclass and descendant*
1. If str is “University”, then str.length( ) will return 12 characters.
True
False*
2. The Date class has “toString” method that converts the internal format to a string.
True*
False
3. Using a Scanner object is a simple way to output data from the standard input System.in
True
False*
10. The “print” method will continue printing from the end of the currently displayed output.
True*
False
11. The “println” method will continue printing from the end of the currently displayed output.
True
False*
12. Hello$World is a valid identifier.
True*
False
15. The implementation of the design into an actual program is done in coding phase.
True*
False
17. There are 2 types of testing are possible for object-oriented programs.
True*
False
26. To create an object inside the program, we must provide a definition for objects.
True*
False
31. We use a rectangle shape to represent the object and placed an underline.
True*
False
36. An instance data value is used to maintain information specific to individual instances.
True*
False
37. A class data value is used to maintain information specific to individual instances.
False*
True