• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/100

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

100 Cards in this Set

  • Front
  • Back

A Visual Basic 2012 solution file will have a(n) ____ file extension.

.sln

A ____ is the general shape of the characters in the text.

font

A label control’s ____ property determines the value that appears inside the control.

Text

A user ____ is what the user sees and interacts with while an application is running.

interface

A(n) ____ is a block of code that performs a specific task.

sub procedure

A(n) ____ is a container that stores the projects and files for an entire application.

solution

A(n) ____ is a predefined procedure that you can call (or invoke) when needed.

method

All objects in an object-oriented program are instantiated (created) from a ____.

class

You have been hired to develop an application for Ridgeline Realty, a local real estate agency. The owner wants the application to display an image of the main office and the company logo on the screen for a short period of time before the main application begins.The most effective way to accomplish this task is to create a(n) ____.

splash screen

You have been hired to develop an application for Ridgeline Realty, a local real estate agency. The owner wants the application to display an image of the main office and the company logo on the screen for a short period of time before the main application begins.To create the Windows application for Ridgeline, you will first need to ____.

create a New Project and determine the directory for the solution

You have been hired to develop an application for Ridgeline Realty, a local real estate agency. The owner wants the application to display an image of the main office and the company logo on the screen for a short period of time before the main application begins.An example of a valid value for the form’s Name property is ____.

frmRidgeline

You have been hired to develop an application for Ridgeline Realty, a local real estate agency. The owner wants the application to display an image of the main office and the company logo on the screen for a short period of time before the main application begins.Anyone using the application does not need to change the size of the form, so you must set the FormBorderStyle property to ____.

FixedSingle

Case-Based Critical Thinking QuestionsCase 1You have been hired to develop an application for Ridgeline Realty, a local real estate agency. The owner wants the application to display an image of the main office and the company logo on the screen for a short period of time before the main application begins.If a timer control is used to display the office image and company logo for five seconds, you will need to set the timer’s Interval property to ____.

5000

Each object has a set of attributes, called ____, that determine the object’s appearance and behavior.

properties

System.Windows.Forms.Button indicates that the control is an instance of the ____ class.

Button

The Solution Explorer window ____.

displays a list of the projects contained in the current solution

The Toolbox window ____.

displays the tools you use when creating your application’s interface

The Windows ____ window allows you to create the graphical user interface for your application.

Form Designer

The ____ function key will start a Visual Basic 2012 application in the IDE.

F5

The file within a Visual Basic application that can be run outside of the IDE has a(n) ____ file extension.

.exe

The location of a control on the screen can be modified by changing the X and Y properties measured in pixels. The Y value is measured from the ____ border.

top

The location of a control on the screen can be modified by changing the X and Y properties measured in pixels. The X value is measured from the ____ border.

left

The position of the form on the screen when an application first starts is controlled by setting the ____ property.

StartPosition

The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button) is referred to as a(n) ____.

event procedure

To align two or more selected controls along their left, right, top, or bottom borders, you would use the ____ menu.

Format

A ____ provides an area in the form for the user to enter data.

text box

A control’s order of receiving focus is set by changing the ____ property.

TabIndex

A label control used to display output should use which of the following BorderStyle settings?

FixedSingle

A(n) ____ is a predefined procedure that performs a specific task and then returns a value.

function

An access key allows the user to select an object using the ____ key in combination with a letter or number.

Alt

The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potential clients for tutoring services. A tutoring session is a minimum of one hour, and the hourly rate varies based on the subject. The application should allow the owner to enter the client’s name, subject, number of tutoring sessions, and hourly rate. The application will display the total fee and allow the owner to print the estimate. You should also provide the ability for the owner to clear the screen and exit the application.Your first step in developing the application is to ____.

meet with the client

The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potential clients for tutoring services. A tutoring session is a minimum of one hour, and the hourly rate varies based on the subject. The application should allow the owner to enter the client’s name, subject, number of tutoring sessions, and hourly rate. The application will display the total fee and allow the owner to print the estimate. You should also provide the ability for the owner to clear the screen and exit the application.How many buttons do you need for the application?

