CSE 205 CERTIFIED QUALITY ACTUAL FINAL
EXAM GUARANTEED PASS QUESTIONS AND
ANSWERS UPDATED | PDF
Which of the following is true regarding the use of instance data y of class A1?
a) it is accessible in A1 and A2
b) it is accessible in A1, A2 and A3
c) it is accessible only in A3
d) it is accessible only in A1
e) it is not accessible to any of the three classes
d) it is accessible only in A1
All classes in Java are directly or indirectly subclasses of the _______ class.
a) Object
b) this
c) Reference
d) String
e) Wrapper
a) Object
Which of the following is not a method of the Object class?
a) toString
b) equals
c) compareTo
d) clone
c) compareTo
Why shouldn't an abstract method be declared final?
a) So long as the Abstract method never actually is used in by any other method,
,there's no problem with doing this
b) There's nothing wrong with doing so
c) So long as the Abstract method is declared in a Class (not an Interface), there's
nothing wrong with doing this
d) Abstract methods cannot be overridden - and they must be if a concrete class ever
is to be instantiated
d) Abstract methods cannot be overridden - and they must be if a concrete class ever is to
be instantiated
An array, when instantiated, is fixed in size, but an ArrayList can dynamically change
in size when new elements are added to it.
True
False
True
A variable declared to be of one class can later reference an extended class of that
class. This variable is known as
a) protected
b) cloneable
c) A variable declared to be of one class can never reference any other type of class,
even an extended class
d) polymorphic
e) derivable
d) polymorphic
If you instantiate an object from an Abstract class, the object you wind up with
a) is also an Abstract class
b) is a normal object
c) can't exist - you cannot instantiate an Abstract class
d) is a reference to an Object
e) is an Interface
c) can't exist - you cannot instantiate an Abstract class
,The instruction super( ); does which of the following?
a) calls the constructor as defined in the current class
b) calls the method super as defined in the current class' parent class
c) calls the constructor as defined in the current class' parent class
d) calls the method super as defined in the current class
e) calls the method super as defined in java.lang
c) calls the constructor as defined in the current class' parent class
Inheritance through an extended (derived) class supports which of the following
concepts?
a) information hiding
b) modulary
c) code reuse
d) interfaces
e) correctness
c) code reuse
During program development, software requirements specify
a) how to maintain the software
b) how to test the program when it is done
c) what the task is that the program must perform
d) how the program will accomplish the task
e) how to divide the task into subtasks
c) what the task is that the program must perform
Of the various phases in software development, which of the following is usually the
lengthiest?
a) testing
b) maintenance
c) specification
d) implementation
e) design
b) maintenance
, A bad programming habit is to build an initial program and then spend a great deal of
time modifying the code until it is acceptable. This is known as
a) the prototyping approach
b) iterative development
c) the recursive approach
d) the build-and- fix approach
e) the waterfall model
d) the build-and- fix approach
The most important decisions regarding the development of a system are made
during the implementation phase while code is actively being written.
True
False
False
Which of the following statements is completely true?
a) If a class is declared to be abstract then all methods in the class must have their
bodies omitted
b) If a class is declared to be abstract then all the instance variables must be
overridden when a concrete class is derived from the abstract base class
c) If a class is declared to be abstract then some methods in the class may have their
bodies omitted
d) If a class is declared to be abstract then every method in the class is abstract and
must be overridden
c) If a class is declared to be abstract then some methods in the class may have their
bodies omitted
If an int array is passed as a parameter to a method, which of the following would
adequately define the parameter list for the method header?
a) (int a)
b) (int[ ])
c) (int [ ] a)
d) (a[ ])
EXAM GUARANTEED PASS QUESTIONS AND
ANSWERS UPDATED | PDF
Which of the following is true regarding the use of instance data y of class A1?
a) it is accessible in A1 and A2
b) it is accessible in A1, A2 and A3
c) it is accessible only in A3
d) it is accessible only in A1
e) it is not accessible to any of the three classes
d) it is accessible only in A1
All classes in Java are directly or indirectly subclasses of the _______ class.
a) Object
b) this
c) Reference
d) String
e) Wrapper
a) Object
Which of the following is not a method of the Object class?
a) toString
b) equals
c) compareTo
d) clone
c) compareTo
Why shouldn't an abstract method be declared final?
a) So long as the Abstract method never actually is used in by any other method,
,there's no problem with doing this
b) There's nothing wrong with doing so
c) So long as the Abstract method is declared in a Class (not an Interface), there's
nothing wrong with doing this
d) Abstract methods cannot be overridden - and they must be if a concrete class ever
is to be instantiated
d) Abstract methods cannot be overridden - and they must be if a concrete class ever is to
be instantiated
An array, when instantiated, is fixed in size, but an ArrayList can dynamically change
in size when new elements are added to it.
True
False
True
A variable declared to be of one class can later reference an extended class of that
class. This variable is known as
a) protected
b) cloneable
c) A variable declared to be of one class can never reference any other type of class,
even an extended class
d) polymorphic
e) derivable
d) polymorphic
If you instantiate an object from an Abstract class, the object you wind up with
a) is also an Abstract class
b) is a normal object
c) can't exist - you cannot instantiate an Abstract class
d) is a reference to an Object
e) is an Interface
c) can't exist - you cannot instantiate an Abstract class
,The instruction super( ); does which of the following?
a) calls the constructor as defined in the current class
b) calls the method super as defined in the current class' parent class
c) calls the constructor as defined in the current class' parent class
d) calls the method super as defined in the current class
e) calls the method super as defined in java.lang
c) calls the constructor as defined in the current class' parent class
Inheritance through an extended (derived) class supports which of the following
concepts?
a) information hiding
b) modulary
c) code reuse
d) interfaces
e) correctness
c) code reuse
During program development, software requirements specify
a) how to maintain the software
b) how to test the program when it is done
c) what the task is that the program must perform
d) how the program will accomplish the task
e) how to divide the task into subtasks
c) what the task is that the program must perform
Of the various phases in software development, which of the following is usually the
lengthiest?
a) testing
b) maintenance
c) specification
d) implementation
e) design
b) maintenance
, A bad programming habit is to build an initial program and then spend a great deal of
time modifying the code until it is acceptable. This is known as
a) the prototyping approach
b) iterative development
c) the recursive approach
d) the build-and- fix approach
e) the waterfall model
d) the build-and- fix approach
The most important decisions regarding the development of a system are made
during the implementation phase while code is actively being written.
True
False
False
Which of the following statements is completely true?
a) If a class is declared to be abstract then all methods in the class must have their
bodies omitted
b) If a class is declared to be abstract then all the instance variables must be
overridden when a concrete class is derived from the abstract base class
c) If a class is declared to be abstract then some methods in the class may have their
bodies omitted
d) If a class is declared to be abstract then every method in the class is abstract and
must be overridden
c) If a class is declared to be abstract then some methods in the class may have their
bodies omitted
If an int array is passed as a parameter to a method, which of the following would
adequately define the parameter list for the method header?
a) (int a)
b) (int[ ])
c) (int [ ] a)
d) (a[ ])