2.99 See Answer

Question: When we speak of database organization, we


When we speak of database organization, we speak of such things as rows, tables, and columns. Describe how the data in a database is organized into these conceptual units.


> Do you think factory employees would typically be more resistant to changes in production methods, changes in structure, or changes in culture? Why? What steps could managers take to overcome this resistance?

> What does it mean to say managers should organize for both exploration and exploitation?

> Describe the dual-core approach. How does the process of management innovation normally differ from technology change? Discuss.

> Examine the change curve illustrated in Exhibit 12.8 and the five techniques for overcoming resistance to change discussed at the end of the chapter. Describe at which point along the change curve managers could use each of the five techniques to success

> Why do you think crowdsourcing has become popular in recent years? What might be some disadvantages of taking a crowdsourcing approach? When might a company be better off taking a more limited approach to open innovation?

> Why do you think Learning and Growth Culture Goals are at the bottom of the Strategy Map in Exhibit 11.9? Discuss.

> What is the difference between a try block and a catch block?

> Assume that the variable myComboBox references an uneditable combo box, and selectionIndex is an int variable. Write code that assigns the index of the selected item in the myComboBox component to the selectionIndex variable.

> Write code that adds a scroll bar to the list you created in your answer to Algorithm Workbench 2.

> Write the code that creates a menu bar with one menu named File. The File menu should have the F key assigned as a mnemonic. The File menu should have three menu items: Open, Print, and Exit. Assign mnemonic keys of your choice to each of these items. Re

> Give an example of code that creates a read-only text field.

> Write a SELECT statement that will return the TradingSymbol column and the NumShares column only from the rows where SellingPrice is greater than PurchasePrice, and NumShares is greater than 100. The results should be sorted by the NumShares column, in a

> Write a SELECT statement that will return all of the columns from the rows where TradingSymbol starts with “SUâ€.

> Write a SELECT statement that will return the TradingSymbol column and the NumShares column from every row in table.

> Write a SELECT statement that will return all of the columns from every row in table.

> Write an SQL statement to create a table named Car. The Car table should have the ­columns to hold a car’s manufacturer, year model, and a 20-character vehicle ID number.

> Look at the following declaration. String sql = "SELECT * FROM Coffee WHERE Price . 10.00” ; Assume also that stmt references a valid Statement object. Write code that executes the SQL statement referenced by the sql variable.

> What will the following code output? String message = "Have a great day!” ; System.out.println(message.charAt(5)) ;

> Assume that the following declaration exists. final String DB_URL = "jdbc:derby:CoffeeDB” ; The string referenced by DB_URL is a database URL. Write a statement that uses this string to get a connection to the database.

> Briefly explain how the print and println methods are related to the System class and the out object.

> Why is it easier to write a program in a high-level language than in machine language?

> Describe what the phrase “self-documenting program†means.

> What is the difference between operating system software and application software?

> Is the following comment a single-line style comment or a multi-line style comment? /* This program was written by M. A. Codewriter */

> Both main memory and secondary storage are types of memory. Describe the difference between the two.

> Why should a group of RadioButtons belong to the same toggle group?

> What is an event listener?

> What is the purpose of the main application class in a JavaFX application?

> Write an SQL statement that does the following: For each row in the Stock table, if the TradingSymbol column is “XYZâ€, change it to “ABCâ€.

> What is FXML?

> What is a scene graph?

> Under what circumstances would you want to use an AudioClip object to play a sound file, rather than the Applet class’s play method?

> When is a component’s paint or paintComponent method called?

> Why would you ever need to use the older AWT library instead of Swing to develop an applet?

> Why are applets sometimes necessary in Web page development?

> When a user accesses a Web page on a remote server with his or her browser, and that Web page has an applet associated with it, is the applet executed by the server or by the user’s system?

> When a checked menu item shows a check mark next to it, what happens when the user clicks on it?

> What is a tool tip? What is its purpose?

> What is a mnemonic? How does the user use it?

> What SQL data types correspond with the following Java types? - int - float - string - double

> What is the difference between an uneditable combo box and an editable combo box? Which one is a combo box by default?

> Why would a JSlider component be ideal when you want the user to enter a number, but you want to make sure that the number is within a range?

> What selection mode should you select if you want the user to select a single item only in a list?

> What is a foreign key?