four

The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potential clients for tutoring services. A tutoring session is a minimum of one hour, and the hourly rate varies based on the subject. The application should allow the owner to enter the client’s name, subject, number of tutoring sessions, and hourly rate. The application will display the total fee and allow the owner to print the estimate. You should also provide the ability for the owner to clear the screen and exit the application.How many text boxes do you need for the application?

four

The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potential clients for tutoring services. A tutoring session is a minimum of one hour, and the hourly rate varies based on the subject. The application should allow the owner to enter the client’s name, subject, number of tutoring sessions, and hourly rate. The application will display the total fee and allow the owner to print the estimate. You should also provide the ability for the owner to clear the screen and exit the application.Which of the following statements would calculate and display the total fee?

lblTotalFee.Text = Val(txtNumberSessions.Text) * Val(txtRate.Text)

The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potential clients for tutoring services. A tutoring session is a minimum of one hour, and the hourly rate varies based on the subject. The application should allow the owner to enter the client’s name, subject, number of tutoring sessions, and hourly rate. The application will display the total fee and allow the owner to print the estimate. You should also provide the ability for the owner to clear the screen and exit the application.Which of the following statements is true about printing the estimate?

You must specify whether the estimate will be sent directly to the printer or to a PrintPreview window.

If the user enters $20 in the txtPrice control and 4 in the txtQuantity control, the Val(txtPrice.Text) * Val(txtQuantity.Text) expression will evaluate to ____.

0

In Windows applications, pressing the ____ and Tab keys simultaneously will move the focus backward.

Shift

In the mathematical expression 12 / 6 / 2, the answer is ____.

1

In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed first?

*

In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed last?

-

Short English-like phrases written to represent the steps a program must take to solve a particular problem are called ____.

pseudocode

The ____ function can be used to improve the appearance of the numbers displayed on a screen.

Format

The ____ function temporarily converts a string to a number, and then returns the number.

Val

The ____ method of a control will cause the focus on the screen to move to that control.

Focus

The ____ property of a control is used to specify the position of the text within the control.

TextAlign

The character used to create an access key by inserting it into a text property is ____.

&

The first step in planning an OO application is to ____.

identify the tasks the application needs to perform

The last step in planning an OO application is to ____.

draw a sketch of the user interface

The number of different colors used on a form should be limited to ____ colors exclusive of black, white, and gray.

three

The programming process begins with a meeting between the programmer and the client. Which of the following activities would be the last activity in the programming process?

Assemble the documentation.

A control’s ____ event occurs when a change is made to the contents of a control’s Text property.

TextChanged

A default button is identified by setting the form’s ____ property.

AcceptButton

A form’s CancelButton property specifies the button whose Click event procedure is processed when the user presses the ____ key.

Esc

A memory variable that is a Double data type requires ____ bytes of storage.

8

A variable name must begin with a letter or a(n) ____.

underscore (_)

A variable that was not assigned a specific data type is assigned the ____ data type.

Object

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.The data entered by the users is currently stored in properties of controls of the form. Your first task to improve the application is to ____.

declare variables for all of the input data

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.The pet’s temperature is recorded at every visit, and it may contain a decimal place. What data type is best for storing this data?

Double

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.The account number for each pet must be available to be used by all procedures in the form. You should make sure the account number is declared using the ____ keyword.

Private

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.The veterinarian wants to document and display the name of the technician who performs the initial evaluation of the pet. You decide to use an InputBox function to prompt the user to enter this data first. The InputBox function should be coded in the ____.

form’s Load event procedure

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.To simplify the coding of the InputBox function, the prompt and the title for the InputBox can be declared as ____ because they will not change while the application runs.

named constants

Date variables are automatically set to which value when created?

1/1/0001 12:00:00 AM

Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type.

TryParse

If Option Strict is set to On, which of the following statements will assign the contents of the txtLateFee control to a Decimal variable named decLateFee?

Decimal.TryParse(txtLateFee.Text, decLateFee)

Instead of storing data in the properties of various controls, programmers can create ____, which are memory locations inside the computer, to store data.

