Top Selling Computer science Questions

The operator that combines two conditions into a single Boolean value that is true when at least one of the conditions is true is ____________. a. || b. !! c. $$ d. && Which of the following has the lowest precedence? a. < b. == c. && d. || Assuming a variable y has been assigned the value 6, the value of ! (y < 7) is ____________. a. 6 b. 7 c. True d. False If total = 100 and amt = 200, then after the statement total += amt, ____________. a. total is equal to 200 b. total is equal to 300 c. amt is equal to 100 d. amt is equal to 300 What does the following program segment output? for(f = 0; f < 3; ++f) for(g = 0; g < 2; ++g) System.out.print(f + " " + g + " "); a. 0 0 0 1 1 0 1 1 2 0 2 1 b. 0 1 0 2 0 3 1 1 1 2 1 3 c. 0 1 0 2 1 1... What does the following program segment output? for(m = 0; m < 4; ++m); for(n = 0; n < 2; ++n); System.out.print(m + " " + n + " "); a. 0 0 0 1 1 0 1 1 2 0 2 1 3 0 3 1 b. 0 1 0 2 1 1 1 2 2 1 2 2 c. 4... You created a class called RandomGuess. In this game, players guess a number, the application generates a random number, and players determine whether they were correct. Improved the application to... You created a Die class from which you could instantiate an object containing a random value from 1 through 6. Now use the class to create a simple dice game in which the user chooses a number... a. You designed a Card class. The class holds fields that contain a Cards value and suit. Currently, the suit is represented by a single character (s, h, d, or c). Modify the class so that the suit... Create a simple guessing game, similar to Hangman, in which the user guesses letters and then attempts to guess a partially hidden phrase. Display a phrase in which some of the letters are replaced... Assume an array is declared as follows. Which of the following statements correctly assigns the value 100 to each of the array elements? int[] num = new int[4]; a. for(x = 0; x < 3; ++x) num[x] =... Suppose you have declared an array as follows: int[] creditScores = {670, 720, 815}; What is the value of creditScores.length? a. 0 b. 1 c. 2 d. 3 When you use a bubble sort to perform an ascending sort, after the first pass through an array the largest value is ____________. a. At the beginning of the list b. In the middle of the list c. At... How many rows are contained in the following array? double[][] prices = { {2.56, 3.57, 4.58, 5.59}, {12.35, 13.35, 14.35, 15.00} }; a. 1 b. 2 c. 4 d. 8 How many columns are contained in the following array? double[][] prices = { {2.56, 3.57, 4.58, 5.59}, {12.35, 13.35, 14.35, 15.00} }; a. 1 b. 2 c. 4 d. 8 In the following array, what is the value of address[1][1]? String address = { {"123 Oak ", "345 Elm "}, {"87 Maple ", "901 Linden "} }; a. "123 Oak " b. "345 Elm " c. "87 Maple " d. "901 Linden " In the following array, what is the value of fees.length? double[][] fees = { {3.00, 3.50, 4.00, 5.00}, {6.35, 7.35, 8.35, 9.00} }; a. 2 b. 4 c. 8 d. None of the above A(n) ____________ array has rows of different lengths. a. Unbalanced b. Haggard c. Jagged d. Tattered If the value of credits[0].length is not equal to credits[1].length, you know credits is ____________ array. a. A three-dimensional b. A jagged c. A partially populated d. An uninitialized Which of the following is true if a successfully running program contains the following statement: Arrays.fill(tax, 10); a. Tax is a two-dimensional array. b. fill() is a nonstatic method. c. Tax is... Which of the following is a requirement when you use a binary search method with an array? a. The array must be numeric. b. The array must have been sorted in ascending order. c. The array must have... The chief advantage to using the ArrayList class instead of the Arrays class is that an ArrayList ____________. a. Can be much larger b. Is easier to search c. Is dynamically resizable d. Can be used... The chief disadvantage to using the ArrayList class instead of the Arrays class is that an ArrayList ____________. a. Cannot be sorted b. Cannot store primitive data types c. Cannot be accessed using... A base class can also be called a ____________. a. Child class b. Superclass c. Derived class d. Subclass When you create a superclass and one or more subclasses, each object of the subclass ____________ superclass object. a. Overrides the b. is a c. is not a d. Is a new a. You created a Rental class for Sammys Seashore Supplies. Now extend the class to create a LessonWithRental class. In the extended class, include a new Boolean field that indicates whether a lesson... When you want to provide some data or methods that subclasses can inherit, but you want the subclasses to override some specific methods, you should write a(n)____________. a. Concrete object b.... Which methods can throw an exception ? A. Methods with a throws clause B. Methods with a catch block C. Methods with both a throws clause and a catch block D. Any method You wrote an application named DistanceFromAverage that allows a user to enter up to 15 double values and then displays each entered value and its distance from the average. Now, modify that program... A complete list of the disk drive plus the hierarchy of directories in which a file resides is its ____________. A. Directory B. Folder C. Path D. Delimiter A path that needs no additional information to locate a file is ____________. A. A constant path B. A relative path C. A final path D. An absolute path Real-time applications ____________. A. Use sequential access files B. Use batch processing C. Use random access files D. Seldom are interactive The statement jframe myframe = new jframe(); creates a jframe that is ____________. A. Invisible and has a title B. Invisible and has no title C. Visible and has a title D. Visible and has no title To create a jframe named aframe that is 300 pixels wide by 200 pixels tall, you can ____________. A. Use the declaration jframe aframe = new jframe(300, 200); b. Declare a jframe named aframe and... An advantage of extending the jframe class is ____________. A. You can set the child class properties within the class constructor B. There is no other way to cause an application to close when the... A class that controls component positioning in a jframe is a ____________. A. Container B. Design supervisor C. Formatter D. Layout manager Which of the following is not true of a JTextField? a. A user can type text data into it. b. Its data can be set in the program instead of by the user. c. A program can set its attributes so that a... When you use the getSource() method with an ActionEvent object, the result is a(n) ____________. a. Object b. ActionEvent c. Component d. TextField To group several components such as JCheckBoxes so that a user can select only one at a time, you create a ____________. a. CheckBoxGroup b. JCheckBoxGroup c. ButtonGroup d. JButtonGroup Build a Gantt chart by using Microsoft Project based on the list of tasks as shown in Figure C-16. This mini-project is to build part of the user interface for a new system. The following Gantt... Consider a CPU that implements a single instruction fetchdecodeexecutewrite back pipeline for scalar processing. The execution unit of this pipeline assumes that the execution stage requires one... The work breakdown structure shown in Figure C-17 is for a final iteration to deploy a new application in a new data center. The ABC company has a contract with Super ISP to host the system, and the... Which of the following statements is true? a. Animation in JavaFX cannot use transitions. b. Interpolation is a process where the movement of an object is calculated between the start and the end... Using the signed division algorithm described in section 2.5.1, find the quotient and remainder of (-25)/3. Figure 13-34 is an SSD for the use case Record dental procedure in the dental clinic system. Do the following: a. Develop a first-cut sequence diagram that only includes the actor and problem domain... A buttons caption should be entered using sentence capitalization. a. True b. False Simplify each of the following Boolean expressions as much as possible using identities: (a) XY + (1 X) + XZÌ + XYÌ + XZ (b) (c) BC + ABCDÌ + AÌBCD + ABCD (d) BC + ABCD +... Create a Windows Forms application. Use the following names for the project and solution, respectively: Jackets Project and Jackets Solution. Save the application in the VB2017\Chap01 folder. a.... What is the result of the following expression: 96 \ 30? a. 3 b. 3.2 c. 6 d. None of the above. What is the result of the following expression: 96 Mod 30? a. 3 b. 3.2 c. 6 d. None of the above. 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 =... 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.... 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 Which of the following properties stores the index of the item selected in a list box? a. Index b. SelectedIndex c. Selection d. SelectionIndex 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... 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. 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... 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. After completing a course in database management, you are asked to develop a preliminary ERD for a symphony orchestra. You discover the entity types that should be included as shown in Table 2-2.... Wally Los Gatos, owner of Wallys Wonderful World of Wallcoverings, has hired you as a consultant to design a database management system for his chain of three stores that sells wallpaper and... 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)... Explain how to build any N-bit shifter or rotator using only N log 2 N 2:1 multiplexers. 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... 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...
Showing 3100 - 3200 of 5000