In Visual Basic 2010, the ____ window allows you to design the graphical user interface for your application.

CSpro
 (Not rated)
 (Not rated)
Chat

 

Question 1.

1. (TCO 1) In Visual Basic 2010, the ____ window allows you to design the graphical user interface for your application. (Points : 5)

       Property

       Solution Designer

       Designer

       Form Designer

 

 

 

Question 2.

2. (TCO 1) The Solution Explorer window ____. (Points : 5)

       displays the names of projects and files included in a solution

       displays data connections and servers

       displays items you can use when creating a project

       displays the classes, methods, and properties included in a solution

 

 

 

Question 3.

3. (TCO 3) Short, English-like phrases that are written to represent the steps a program must take to solve a particular problem are called ____. (Points : 5)

       flowcharts

       pseudocode

       object code

       macro code

 

 

 

Question 4.

4. (TCO 2) The computer automatically initializes a Boolean variable using _____. (Points : 5)

       spaces

       nothing (no data at all)

       the keyword "False"

       zero

 

 

 

Question 5.

5. (TCO 5) Assume you have a programming problem that says, "Write a program that gets a price from the user." What does this step represent? (Points : 5)

       Input

       Processing

       Output

       Concatenation

 

 

 

Question 6.

6. (TCO 5) Assume you need to multiply a price by a quantity and assign the result to a variable called total. In pseudocode, which of the following assignment statements would accomplish this? (Points : 5)

       price*quantity = total

       price X quantity = total

       total = price*quantity

       total = price X quantity

 

 

 

Question 7.

7. (TCO 3) If you want to store a percent in a Visual Basic variable, you would declare the variable as a(n) _____. (Points : 5)

       string

       double

       text

       integer

 

 

 

Question 8.

8. (TCO 3) Assume you need to declare a variable in Visual Basic that will hold the sales from the year 2006. Which of the following is a good variable name? (Points : 5)

       2006Sales

       dblSales2006

       2006 Sales

       None of the above

 

 

 

Question 9.

9. (TCO 4) The diamond flowchart symbol is used to represent the condition in _____ structures. (Points : 5)

       branching

       selection

       sequential

       empty

 

 

 

Question 10.

10. (TCO 3) Comparison operators are also referred to as ____ operators. (Points : 5)

       relational

       arithmetic

       logical

       Boolean

 

 

 

Question 11.

11. (TCO 4) A control's ____ event occurs each time the user presses a key while the control has the focus. (Points : 5)

       PressEnter

       KeyEnter

       KeyPress

       FocusPress

 

 

 

Question 12.

12. (TCO 5) Nesting structures means _____. (Points : 5)

       placing one structure inside another structure

       attaching structures end to end

       using go-to statements to direct the path of your program

       None of the above

 

 

 

Question 13.

13. (TCO 5) The choices in a dual-alternative If structure _____. (Points : 5)

       can be executed at the same time

       make the program loop over and over again

       execute from left to right, ensuring that both branches execute

       are mutually exclusive

 

 

 

Question 14.

14. (TCO 5) You use a case structure when _____. (Points : 5)

       you have one outcome to a decision

       you have two outcomes to a decision

       you have a large number of decisions based on the value stored in the same variable

       None of the above

 

 

 

Question 15.

15. (TCO 6) In a For...Next statement, if stepValue is positive, then startValue must be ____ endValue for the loop instructions to be processed. (Points : 5)

       less than

       more than

       less than or equal to

       more than or equal to

 

 

 

Question 16.

16. (TCO 6) Adding increments of a negative number is referred to as ____. (Points : 5)

       decrementing

       initializing

       deprocessing

       negating

 

 

 

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 3x5 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

 

 

 

 

    • 12 years ago
    A+ Answer-Expert Solution
    NOT RATED

    Purchase the answer to view it

    • solution-101.docx