Employee1790
27. The above is an example for _______
a. Class
b. Object*
c. Method
d. Argument
BID1249 : LibraryAccount
28. In the above picture, which one is the class?
a. LibraryAccount*
b. BID1249
c. BID1249 : LibraryAccount
d. LibraryAccount : Bid1249
Account
Checking Savings
29. There are ____ subclasses are here.
a. 0
b. 1
c. 2*
d. 3
1. _______ is a systematic and disciplined approach to the development, testing, and
maintenance of a program.
a. Testing
b. Engineering
c. Software
d. Software engineering*
2. The sequence of stages from conception to operation of a program is called _______
a. Software destroy cycle
b. Software primary cycle
c. Software life cycle*
d. Software premium cycle
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
5. myWindow = new JFrame( );
The above statement creates an _______.
a. Class
b. Object*
c. Frame
d. Declare a name
6. myWindow = new JFrame( );
In the above statemet JFrame is a ______
a. Object name
b. Class name*
c. Argument
d. Method
7. Java program is composed of ___ components.
a. 1
b. 2
c. 3*
d. 4
8. There are ____ types of comments are available.
a. 1
b. 2
c. 3*
d. 4
9. An import statement consists of _____ parts.
a. 1
b. 2*
c. 3
d. 4
10. An import statement consists of
a. Package name
b. Class name
c. Package name and class name*
d. Neither package name nor class name
11. public static void main(String[ ] args)
In the above statement void is ________
a. Modifier
b. Method
c. Return type*
d. Parameter
12. There are ____ types of modifiers are available.
a. 1
b. 2*
c. 3
d. 4
13. The following can be the types of modifiers
a. Private
b. Public
c. Private and public*
d. parameter
14. Java source file extension is _____
a. .exe
b. .class
c. .javac
d. .java*
15. Bytecode file extension is
a. .java
b. .exe
c. .class*
d. .javac
16. Executable file extension is
a. .java
b. .exe*
c. .class
d. .javac
17. Sequence of characters are known as _____
a. Float
b. Integer
c. Character
d. String*
18. There are close to ____ methods defined in the String class.
a. 5
b. 50*
c. 10
d. 100
19. The expansion of UML is _____
a. Unified Motorola Language
b. Unified modification Language
c. Unified Modelling Language*
d. Unified Method Language
20. An object may be ____
a. Tangible
b. Intangible
c. Tangible and Intangible*
d. Neither Tangible nor Intangible
21. An object is called an _____ of a class.
a. Instance*
b. Program
c. Class
d. Method
22. A value passed to an object is known as _______
a. Message
b. Instance method
c. Argument*
d. Class method
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
24. If the value of a data can changes, then it is called as _____
a. Constant
b. Variable or constant
c. Variable*
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*
4. JVM is a Java Compiler.
True
False*
5. The compiled version of the source file is called source code.
True
False*
6. Human-readable form of program is called byte code.
True
False*
7. Bytecode file will be converted into executable file.
True*
False
8. Scanner is one of the standard classes.
True*
False
9. “print” is an instance of PrintStream class.
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
13. Fun Time is a valid identifier.
True
False*
14. // symbol means multiline comment.
True
False*
15. The implementation of the design into an actual program is done in coding phase.
True*
False
16. Elimination of error from a program is known as operation.
True
False*
17. There are 2 types of testing are possible for object-oriented programs.
True*
False
18. In integration testing, we test classes individually.
True
False*
19. Unit testing is one type of testing.
True*
False
20. Making changes to software is known as debugging.
True
False*
21. There are 6 stages are available in software life cycle.
True
False*
22. Coding is one of the stages in software life cycle.
True*
False
23. Destroying is one of the stages in software life cycle.
True
False*
24. we need a disciplined approach in developing complex software applications.
True*
False
25. Object-oriented programs use objects.
True*
False
26. To create an object inside the program, we must provide a definition for objects.
True*
False
27. Data values are also called data members.
True*
False
28. We use a square to represent a class.
True
False*
29. Common features are defined in superclass.
True*
False
30. We also called superclass as descendant.
True
False*
31. We use a rectangle shape to represent the object and placed an underline.
True*
False
32. To instruct a class or an object to perform a task, we send an argument to it.
True
False*
33. A method defined for an object is called an instance method.
True*
False
34. A method defined for a class is called an instance method.
False*
True
35. An object is comprised of data values only.
False*
True
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