> What is the number of the first row in a table? What is the number of the first column in a table?

> What is a result set?

> If you are writing an application to store the customer and inventory records for a large business, why would you not want to use traditional text or binary files?

> In what type of situation would you present a group of items to the user with radio buttons? With check boxes?

> If you do not change the default close operation, what happens when the user clicks on the close button on a JFrame object?

> Assume that panel references a JPanel object. Write code that creates a two pixel thick blue line border around it.

> How is a problem usually reduced with a recursive method?

> Which repetition approach is less efficient: a loop or a recursive method? Why?

> What is the base case of each of the recursive methods listed in Algorithm Workbench 3, 4, and 5?

> What is the difference between an iterative algorithm and a recursive algorithm?

> What ScaleTransition class methods do you use to specify a node’s ending scale factor?

> What RotateTransition class method do you use to specify the amount of rotation?

> What RotateTransition class method do you use to specify a node’s starting angle?

> What TranslateTransition class methods do you use to specify a node’s starting location?

> What three effect classes can you use to create blur effects?

> In a 640 by 480 window, what are the coordinates of the pixel in the upper-right corner of the window?

> Assume that the variable panel references a JPanel object that uses a BorderLayout manager. In addition, the variable button references a JButton object. Write code that adds the button object to the panel object’s west region.

> You want to provide 20 items in a list for the user to select from. Which control would take up less space on the screen, a ListView or a ComboBox?

> What is the difference between an editable ComboBox and an uneditable ComboBox?

> What is the purpose of a ToggleGroup?

> You want the user to be able to select only one item from a group of items. Would you use RadioButton controls or CheckBox controls?

> In CSS, what is the difference between a type selector and an ID selector?

> How do you retrieve the text that the user has entered into a TextField control?

> What is an image’s aspect ratio? How do you make sure it is preserved when you resize an image?

> What package are the Label, Button, and TextField classes in?

> What is the purpose of the Application class’s abstract start method?

> Which layout container divides a container into regions known as top, bottom, left, center, and right?

> Assume that a class inherits from the JFrame class. Write code that can appear in the class constructor, which gives the content pane a FlowLayout manager. Components added to the content pane should be aligned with the left edge of each row.

> What is an event-driven program?

> What is the difference between a checked exception and an unchecked exception?

> What types of objects can be thrown?

> Where does execution resume after an exception has been thrown and caught?

> What happens when an exception is thrown, but the try statement does not have a catch clause that is capable of catching it?

> What happens when you serialize an object? What happens when you deserialize an object?

> What is the difference between a text file and a binary file?

> What is meant when it is said that an exception is thrown?

> When does dynamic binding take place?

> What is the difference between overriding a superclass method and overloading a superclass method?

> The variable myWindow references a JFrame object. Write a statement that displays the object’s window on the screen.

> Can a subclass ever directly access the private members of its superclass?

> What is the superclass and what is the subclass in the following line? public class Pet extends Dog

> What is a lambda expression?

> When you instantiate an anonymous inner class, the class must do one of two things. What are they?

> What is an abstract class?

> What is an “is-a†relationship?

> Each of the numeric wrapper classes has a static toString method. What do these methods do?

> Why should you use StringBuilder objects instead of String objects in a program that makes lots of changes to strings?

> Look at the following declaration: enum Color { RED, ORANGE, GREEN, BLUE} 1. What is the name of the data type declared by this statement? 2. What are the enum constants for this type? 3. Write a statement that defines a variable of this type and initial

> Is it advisable or not advisable to write a method that returns a reference to an object that is a private field? What is the exception to this?

> The variable myWindow references a JFrame object. Write a statement that sets the size of the object to 500 pixels wide and 250 pixels high.

> A “has a†relationship can exist between classes. What does this mean?

> Describe the difference in the way variables and class objects are passed as arguments to a method.

> Under what circumstances does an object become a candidate for garbage collection?

> Describe one thing you cannot do with a static method.

> The following statement creates a BankAccount array: BankAccount[ ] acc = new BankAccount[10]; Is it okay or not okay to execute the following statements? acc[0].setBalance(5000.0); acc[0].withdraw(100.0);

> Assuming that array1 and array2 are both array reference variables, why is it not possible to assign the contents of the array referenced by array2 to the array referenced by array1 with the following statement? array1 = array2;

2.99

See Answer