When entered in the txtName_Enter procedure, which of the following will select all of the text boxs existing text? a. txtName.SelectAll() b. txtName.SelectAllText() c. SelectAll().txtName d. None of...
If Option Strict is set to On, which of the following statements will assign the contents of the txtSales control to a Double variable named dblSales? a. dblSales = txtSales.Text b. dblSales =...
Open the VB2017\Chap03\FixIt Solution\FixIt Solution.sln file. The application should calculate and display the area of a rectangular floor (in square feet) and the total cost of tiling the floor....
Which of the following compound conditions determines whether the value in the intOrdered variable is outside the range of 0 through 25? a. intOrdered < 0 OrElse intOrdered > 25 b. intOrdered > 0...
Which of the following If clauses compares the string contained in the txtId control with the abbreviation for the state of Georgia? a. If ToUpper(txtId.Text.Trim) = "GA" Then b. If...
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 1? a. Bronze b. Gold c. Platinum d. Silver Select Case intLevel Case 1, 2 strStatus =...
Which of the following statements is equivalent to the statement dblTotal = dblRate * dblTotal? a. dblTotal =* dblRate b. dblTotal *= dblRate c. dblRate *= dblTotal d. dblRate =* dblTotal
The instructions in a _____________________ loop might not be processed at all, whereas the instructions in a _____________________ loop are always processed at least once. a. Posttest, pretest b....
Create a Windows Forms application. Use the following names for the project and solution, respectively: Jacket Haven Project and Jacket Haven Solution. Save the application in the VB2017\Chap04...
In addition to the sequence structure, which of the following control structures is used in flowchart D in Figure 5-46? a. Selection b. Repetition c. Both a and b. A T. -O-T- LL
Which of the following statements is equivalent to the statement dblTotal = dblTotal + dblSales? a. dblTotal += dblSales b. dblSales += dblTotal c. dblTotal =+ dblSales d. dblSales =+ dblTotal
The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The...
Which of the following properties stores the index of the item selected in a list box? a. Index b. SelectedIndex c. Selection d. SelectionIndex
Which event occurs when the user selects a different item in a list box? a. SelectionChanged b. SelectedItemChanged c. SelectedValueChanged d. None of the above.
If a list boxs Sorted property is set to False, how will the numbers 4, 35, 3, 1, and 12 be displayed in the list box? a. 4, 35, 3, 1, 12 b. 1, 3, 4, 12, 35 c. 1, 12, 3, 35, 4 d. 35, 12, 4, 3, 1
Open the Fibonacci Solution.sln file contained in the VB2017\Chap05\Fibonacci Solution folder. The application should display the first 10 Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13, 21, 34, and 55....
Figure 1-21 shows an enterprise data model for a pet store. a. What is the relationship between Pet and Store (one-toone, many-to-many, or one-to-many)? b. What is the relationship between Customer...
Consider the SQL query in Figure 1-19. a. How is Sales to Date calculated? b. How would the query have to change if Helen Jarvis wanted to see the results for all of the product lines, not just the...
Give three reasons why many system designers believe that data modeling is the most important part of the systems development process.
Which of the following instructs a function to return the value stored in the dblBonus variable? a. Return dblBonus b. Return ByVal dblBonus c. Send dblBonus d. SendBack dblBonus
Which of the following is a valid header for a procedure that is passed the number 15? a. Private Function GetTax(ByVal intRate As Integer) As Decimal b. Private Function GetTax(ByAdd intRate As...
A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning inventory, number sold, and number...
Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statement should assign the functions return value...
Which property is used to specify a combo boxs style? a. ComboBoxStyle b. DropDownStyle c. DropStyle d. Style
Which of the following selects the Cat item, which appears third in the cboAnimal control? a. cboAnimal.SelectedIndex = 2 b. cboAnimal.SelectedItem = "Cat" c. cboAnimal.Text = "Cat" d. All of the...
The item that appears in the text portion of a combo box is stored in which property? a. SelectedText b. SelectedValue c. Text d. TextItem
Which event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion? a. ChangedItem b. ChangedValue c. SelectedItemChanged d....
Which of a forms events is triggered when you click the Close button on its title bar? a. FormClose b. FormClosing c. FormExit d. None of the above.
Which of the following rounds the contents of the dblSales variable to two decimal places? a. dblSales = Math.Round(dblSales, 2) b. dblSales = Math.Round(2, dblSales) c. dblSales =...
Which event is triggered when the computer processes the me.close() statement entered in the btnexit_click procedure? a. The forms closing event b. The forms formclosing event c. The btnexit controls...
Which of the following statements prevents a form from being closed? a. e.Cancel = False b. e.Cancel = True c. e.Close = False d. e.sender.Close = False
Which constant displays the Exclamation icon in a message box? a. MessageBox.Exclamation b. MessageBox.IconExclamation c. MessageBoxIcon.Exclamation d. MessageBox.WarningIcon
If a message is for informational purposes only and does not require the user to make a decision, the message box should display which of the following? a. An ok button and the information icon b. An...
Design a combinational circuit using a minimum number of 74138s (3 8 decoders) to generate the minterms m1, m5, and m9 based on four switch inputs S3, S2, S1, S0. Then display the selected minterm...
Design a synchronous sequential circuit using D flip-flops for the state diagram shown in Figure P5.19. T Cik D Clk K Q Q
Draw an ASM chart for the following: Assume three states (a, b, c) in the system with one input x and two registers R 1 and R 2 . The circuit is initially in state a. If x = 0, the control goes from...
List all sales territories (TerritoryID) that have more than one salesperson.
Display the order IDs for customers who have not made any payment, yet, on that order. Use the set command UNION, INTERSECT, or MINUS in your query.
The following attributes form a relation that includes information about individual computers, their vendors, software packages running on the computers, computer users, and user authorizations....
How do you represent an M:N ternary relationship in a relational data model?
Describe the difference between how a 1:M unary relationship and an M:N unary relationship are implemented in a relational data model.
In this exercise, you modify one of the Waterson Company applications from this chapters Apply lesson. Use Windows to make a copy of the Waterson Solution-Highest folder. Rename the copy Waterson...
How do you connect to a database in Oracle Database Express Edition 11g Release 2?
The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the following blocks of code correctly calculates the average value stored in the array? The intTotal,...
Express the following base 10 numbers in 16-bit fixed-point sign/ magnitude format with eight integer bits and eight fraction bits. Express your answer in hexadecimal. (a) 13.5625 (b) 42.3125 (c)...
Convert the following decimal numbers to 6-bit twos complement binary numbers and add them. Indicate whether or not the sum overflows a 6-bit result. (a) 16 10 + 9 10 (b) 27 10 + 31 10 (c) 4 10 + 19...
Explain how to build any N-bit shifter or rotator using only N log 2 N 2:1 multiplexers.
Simplify the following Boolean equations using Boolean theorems. Check for correctness using a truth table or K-map. (a) (b) (c) Y = AC+ABC Y = AB+ABC+(A+T)
Sketch a reasonably simple combinational circuit implementing each of the functions from Exercise 2.13. Data from Problem 13 (a) (b) (c) Y = AC+ABC Y = AB+ABC+(A+T)
You have been enlisted to design a soda machine dispenser for your department lounge. Sodas are partially subsidized by the student chapter of the IEEE, so they cost only 25 cents. The machine...
What does the funnel symbol that appears next to a fields name in the Query Builder dialog box indicate? a. The field is used in a SELECT statements ORDER BY clause. b. The field is used in a SELECT...
In this exercise, you modify the Games application from Exercise 5. Use Windows to make a copy of the Games Solution folder. Rename the copy Games Solution-Total. The frmMain_Load procedure should...
The Employees table contains six fields. The EmpNum, Rate, and DeptCode fields are numeric. The LastName, FirstName, and Status fields contain text. The Status field contains either the letter F (for...
Explain Apples view of user interface design, especially for apps.
How has input technology changed in recent years? Provide examples of traditional, evolving, and emerging input technology.
What do Venn diagrams display, and why is the information valuable?
Write a short Python function, is even(k), that takes an integer value and returns True if k is even, and False otherwise. However, your function cannot use the multiplication, modulo, or division...
Write a short Python function, minmax(data), that takes a sequence of one or more numbers, and returns the smallest and largest numbers, in the form of a tuple of length two. Do not use the built-in...
Give a single command that computes the sum from Exercise R-1.4, relying on Pythons comprehension syntax and the built-in sum function. Exercise R-1.4 Write a short Python function that takes a...
Show that (n+1) 5 is O(n 5 ).
The syntax data.remove(value) for Python list data removes only the first occurrence of element value from the list. Give an implementation of a function, with signature remove all(data, value), that...
Control systems attempt to follow the reference signal at the input, but in many cases they cannot follow particular types of inputs. Let the system we are trying to control have a transfer function...
Write a program that displays Welcome to Java, Welcome to Computer Science, and Programming is fun.
The constructor for the CaesarCipher class in Code Fragment 5.11 can be implemented with a two-line body by building the forward and backward strings using a combination of the join method and an...
Write a program that receives a character and displays its Unicode. Here is a sample run: Enter a character: E -Enter The Unicode for the character E is 69
Listing 2.7, ShowCurrentTime.java, gives a program that displays the current time in GMT. Revise the program so that it prompts the user to enter the time zone offset to GMT and displays the time in...
A palindromic prime is a prime number and also palindromic. For example, 131 is a prime and also a palindromic prime, as are 313 and 757. Write a program that displays the first 100 palindromic prime...
Rewrite Listing 2.10, ComputeChange .java, to fix the possible loss of accuracy when converting a double value to an int value. Enter the input as an integer whose last two digits represent the...
Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, and 100000000000, and displays the date and time using the...
Define the Triangle2D class that contains: Three points named p1, p2, and p3 of the type MyPoint with getter and setter methods. MyPoint is defined in Exercise. Design a class named MyPoint to...
Design a class named Fan to represent a fan. The class contains: Three constants named SLOW, MEDIUM, and FAST with the values 1, 2, and 3 to denote the fan speed. A private int data field named...
Add the following new methods in?BST. /** Displays the nodes in a breadth-first traversal */ public void breadthFirstTraversal() /** Returns the height of this binary tree */ public int height()
Write a program that displays the first 50 prime numbers in descending order. Use a stack to store the prime numbers.
Write a program that simulates four cars racing, as shown in Figure 16.47b. You can set the speed for each car, with maximum 100. 2 Car 3: 10 Car 4: Car 1: Car 2: 5 (b)
Give a real-world example that requires sorting or a real-world example that requires computing a convex hull.
Rewrite Exercise 17.12 with a GUI, as shown in Figure 17.21b. Write a utility program that combines the files together into a new file using the following command: java Exercise17_12 SourceFile1 . ....
Show how to transform the weight function of a weighted matroid problem, where the desired optimal solution is a minimum-weight maximal independent subset, to make it a standard weighted-matroid...
Describe a recursive algorithm that will check if an array A of integers contains an integer A[i] that is the sum of two integers that appear earlier in A, that is, such that A[i] = A[ j]+A[k] for...
Write a program that lets the users create a weighted graph dynamically. The user can create a vertex by entering its name and location, as shown in Figure 29.27. The user can also create an edge to...
Implement a recursive method with calling signature find(path, filename) that reports all entries of the file system rooted at the given path having the given file name.
Suppose each position p of a binary tree T is labeled with its value f (p) in a level numbering of T. Design a fast method for determining f (a) for the lowest common ancestor (LCA), a, of two...
The IEEE provides a standard 32-bit format for floating point numbers. The format for a number is specified as 1.M 2 E 127 . Explain each part of this format.
What is routing? Explain the difference between circuit switching and virtual circuit switching. What is a third, more common, alternative? How does it differ from the other two?
Draw a pair of sine waves that are 45 out of phase.
Describe a fully qualified domain name.
Create and test an HTML document that has six short paragraphs of text that describe various aspects of the state in which you live. You must define three different paragraph styles, p1, p2, and p3....
Mats-R-Us sells three different types of mats: Standard ($99), Deluxe ($129), and Premium ($179). All of the mats are available in blue, red ($10 extra), and pink ($15 extra). There is also an extra...
Which of the following assigns the number of characters in the strAddress variable to the intNum variable? a. intNum = strAddress.Length b. intNum = strAddress.LengthOf c. intNum = Length(strAddress)...
The intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17, 8, 10}}. The intNum(1, 4) = intNum(1, 2) - 5 statement will_____________________. a. Replace the 10...
Develop and test an HTML document that collects the following information from the user: last name, first name, middle initial, age (restricted to be greater than 17), and weight (restricted to the...
What new software must be installed on a browser or server to run Web applications that use Ajax?
Write, test, and debug (if necessary) a Ruby program with the following specification: Input: A list of numbers from the keyboard. Output: The median of the input numbers.
The Fourier transforms of even and odd functions are very important. Let x(t) = e ? ?t ? and y(t) = e ?t u(t) ? e t u(?t). (a) Plot x(t) and y(t), and determine whether they are even or odd. (b) Show...
Explain how you would change the stored procedure in Figure 10A-58 to connect the customer to all artists who either (a) Were born before 1900 or (b) Had a null value for Birthdate.
For signals with infinite support, their Fourier transforms cannot be derived from the Laplace transform unless they are absolutely integrable or the region of convergence of the Laplace transform...
Write an HDL module for the FSM with the state transition diagram given in Figure 3.70 from Exercise 3.23.
Another definition for the finite difference is the backward difference: 1 [x(nT s )] = x(nT s ) x((n 1)T s ) ( 1 [x(nT s )]/T s approximates the derivative of x(t)). (a) Indicate how this new...
Write an HDL module for the latch from Figure 3.18. Use one assignment statement for each gate. Specify delays of 1 unit or 1 ns to each gate. Simulate the latch and show that it operates correctly....
What is the range of instruction addresses to which conditional branches, such as beq and bne, can branch in MIPS? Give your answer in number of instructions relative to the conditional branch...
Explain how to extend the pipelined processor to handle the j instruction. Give particular attention to how the pipeline is flushed when a jump takes place.