variables

Object and String variables are automatically initialized using ____.

the keyword Nothing (no data at all)

Specifying the number of decimal places and the special characters to display in a number is called ____.

formatting

The ControlChars.NewLine constant instructs the computer to ____.

advance the insertion point to the next line in a control

The ____ clause in an event procedure’s header indicates the object and event associated with the procedure.

Handles

The ____ of a variable determines where in the application’s code a variable can be used.

scope

The assignment operator in Visual Basic is the ____ symbol.

=

The line continuation character is a(n) ____.

underscore (_)

The strFirstName and strLastName variables contain the strings “Jane” and “Jones”, respectively. Which of the following statements will display a string as “Jones, Jane” (the last name, a comma, a space, and the first name) in the lblFullName control?

lblFullName = strLastName & ", " & strFirstName

When a button is selected, the computer processes the code contained in the button’s ____ event procedure.

Click

When using the Visual Basic 2012 InputBox function, which of the following is the Windows standard?

book title capitalization for the title and sentence capitalization for the prompt

A control’s ____ event occurs each time the user presses a key while the control has the focus.

KeyPress

A text box’s ____ event occurs when the text box receives the focus.

Enter

A variable that has ____ scope can be used anywhere within the procedure.

procedure

Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.Which of the following If clauses would evaluate to True and apply the 10% discount for a commercial customer?

If strCustomer = "C" AndAlso strMember = "Y"

Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.The application needs to display a message box to remind the clerk to ask customers to join the Rental Rewards Program when they check out. This message box should only display if the customer is not currently in the program. Which of the following If clauses would evaluate to True and display the message box for the clerk?

If strMember <> "Y" Then


If strMember = "N" Then

Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.The message provided when a customer is not a current member of the Rental Rewards Program is “Enroll this customer in the Rental Rewards Program?”. The clerk must enter a decision before the application can continue. Which of the message box buttons should be used?

YesNo

Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.The button selected by the clerk will determine the next task performed by the computer. The application is using the ____ of the MessageBox.Show method.

return value

Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.If a customer decides to enroll in the Rental Rewards Program, the Member Information Form displays for the clerk to enter the membership data for the customer. Which of the following statements sends the focus to the txtFirstName control and highlights any text within it?

txtFirstName.SelectAll()

Comparison operators are also referred to as ____ operators.

relational

Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3. Which operation is performed last?

AndAlso

Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3. Which operation is performed first?

^

Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3. Which operation is performed second?

*

If dblMiles >= 500 Then dblMiles = dblMiles * 0.45Else dblMiles = dblMiles * 0.25End IfThe dblMiles variable contains the number 575 before the code above is processed. What value will be in the variable after the code is processed?

258.75

If the intInventory variable contains the value 28, the condition If intInventory <= 25 Then will evaluate to ____.

False

If the intQuantity and decPrice variables contain the numbers 3 and 15.75, respectively, the condition If intQuantity > 0 AndAlso intQuantity < 10 OrElse decPrice > 20 will evaluate to ____.

True

In the MessageBox.Show(text, caption, buttons, icon[, defaultButton]) method, which of the following arguments controls the words appearing on the message box title bar?

caption

In the MessageBox.Show(text, caption, buttons, icon[, defaultButton]) method, which of the following arguments controls the words appearing in the message box?

text

In the MessageBox.Show(text, caption, buttons, icon[, defaultButton]) method, which of the following arguments controls the symbol appearing in the message box?

icon

Logical operators are sometimes referred to as ____ operators.

Boolean

The Backspace key is represented by the ____ constant.

ControlChars.Back

The ____ method displays a message box that contains text, one or more buttons, and an icon.

MessageBox.Show

The ____ operator expresses “not equal to.”

<>

The ____ operator is evaluated first in the following expression: 9 * 2 - 8 > 5 + 2 / 2.

*

The ____ operator is evaluated last in the following expression: 9 * 2 - 8 > 5 + 2 / 2.

>

To prevent a text box from accepting inappropriate characters, you first use the e parameter’s ____ property to determine the key that the user pressed.

KeyChar