Question: multipal choice in Java programming Part 1 [20 marks] Multiple Choice Questions [20 marks]. 2 marks each. Please choose one correct answer for each question.

multipal choice in Java programming
multipal choice in Java programming Part 1 [20 marks] Multiple Choice Questions
[20 marks]. 2 marks each. Please choose one correct answer for each

Part 1 [20 marks] Multiple Choice Questions [20 marks]. 2 marks each. Please choose one correct answer for each question. 1. To create a GUI using JavaFX, which class must be extended? a. Object b. Application C. Thread d.JFrame 2. Which of these data types is used by operating system to manage the Recursion in Java? a. Array b. Stack c. Queue d. Tree 3. Which of these is supported by method overriding in Java? a. Abstraction b. Encapsulation c. Polymorphism d. None of the above 4. What happens if we put a key object in a HashMap which exists? a. The new object replaces the older object b.The new object is discarded C. The old object is removed from the map d. It throws an exception 5. Which of these classes implements Set Interface? a. ArrayList b. HashSet c. Linked List d. DynamicList 6. Which of these methods of HashSet class is used to add elements to its object? a. add() b.Add() c. addFirst() d. inserto) 7. Which of these classes is not part of Java's collection framework? a. Maps b. Array c. Stack d. Queue 8. Which of these keywords is not a part of exception handling? a. try b. finally c. thrown d. catch 9. Which of these class is related to all the exceptions that cannot be caught? a. Error b. Exception c. RuntimeExecption d. All of them 10. Which of these exceptions is thrown in cases when the file specified for reading is not found? a. IOException b. FileException c. FileNotFoundException d. FileInputException Part2.Q3 [10 marks] Complete the following statement with a proper terminology from the following list: Array, Pane, ArrayList, Map, association, Set, groups, shapes, stage, or Control, Stack, queue, immutable, mutable, scene. a. A ................. is a container class that is used for automatically laying out the nodes in a desired location and size. b. A shape.... refers to a text, line, circle, ellipse, rectangle, etc. C. A String object is immutable.. d. In JavaFX, a slopes... is a window for displaying a scene. stage. e. Buttons, text areas, and text fields are known as uicontrols f. A ............... is a data structure that holds data in a last-in-first-out order (LIFO). g. ......is a general binary relationship that describes an activity between two classes. h. Data can be accessed via index in both avray... and ...... where in . i. Accessing shared resources is one of the application. array list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!