(tco 1) | Computer Science homework help

Question 17.
17. (TCO 3) If you have only two choices to offer the user, you should use two ____ rather than a list box. (Points : 5)

       check boxes
       text boxes
       combo boxes
       radio buttons

Question 1.
1. (TCO 7) The ____ method performs a case-sensitive search, which means that the case of the substring must match the case of the string for the method to return the True value. (Points : 5)

       Insert
       IndexOf
       Contains
       Substring

 

Question 2.
2. (TCO 7) Each character in a string is assigned a unique number that indicates its position in the string. The number is called a(n) ____. (Points : 5)

       charpos
       index
       chardex
       pos

 

Question 3.
3. (TCO 7) The ____ allows you to use pattern-matching characters to determine whether one string is equal to another string. (Points : 5)

       Insert method
       Like operator
       Contains method
       MenuStrip control

 

Question 4.
4. (TCO 4) When you pass a variable ____, the computer passes only the contents of the variable to the receiving procedure. (Points : 5)

       by reference
       by parameter
       by data type
       by value

 

Question 5.
5. (TCO 4) The procedure footer in a Function procedure is always ____. (Points : 5)

       End Function
       End Procedure
       End Sub
       End Sub Procedure

 

Question 6.
6. (TCO 3) An array called state() is declared and initialized as follows.
 
Dim state() As String = {“Ohio”, “Michigan”, “California”, “Arizona”}
 
What is the value of the subscript used to reference Arizona? (Points : 5)

       1
       2
       3
       4

 

Question 7.
7. (TCO 3) The statement ____ assigns the string “Arctic” to the element located in the second row, first column in the strOceans array. (Points : 5)

       strOceans(1, 1) = {Arctic}
       strOceans(0, 0) = (Arctic)
       strOceans(1, 0) = “Arctic”
       strOceans(0, 1) = “Arctic”

 

Question 8.
8. (TCO 2) The members of a structure can be variables, constants, or ____. (Points : 5)

       structures
       classes
       procedures
       control characters

 

Question 9.
9. (TCO 5) The purpose of a(n) ____ in OOP is to encapsulate the properties that describe an object, the methods that allow the object to perform tasks, and the events that allow the object to respond to actions. (Points : 5)

       event
       class
       method
       attribute

 

Question 10.
10. (TCO 2) The first word in a method name should be a(n) ____. (Points : 5)

       verb
       noun
       adjective
       preposition

 

Question 11.
11. (TCO 3) One advantage of using a structure is that a structure variable can be stored in an array _____. (Points : 5)

       when its members have the same data types
       even when its members have different data types
       anytime there are no members
       anytime there are less than three members

 

Question 12.
12. (TCO 8) The ____ object is responsible for retrieving the appropriate information from the database and storing it in the DataSet. (Points : 5)

       TableAdapter
       TblEmployBindingSource
       BindingSource
       DataGridView

 

Question 13.
13. (TCO 8) A database table is composed of _____. (Points : 5)

       a group of related records
       columns and rows
       multiple tables
       formatted reports

 

Question 14.
14. TCO 9) A server that hosts software such as the database-management system SQL Server or Oracle is considered a(n) _____. (Points : 5)

       fax server
       file server
       e-mail server
       application server

 

Question 15.
15. (TCO 9) Which of the following in NOT considered a network protocol? (Points : 5)

       TCP/IP
       ADO.net
       NetBIO/NetBEUI
       IPX/SPX

 

Question 16.
16. (TCO 10) __________ refers to the process of controlling who has access to a network. (Points : 5)

       Authorization
       Encryption
       Authentication
       Password control

 
 

Question 1.
1. (TCO 8) Define a bound control and describe the two ways to bind an object to a control. Give examples of when you might use a bound control and of when you would use an unbound control. (Points : 10)
      
      

 

Question 2.
2. (TCO 6)
 
A. Given a large array named intOunceArray, which stores weight in ounces, use a loop to set the value of each element in the array to the value of the subscript (index) of the element. For example, if the first element is set to the value 0, then the second element will be set to the value 1, and so on.
 
B. Write a Visual Basic statement to sort the elements in the inOunceArray. (Points : 10)
      
      

 

Question 3.
3. (TCO 5) Explain the functionality of arrays, including the benefits of storing data in an array. Explain how variables are distinguished in a one-variable array. (Points : 10)
      
      

 

 

Question 4.
4. (TCO 3) Name and describe the functionality of three different selection structures. Provide examples of when each might be used.
(Points : 10)

Question 1.
1. (TCO 2) You recently accepted the position as donations coordinator of your favorite charitable organization. You are surprised to learn that all the records are kept on 3×5 cards. Your first project is to transfer the data on the cards to a database. After that is complete, you want to be able to display all the items in the database. To that end, use the space below to define a class that will store the donor’s name, the item donated, and the date of the donation. Be sure to restrict access to these variables to methods that belong to the class. At this time, the only method you need to define for your class is a method to create a message box to display the donor’s name and the item donated and the donation date. Set the caption of the message box to the name of the club (you name it). Each item should be displayed on a separate line. For example, the message box for a member’s donation could look like this.
 
Donor’s Name: Sam Bradley
Item Donated: $50 cash
Donation Date: May 29, 2011 (Points : 15)
      
      

 

 
 
 

 

Question 2.
2. (TCO 5)
 
A. You are asked to create a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. In the space below, write the Visual Basic code to be placed in the button-click event handler. After your code declares variables and retrieves the quantity on hand entered by the user, create a three-alternative selection statement that does the following. 
 
•   sets a string named strStatus to “Surplus” if the quantity entered by the user is greater than or equal to 100
•   sets a string named strStatus to “Reorder” if the quantity entered by the user is less than 35
•   sets a string named strStatus to “No Action” if neither of the conditions above is true
The last step is to display the status string in the label.
 
B. What will be the Handles clause at the end of the sub procedure? (Points : 15)
      
      

 

Question 3.
3. (TCO 3) You are part of a team given the task of designing an application to determine a student’s letter grade for a short course. The application will process a quiz, a project, a midterm exam, and a final exam to determine the total score. The result of dividing the total score by the total points available will be used to determine the letter grade for the student. The application will then display the total score with one place to the right of the decimal point and the letter grade. The calculations will require a constant to store the total points available for the course.
 
A. Your first task is to declare each variable and constant that the form’s event handler sub procedure will need. Use an appropriate naming convention.
 
B. What name will you give the form?
 
Note: Your answer will be more readabl

 

"Is this question part of your assignment? We Can Help!"

Essay Writing Service