Final exam

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

8. The control that displays a list of items and allows the user to select an item from the list is ______ control.

A List Box

4. Ram is usually _______.

A volatile type of memory.

26. An ________ method is a method that appears in a superclass but expects to be overridden in a subclass.

Abstract method

11. What type of relationship exists between the two objects when one object is a specialized version of another object?

An "is a" relationship

20. Values that are sent into a method are called?

Arguments

48. The type of control normally used when you want the user to only be allowed to select one option from several possible options is the _______.

Radio buttons

12. Which of the following is NOT a valid java component.

Recursive constructor call

9. A _________ is a value that signals when the end of a list of values has been reached.

Sentinel

1. The _________ indicates the number of elements the array can hold.

Size Declarator.

27. The only limitation that a static method have is ______.

They cannot refer to non-static members of the class

49. All exceptions are instance of classes that extend the ________ class.

Throwable

16. Each of the numeric wrapper classes has a static _________ method that converts a number to a string.

ToString

50. The _________character appears at the end of a string, after the non-space characters.

Trailing whitespace

23. What is the term used for a class that is "wrapped around" a primitive data type and allows you to create objects instead of variables.

Wrapper class

31. ________ is a special type of expression used to create an object that implements a functional interface.

a lambda expression

39. A constructor is a method that _______.

automatically called when an instance of a class is created.

21. A class's responsibility's include?

both A and B

13. After the header, the body of the method appears inside a set of________.

braces, {}

38. A series of words or other items of data, separated by spaces or other characteristic, is known as a ________.

delimiter/metadata

43. It is common practice to use a ______ variable as a size declarator.

final

7. The JVM periodically performs the ________process to remove unreferenced objects from memory.

garbage collection.

45. You should not define a class that is dependent on the values of other class fields _________.

in order to avoid having stale data.

22. Methods that operate on an objects field are called

instance methods

28. A search algorithm ________.

is used to locate a specific item in a larger collection of data

19. Each array in java has a public field named _______ that contains the number of elements in the array.

length

25. Validating the results of a program is important to _______.

make sure the program solves the original problem.

41. A protected member of a class may be directly accessed by _______.

methods of the same class or methods of a subclass.

40. A class that is defined inside of another class is called an_______.

nested class

33. Enumerated types have the ________ method which returns the position of an enum constant in the declaration list.

ordinal

29. A group of related classes is called an _______.

package.

33. In the header, the method name is always followed by________.

parentheses

17. In java a reference variable is _________ because it can reference objects of types different from its own, as long as those types are related to its type through inheritance.

polymorphic

47. A _______ member's access is somewhere between public and private.

protected member

42. Which of the following is not involved in identifying the classes to be used when developing an object-orientated application?

write the code

15. Data hiding is accomplished in java by?

using the private access specifier on the class fields

2. A loop that repeats a specific number of times is an?

Count controlled loop.

6. Which of the following would contain the translated java byte code for a program named Demo?

Demo.class

3. All of the exceptions you will handle are instances of classes that extend the ________ class.

Exception.

30. The ______ layout container arranges its contents with columns and rows

GridPane

35. The HBox objects setPadding method takes an _______ as its argument.

Insets object

5. Programs that operate in the GUI environment must be.

Message dialogue.

10. The string class's ________ method accepts a value of any primitive data type as its argument and returns a string representation of the value.

The String class's valueOf().

14. A block of code is enclosed in a set of _________.

set braces { }.

46. The application class's _______ method is the main entry point for a JavaFX application

start

34. Static method can only operate on ________ fields.

static

32. The term _______ commonly is used to refer to a string that is apart of another string.

substring

44. The _______ method is used to insert an item into an ArrayList.

the add()

36. In order to do a binary search on an array ________.

the array must first be sorted in an ascending order

24. When a reference variable is passed as an argument to a method ________.

the method has access to the object that the variable references

18. In a if-else statement if the Boolean expression is false then _______.

the statement or block following the else is executed.


Kaugnay na mga set ng pag-aaral

Acute Pulmonary Embolism and Status Asthmaticus

View Set

Chapter 2 - The Insurance Contract

View Set

PEDS Chapter 16 - Neurologic Disorder

View Set

Small to Medium Enterprises (SMEs)

View Set

appendicular skeleton and joints lab quiz

View Set

Ch. 2 Basic Financial Statements

View Set