When a user closes a jframe, the default behavior is for ____________. A. The jframe to close and the application to keep running b. The jframe to be hidden and the application to keep running c. The...
Suppose that you create an application in which you instantiate a JFrame named frame1 and a JLabel named label1. Which of the following statements within the application adds label1 to frame1? a....
The arguments required by the font constructor include all of the following except ____________. A. Typeface b. Mode c. Style d. Point size
Within an event-driven program, a component on which an event is generated is the ____________. A. Performer B. Listener C. Source D. Handler
A class that will respond to button-press events must use which phrase in its header? a. Import java.event b. Extends action c. Extends j frame d. Implements action listener
A JFrame contains a JButton named button1 that should execute an actionPerformed() method when clicked. Which statement is needed in the JFrame class? a. addActionListener(this); b....
A class can implement ____________. A. One listener B. Two listeners C. As many listeners as it needs D. Any number of listeners as long as they are not conflicting listeners
When you write a method that reacts to JCheckBox changes, you name the method ____________. a. itemStateChanged() b. actionPerformed() c. checkBoxChanged() d. Any legal identifier you choose
If a class contains two components that might each generate a specific event type, you can determine which component caused the event by using the ____________ method. a. addActionListener() b....
Figure 13-32 is an activity diagram for the use case Return books in the university library system. Do the following: a. Develop a first-cut sequence diagram that only includes the actor and problem...
For the format used in Exercise 5.19, what decimal number is represented by each of the following numbers in floating point format? a. C2F00000 16 b. 3C540000 16 Data from Exercise 5.19 Convert the...
Perform the following unsigned multiplication in binary using a minimum number of bits required for each decimal number using pencil and paper method: 12 x 52
Find the odd parity bit for the following binary message to be transmitted: 10110000.
Repeat Problem 2.20 using repeated addition. Data From Problem 20 Perform the following unsigned multiplication in binary using a minimum number of bits required for each decimal number using pencil...
Figure 13-33 is a fully developed use case description for the use case Receive new book in the university library system. Do the following: a. Develop a first-cut communication diagram that only...
Draw a logic diagram to implement F = ABCDE using only 3-input AND gates.
Using truth tables, express each one of the following functions and their complements in terms of sum of minterms and product of maxterms: (a) F = ABC + ABD + A B C + ACD (b) F = (W+ X + Y)(WX + Y)...
Minimize each of the following functions using a K-map: (a) F(A, B, C) = m(0, 1, 4, 5) (b) F(A, B, C) = m(0, 1, 2, 3, 6) (c) F(X, Y, Z) = m(0, 2, 4, 6)
Minimize each of the following expressions for F using a K-map. (a) F(A,B,C) = BC + ABC + ABC (b) F(A,B,C) = ABC + BC (c) F(A,B,C) = AC + A(BC + BC)
Using your solution to problem 8, do the following: a. Add the view layer classes and the data access classes to your diagram. b. Develop a package diagram showing a three layer solution with view...
Figure 13-36 is a fully developed use case description for the use case Print patient invoices in the dental clinic system. Do the following: a. Develop a first-cut communication diagram that only...
In Chapter 10, we identified these four subsystems: Customer account subsystem (such as customer account) Pickup request subsystem (such as sales) Package delivery subsystem (such as order...
What is the three-character extension appended to solution filenames in Visual Basic? a. .prg b. .sln c. .src d. .vbs
Explain the difference between a forms Text property and its Name property.
Define the term syntax.
How do you verify the name of the startup form?
A buttons caption should be entered using sentence capitalization. a. True b. False
Which of the following statements is false? a. The text contained in an identifying label should be left-aligned within the label. b. An identifying label should be positioned either above or to the...
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap01 folder....
What is the id used for text box names? A. Tex B. Text C. Txt D. None of the above.
What is the ID used for label control names? a. lab b. lal c. lbe d. None of the above.
Label controls that display program output typically have their BorderStyle property set to _____________________. a. BorderSingle b. Fixed3D c. FixedSingle d. None
Which of the following should have their names changed to more meaningful ones? A. All controls that will be coded B. All controls that will be referred to in code C. The form D. All of the above.
Define sentence capitalization.
Listed below are the five steps for planning a Windows Forms application. Put the steps in the proper order by placing a number (1 through 5) on the line to the left of the step....
Which flowchart symbol represents a processing task? a. Circle b. Oval c. Parallelogram d. Rectangle
The expression intNum * intNum * intNum is equivalent to which of the following expressions? a. intNum ^ 3 b. intNum * 3 c. intNum ^ 2 * intNum d. Both a and c.
What is the result of the following expression: 3 * 5 \ 2 + 30 / 5? a. 7.5 b. 13 c. 13.5 d. None of the above.
Which of the following is a computer memory location whose value does not change during run time? A. Literal B. Named constant C. Static constant D. Variable
Create an application that calculates and displays the percentage of students receiving a grade of P (for Pass) and the percentage of students receiving a grade of F (for Fail). Before creating your...
If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the lblTotal control? a. lblTotal.Text = (intN1 + intN2).ToString b....
Which of the following statements prevents data loss due to implicit type conversions? a. Option Convert Off b. Option Explicit On c. Option Implicit Off d. Option Strict On
Evaluate the following expression: 13 > 12 OrElse 6 < 5. a. True b. False
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 65? a. 0 b. 5 c. 8 d. 10 If intAge
Where can a nested selection structure appear? a. Only in an outer selection structures false path b. Only in an outer selection structures true path c. In either of an outer selection structures...
Which of the following Case clauses is valid in a Select Case statement whose selectorExpression is an Integer variable named intAge? a. Case Is > 21 b. Case 21, 65 c. Case 1 To 10 d. All of the...
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string 2? a. Bronze b. Gold c. Platinum d. Silver "2" Then If strLevel = "1" OrElse strLevel...
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string 5? a. Bronze b. Gold c. Platinum d. Silver If strLevel = "1" OrElse strLevel "2" Then...
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string 10? a. Bronze b. Gold c. Platinum d. Silver If strLevel = "1" OrElse strLevel "2" Then...
What is the minimum number of radio buttons in a group? a. One b. Two c. Three d. There is no minimum number of radio buttons.
If a check box is not selected, what value is contained in its Checked property? a. True b. Unchecked c. False d. Unselected
Which capitalization should be used for the text appearing in check boxes and radio buttons? a. Sentence capitalization b. Book title capitalization c. Either book title capitalization or sentence...
A form contains six check boxes. Three of the check boxes are located in a group box. How many of the check boxes on the form can be selected at the same time? a. One b. Two c. Three d. Six
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 4? a. Bronze b. Gold c. Platinum d. Silver Select Case intLevel Case 1, 2 = "Bronze"...
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 7? a. Bronze b. Gold c. Platinum d. Silver Select Case intLevel Case 1, 2 strStatus =...
Which of the following If clauses will evaluate to True when the Bonus check box is selected? a. If chkBonus.Check = True Then b. If chkBonus.Checked Then c. If chkBonus.Checked = True Then d. Both b...
When entered in the appropriate event procedure, which of the following statements cancels the key pressed by the user? a. e.Handled = True b. e.Handled = False c. e.KeyCancel = True d. e.KeyCancel =...
Which of the following If clauses determines whether the user pressed the Backspace key? a. If e.KeyChar = ControlChars.Back Then b. If e.KeyChar = Backspace Then c. If e.KeyChar =...
Which of the following If clauses determines whether the user pressed the % key? a. If ControlChars.PercentSign = True Then b. If e.KeyChar = "%" Then c. If e.KeyChar = Chars.PercentSign Then d. If...
The computer will stop processing the loop in Review Question 6 when the intCount variable contains the number _____________________. a. 11 b. 12 c. 13 d. 14
In this exercise, you modify the Grade application from Exercise 13 in Chapter 3. Use Windows to copy the Grade Solution folder from the VB2017\Chap03 folder to the VB2017\Chap04 folder. Open the...
In this exercise, you modify the Sales application from Exercise 14 in Chapter 3. Use Windows to copy the Sales Solution folder from the VB2017\Chap03 folder to the VB2017\Chap04 folder. Open the...
The loop controlled by the correct For clause from Review Question 13 will end when the intX variable contains the number _____________________. a. 100 b. 111 c. 101 d. 110
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap04 folder....
To make the btnCalc control the default button, you need to set the _____________________ property. a. btnCalcs AcceptButton b. btnCalcs DefaultButton c. forms AcceptButton d. forms DefaultButton
In this exercise, you modify the Numbers application from Exercise 6. Use Windows to make a copy of the Numbers Solution folder. Rename the copy Modified Numbers Solution. Open the Numbers...
Minimize the following expression using a K-map: F = AB + A B CD + CD + A B C D and then draw schematics using: (a) NAND gates. (b) NOR gates.
Create a Windows Forms application. Use the following names for the project and solution, respectively: General Project and General Solution. Save the application in the VB2017\Chap05 folder. A...
Draw a logic diagram for a two-input (A,B) Exclusive-OR operation using only four two-input (A,B) NAND gates. Assume that complemented inputs A and B are not available.
Express the following functionsF 1 and F 2 in terms of the inputs A, B, and C. What is the relationship between F 1 and F 2 ? A - F, D- Do F2
Design a combinational circuit that accepts a three-bit unsigned number and generates an output binary number equal to the input number plus 1. Draw a schematic using logic gates. Show all steps...
Name the five phases of the traditional systems development life cycle (SDLC), and explain the purpose and deliverables of each phase.
Explain the distinction between entity type and entity instance.
Design a combinational circuit that converts a 4-bit BCD input to its nines complement output. Draw a schematic using logic gates. Show all steps clearly.
A combinational circuit is specified by the following equations: F 0 (A, B, C) = A B C + ABC = ABC F 1 (A, B, C) = ABC + ABC F 2 (A, B, C) = ABC + ABC F 3 (A, B, C) = ABC + ABC + ABC Draw a logic...
Implement each of the following using an 8-to-1 multiplexer: (a) F(A, B, C, D)=ABC +ABD +ABC +ACD (b) F(W, X, Y, Z) = m(2, 3, 6, 7, 8, 9, 12, 13, 15)
Write a Verilog description for a four-bit unsigned comparator using dataflow modeling using the logical equality, less than, and greater than operators.
Assume that initially x = 1, A = 0, and B = 1 in Figure P5.5. Determine the values of A and B after the positive edge of Clk. A B D D Clk Clk Clk
Given Figure P5.8, draw the timing diagram for Q and Q assuming a negative edge triggered JK flip-flop. Assume Q is preset to 1 initially. CIk K
Given the timing diagram for a negative-edge triggered T flip-flop in Figure P5.10, draw the timing diagram for Q. Assume Q is preset to 1 initially. CIk T FIGURE P5.10.
Analyze the clocked synchronous circuit shown in Figure P5.15. Express the next state in terms of the present state and inputs, derive the state table, and draw the state diagram. X A PITII D FIGURE...
Design the following nonbinary sequence counters using the type of flipflop specified. Assume the unused states as dont cares. Is the counter self-correcting? Justify your answer. (a) Counting...
Write a Verilog description using behavioral modeling for: (a) The positive edge-triggered JK Flip-Flop of Figure 5.9. (b) A D flip-flop with a synchronous reset input and a positive edge triggered...
Design an ALU to perform the following operations: Assume that x and y are 4-bit numbers, and B = y 3 y 2 y 1 y 0 . Draw a logic diagram. S, S, F x plus y 1 X 1 B 1
Consider the following normalized relations from a database in a large retail chain: STORE (StoreID, Region, ManagerID, SquareFeet) EMPLOYEE (EmployeeID, WhereWork, EmployeeName, EmployeeAddress)...
Which employees were hired during 1999?
List all raw materials that are made of cherry and that have dimensions (thickness and width) of 12 by 12.
Display the product line ID and the average standard price for all products in each product line.
Display the product ID and the number of orders placed for each product. Show the results in decreasing order by the number of times the product has been ordered and label this result column...
For each customer who had more than two orders, list the CustomerID and the total number of orders placed.
Write the SQL command to add MATH SCORE to the STUDENT table. TUTOR (TutorlD, CertDate, Status) MATCH HISTORY (MatchID, TutorlD, StudentID, StartDate, EndDate) TutorlD CertDate Status 1/05/2008...
For each of the following relations, indicate the normal form for that relation. If the relation is not in third normal form, decompose it into 3NF relations. Functional dependencies (other than...
Our friend Wally Los Gatos, realizing that his wallcovering business had a few wrinkles in it, decided to pursue a law degree at night. After graduating, he has teamed up with Lyla El Pjaro to form...
Table 4-8 shows a portion of a shipment table for a large manufacturing company. Each shipment (identified by Shipment#) uniquely identifies the shipment Origin, Destination, and Distance. The...
Review Figure 2-8 and Figure 2-21. a. Identify any attributes in Figure 2-21 that might be composite attributes but are not shown that way. Justify your suggestions. Redraw the ERD to reflect any...
What are the two Oracle programs that are recommended as a necessary set of Oracle Database Express Edition 11g Release 2 software products? In what order should you install these products?
Figure 4-32 shows an EER diagram for a simplified credit card environment. There are two types of card accounts: debit cards and credit cards. Credit card accounts accumulate charges with merchants....
Use Microsoft SQL Server Management Studio to run one or more of the saved SQL queries you created in question A.14:
As illustrated in Figure 8-21, what is column family database storage and how are such systems organized? How do column family database storage systems compare to RDMS systems? FIGURE 8-21 Name:...
Consider IEEE 754 single-precision floating-point numbers. (a) How many numbers can be represented by IEEE 754 single-precision floatingpoint format? You need not count or NaN. 286 CHAPTER FIVE...