Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

45. Which of the following is an implementation of the system? a. Specification

ID: 666444 • Letter: 4

Question

45. Which of the following is an implementation of the system? a. Specification model b. Analysis model c. Design model d. Code model 46. Which of the following(s) describe(s) the benefits of client/server technology? easier to access data from a variety of sources provides greater level of security than file server systems powerful enough to replace expensive mainframe applications all of the above a. b. c. d. 47. Which of the following are considered top-level components? a. Frames and Applets b. Buttons and TextAreas c. Sliders and Menus d. TextFields and OptionPanes 48. Which of the following layout managers arranges the components from left to right the order in which they are added? a. FlowLayout b. GridLayout c. BorderLayout d. Default Layout 49. Which of the following layout managers divides the window into fi a. FlowLayout b. GridLayout c. BorderLayout d. Default Layout 50. A program that can run more than one thread at once is called:

Explanation / Answer

45. Which of the following is an implementation of the system?

Ans: d. Code model – The implementation model is specific to implementing a system into an environment. The Model represents the actual implementation of a component like software components, database systems etc. Specification, Analysis & Design Model are prior to Implementation.

46. Which of the following describes the benefits of client/server technology?

Ans: d. all of the above – The advantages of a client / server network are

47. Which are the following are considered top-level components?

Ans: a. Frames and Applets – The top-level container is the root of a containment hierarchy — the hierarchy that contains all of the Swing components that appear inside the top-level container.

containment hierarchy for this example's GUI:

48. which of the following layout managers arranges the components from left to right the order in which they are added?

Ans: a. Flow Layout - This is the most basic layout manager, components are placed from left to right as they were added, when the edge is reached the components are put on the next line. You can align the components left, right or center (default).

49. Which of the following layout manager divides the window into five areas?

Ans: c. Border Layout - Components are positioned in a five different areas: North, South, East, West or Center. If you do not specify a particular area the other areas will use this space by expanding.

50. A Program that can run more than one thread at once is called:

Ans: c. Multithreaded - Multithreaded programs support more than one concurrent thread of execution- they are able to simultaneously execute multiple sequences of instructions. Each instruction sequence has its own unique flow of control that is independent of all others. These independently executed instruction sequences are known as threads.

51. The Jon Von Neumann’s Model supports

Ans: d. All of the above – Components of the Von Neumann Model are,

52. which of the following method is used to implement the code that is executed by a thread?

Ans: a. start () - A thread will start when the start() method is invoked on the corresponding Thread object.

53. which of the following is used to activate a thread?

Ans: a. start () - A thread will start when the start() method is invoked on the corresponding Thread object.

54. Which of the following is used to avoid race condition and deadlock?

Ans: a. Good programing Practices - A race condition occurs when two or more threads can access shared data and they try to change it at the same time. Because the thread scheduling algorithm can swap between threads at any time, you don't know the order in which the threads will attempt to access the shared data. Therefore, the result of the change in data is dependent on the thread scheduling algorithm, i.e. both threads are "racing" to access/change the data

55. Which of the following is the fundamental interface for collection classes in the Java library?

Ans: d. Collection - As is common for modern data structure libraries, the Java collection library separates interfaces and implementations. A queue interface specifies that you can add elements at the tail end of the queue, remove them at the head, and find out how many elements are in the queue. You use a queue when you need to collect objects and retrieve them in a “first in, first out” fashion

56. which of the following is used to traverse all the elements of a collection?

Ans: a. Iterator - The Collections Framework provides the following ways to traverse a collection:

57. Which of the following is used by a server to monitor a port for incoming calls?

Ans: c. Socket ()

58. which of the following methods will block a server thread until a connection is made?

Ans: b & d - ServerSocket.accept() which listens for incoming socket connection in Java and blocks until a connection is made.

59. An instance (event) in Java is which of the following?

Ans: a. An Object: Every event-listener method has a single argument an object that inherits from the EventObject class. Although the argument always descends from EventObject, its type is generally specified more precisely

60. When a frame is constructed, it appears on the screen

61. The result return from a query on a table contains which of the following?

Ans: c. Attribute values

62. The result return from a query on a database connection contains which of the following?

Ans: c. Attribute values

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote