(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

 

Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Custom Writings Help is a Quality-Oriented Company in Online Writing as a result of hiring exceptional professionals to execute clients' tasks.

Essays

Research Papers

At Custom Writings Help,We understand the struggle of research paper writing, and that is why at Custom WritingS Help, we are all out to help you. We pride ourselves on having a team of clinical writers. The stringent and rigorous vetting process ensures that only the 'BEST' Writers are chosen for the job. We have highly qualified Ph.D. and MA writers working with us; we equally offer these experienced writers specific bonuses and incentives to make them deliver highly original, unique, and informative content at reasonably low prices.

Admissions

Thesis Writing Service

Worlwide, Many Masters Students are struggling with Thesis Completion. A thesis is likely to be the longest and most challenging piece of work a student has ever completed. However, unlike essays and other assignments, a student can pick a particular interest topic and work on their initiative. Fortunately, we are there for you. At Custom Writings Help, you are assured of an authentic, imaginative, informative, linguistically great, and advantageous thesis that adheres to all your needs. So, why continue considering different writers when you have discovered the best in the field?

Editing

Custom Papers

Not a single student can avoid writing custom papers. However, a total lack of experience, skills, and time makes it very hard to produce a superb writing piece. Therefore, if you are seeking professional help, turn to us. Our specialized and experienced writers compose a variety of model papers, including custom essays, college term papers, research papers, book reports, MBA essays, executive summaries, dissertations, Ph.D. theses, admission essays, and research proposals for college and university students at any level.

Coursework

Essay Writing

Most of the students disregard the critical principles of essay writing and compose papers below sensible guidelines. Therefore, with Custom Writings Help, one should not worry about his/her essay. Our Writers compose informative and engaging content on all complexities and topics. We write meaningful and smart essays while prioritizing all aspects that bring about a good grade, such as impeccable grammar, proper structure, zero-plagiarism, and conformance to guidelines.

Coursework

Coourse Work Writing

Don't let the seemingly never-ending onslaught of writing assignments get you down. If you are looking where to get course work assistance online, the writers at Custom Writings Help are here to assist you with all of your writing needs. We undertake to unique delivery of papers that meet the professor's requirements. The content is proofread, edited, and checked plagiarism before submission to customers. No matter how big or small your work is, we will deliver on time. Try US Now! !

Coursework

Dissertation Writing Service

High-Quality Dissertation Writing Services are rare. They require Ph.D. academicians – not easily found. However, are an exception. The years, time, and resources we have invested in the dissertation world has given us a competitive advantage over others. Choose to come to Custom Writings Help; You will find perfect Ph.D. consultants who have written hundreds of dissertations theses ready to help you. Let our dissertation-writing services help you craft your dissertation, for you are assured we will give you the results.