Visual Basic Mid Term study guide

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is a label control? What are two requirements for the text contained in a label control? Should a label control's identifying key include an access key? Why or why not?

A label control is the control used to display the text that the user is not allowed to edit while an application is running. The two requirements for text contained in a label control are that the text must be left aligned and meaningful. The identifying key should include an access key because it allows people with disability.

Define "focus." How do "focus" and "tab order" relate to each other?

Focus indicates that a control is ready to accept user input. The TabIndex values determine the tab order, which is the order in which each control receives the focus when the user either presses the Tab key or employs an access key while an application is running.

List the five steps you should follow when planning a Windows Form application. Be sure to put the steps in the proper numeric order (1 through 5).

Identify applications purpose Identify items that the user must provide Identify items that the application must porvide Determine how the user and the application will provide their respective items Draw a sketch of the user interface

1. What is sentence capitalization? How is it used in developing a user interface?

Sentence capitalization means that you capitalize only the first letter int he first word and in any words that are customarily capitalized. Used in identifying labels and buttons.

Explain how to set the tab order in an application.

To set the tab order in an application, first you go to view, then click tab order to see which tabs go to which label or button. Next click on each tab location and change the order in the properties widow under tab order to appropriate sequence

A ____ provides an area in the form for the user to enter data. Select one: a. TextBox b. button c. CheckBox d. label

a

A control's ____ event occurs when a change is made to the contents of a control's Text property. Select one: a. TextChanged b. CodeChanged c. TextModified d. ChangedText

a

A label control used to display output should use which of the following BorderStyle settings? Select one: a. FixedSingle b. Fixed3D c. Sizable d. No BorderStyle (None)

a

A(n) ____ is a block of code that performs a specific task. Select one: a. sub procedure b. class c. event d. form

a

A(n) ____ is a container that stores the projects and files for an entire application. Select one: a. solution b. package c. window d. interface

a

A(n) __________ in the name of a form indicates a hierarchy of namespaces to allow the computer to locate the Form class in a computer's main memory. Select one: a. dot member access operator b. colon c. backslash d. apostrophe

a

Case 1 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 company logo and to say "Ridgeline Realty" in the title bar, and he doesn't want users to be able to change the size of the form. To make sure the title bar displays the text that Ridgeline Realty has requested, enter it into the form's _________. Select one: a. Text property b. Name property c. Title property d. Title field

a

Case 1 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 company logo and to say "Ridgeline Realty" in the title bar, and he doesn't want users to be able to change the size of the form. To create the Windows application for Ridgeline, you will first need to ____. Select one: a. create a New Project and determine the directory for the solution b. auto-hide any windows you do not need to use c. set the StartPosition for the form d. code the Exit button

a

Case 1: BrainPower Tutoring The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should allow users to enter their name, subject, preferred appointment time, and phone number, and submit their request. It should also allow them to print their appointment request, clear the screen, and exit the application. The tutoring center has some clients with visual impairments, so the application should be easy for them to use. How many buttons do you need for the application? Select one: a. four b. two c. one d. three

a

Case 1: BrainPower Tutoring The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should allow users to enter their name, subject, preferred appointment time, and phone number, and submit their request. It should also allow them to print their appointment request, clear the screen, and exit the application. The tutoring center has some clients with visual impairments, so the application should be easy for them to use. Your first step in developing the application is to ____. Select one: a. identify that application's purpose b. plan the application c. draw a sketch of the user interface d. assemble the documentation

a

Case 1: PetPals 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. Select one: a. Private b. Dim c. Public d. Val

a

Case 1: PetPals 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? Select one: a. Double b. Integer c. Decimal d. String

a

Each object has a set of attributes, called ____, that determine the object's appearance and behavior. Select one: a. properties b. events c. codes d. global settings

a

Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type. Select one: a. TryParse b. Convert c. Format d. Number

a

In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed first? Select one: a. * b. + c. - d. /

a

String variables are automatically initialized using ____. Select one: a. the keyword Nothing (no data at all) b. the word "Nothing" c. spaces d. 0

a

The Windows ____ window allows you to create the graphical user interface for your application. Select one: a. Designer b. Form Designer c. Solution Designer d. Property

a

The ____ function key will start a Visual Basic 2017 application in the IDE. Select one: a. F5 b. F3 c. F4 d. F2

a

The ____ of a variable indicates where the declared memory location can be used in an application's code. Select one: a. scope b. extent c. type d. dimension

a

The ___________ symbol in a flowchart represents input tasks and output tasks. Select one: a. parallelogram b. diamond c. rectangle d. oval

a

The ___________ symbol in a flowchart represents tasks such as ending the application and making calculations. Select one: a. rectangle b. oval c. parallelogram d. diamond

a

The first step in planning a Windows Form application is to ____. Select one: a. Identify the application's purpose b. Identify the items that the user must provide c. draw a sketch of the user interface d. identify the items that the application must provide

a

The number of different colors used on a form should be limited to ____ colors exclusive of black, white, and gray. Select one: a. three b. four c. two d. five

a

The symbol used in code for assignment is the ____ symbol. Select one: a. = b. < c. ^ d. ˜

a

The text box property that specifies the color of the text inside the text box is called the ____ property. Select one: a. ForeColor b. CharacterColor c. TextColor d. FontColor

a

To keep you from inadvertently moving controls as you work in the IDE, click the form or control, then click the _________ option in the Format menu. Select one: a. Lock Controls b. Hold c. Freeze Controls d. Protect

a

When you click the ellipsis (...) button in the Settings box of the Font property, ____. Select one: a. a dialog box opens b. the attribute is removed c. a color palette appears d. a list of font styles appears

a

Which of the following is a true statement? Select one: a. To have the computer close the current form when the user clicks the Exit button, the Me.Close() statement should be entered in a button's Click event procedure . b. The Minimize button can be removed from the title bar without removing the Maximize button from the title bar. c. By default, the size of a form cannot be changed by a user while an application is running. d. The title bar cannot be removed from an application.

a

Which of the following is not a commonly used property of a label control form? Select one: a. LabelSize b. BorderStyle c. AutoSize d. TextAlign

a

Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places? Select one: a. lblPay.Text = dblPay.ToString("C0") b. lblPay.Text = dblPay.ToString(C0) c. lblPay.Text = dblPay.ToCurrency("C0") d. lblPay.Text = dblPay.ToString("C2")

a

You can use ____ to override the arithmetic order of preference. Select one: a. parentheses b. brackets c. braces d. asterisks

a

A Visual Basic 2017 solution file will have a(n) ____ file extension. Select one: a. .frm b. .sln c. .app d. .net

b

A ____ is the general shape of the characters in the text. Select one: a. property b. font c. splash d. format

b

A label control's ____ property determines whether the control automatically sizes to fit its current contents. Select one: a. Fit b. AutoSize c. TextAlign d. MiddleCenter

b

All objects in an object-oriented program are instantiated (created) from a(n) ____. Select one: a. source b. class c. method d. object

b

Aside from letters and numbers, a variable name in Visual Basic can only contain the _________ character. Select one: a. ampersand (&) b. underscore (_) c. percent sign (%) d. exclamation mark (!)

b

Case 1 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 company logo and to say "Ridgeline Realty" in the title bar, and he doesn't want users to be able to change the size of the form. An example of a valid value for the form's Name property is ____. Select one: a. formridgeline b. frmRidgeline c. Ridgeline d. form Ridgeline

b

Case 1 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 company logo and to say "Ridgeline Realty" in the title bar, and he doesn't want users to be able to change the size of the form. To prevent users of the application from changing the size of the form. you must set the FormBorderStyle property to ____. Select one: a. False b. FixedSingle c. Sizable d. Zero

b

Case 1: BrainPower Tutoring The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should allow users to enter their name, subject, preferred appointment time, and phone number, and submit their request. It should also allow them to print their appointment request, clear the screen, and exit the application. The tutoring center has some clients with visual impairments, so the application should be easy for them to use. Which of the following statements is true about the user interface? Select one: a. The interface should use a different font for each field to keep users from being confused. b. The interface should be designed using black text on a white background. c. The interface should include a text-to-speech reader. d. The interface should use plenty of colors to appeal to young clients.

b

Each data type is a class from which a variable can be ____. Select one: a. implied b. instantiated c. copied d. inferred

b

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? Select one: a. decLateFee = Convert.ToDecimal(txtLateFee) b. Decimal.TryParse(txtLateFee.Text, decLateFee) c. TryParse.Decimal(txtLateFee.Text, decLateFee) d. decLateFee = txtLateFee.Text

b

In Windows applications, a(n) ____ is commonly used to perform an immediate action when clicked. Select one: a. Object b. Button c. Menu d. Form

b

In a group of buttons, which button should appear first? Select one: a. the one with the shortest caption b. the most commonly used c. they should be arranged alphabetically d. the least commonly used

b

In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed last? Select one: a. / b. - c. + d. *

b

Short English-like phrases written to represent the steps a program must take to solve a particular problem are called ____. Select one: a. flowcharts b. pseudocode c. object code d. macro code

b

Specifying the number of decimal places and the special characters to display in a number is called ____. Select one: a. shredding b. formatting c. concatenating d. designing

b

The TabIndex value assigned to a text box's identifying label must be _______________ for the text box's access key to work ly. Select one: a. equal to the value assigned to the text box itself b. one number less than the value assigned to the text box itself c. no greater than 10 d. one number more than the value assigned to the text box itself

b

The ____ property of a control is used to specify the position of the text within the control. Select one: a. AlignText b. TextAlign c. Justify d. Alignment

b

The ___________ symbol indicates the beginning and end of a flowchart. Select one: a. diamond b. oval c. rectangle d. parallelogram

b

The assignment operator in Visual Basic is the ____ symbol. Select one: a. > b. = c. < d. ^

b

The character used to create an access key by inserting it into a text property is ____. Select one: a. ˜ b. & c. ^ d. <

b

The label control property that specifies the color of the text inside a label is called the ________ property. Select one: a. CharacterColor b. ForeColor c. FontColor d. TextColor

b

The last step in planning a Windows Form application is to ____. Select one: a. identify the tasks the application needs to perform b. draw a sketch of the user interface c. identify the objects to which tasks will be assigned d. identify the event required to trigger an object to perform its assigned tasks

b

The only controls that typically do not have access keys assigned to them in Windows applications are ___________. Select one: a. OK and Exit b. OK and Cancel c. Exit and Cancel d. OK and Next

b

The position of the form on the screen when an application first starts is controlled by setting the ____ property. Select one: a. Position b. StartPosition c. Location d. Size

b

Which of the following statements declares a Double variable named dblAverage? Select one: a. Dim As Double dblAverage b. Dim dblAverage As Double c. Const dblAverage As Constant d. Dim dblAverage As Single

b

Which of the following statements declares a class-level variable? Select one: a. Dim dblHeight As Double b. Private dblHeight As Double c. Private Dim dblHeight As Double d. Class dblHeight As Double

b

Which of the following statements formats the contents of the txtSalesTax control with a percent sign and two digits to the right of the decimal? Select one: a. txtSalesTax.Text = Format("Percent", txtSalesTax.Text) b. txtSalesTax.Text = Format(txtSalesTax.Text, "Percent") c. txtSalesTax.Text = Format(txtSalesTax, "Percent") d. txtSalesTax.Text = Format(txtSalesTax, "Fixed")

b

You can tell whether a control has a TabIndex property by viewing its ____________ list. Select one: a. Formatting b. Properties c. Tabs d. Styles

b

A memory variable that is a Double data type requires ____ bytes of storage. Select one: a. 2 b. 4 c. 8 d. 6

c

A user ____ is what the user sees and interacts with while an application is running. Select one: a. service b. profile c. interface d. splash

c

An access key allows the user to select an object using the ____ key in combination with a letter or number. Select one: a. Shift b. Tab c. Alt d. Backspace

c

Buttons are identified in an interface by their _________. Select one: a. title b. name c. caption d. ID

c

Case 1 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 company logo and to say "Ridgeline Realty" in the title bar, and he doesn't want users to be able to change the size of the form. To add the image of the company logo, you must first add a ________ in which to display it. Select one: a. picture form b. image form c. picture box d. image box

c

Case 1: BrainPower Tutoring The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should allow users to enter their name, subject, preferred appointment time, and phone number, and submit their request. It should also allow them to print their appointment request, clear the screen, and exit the application. The tutoring center has some clients with visual impairments, so the application should be easy for them to use. How many text boxes do you need for the application? Select one: a. six b. three c. four d. five

c

Case 1: PetPals 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 ____. Select one: a. rename the controls b. change the layout of the form c. declare variables for all of the input data d. add a colorful logo to the form

c

In Windows applications, pressing the ____ and Tab keys simultaneously will move the focus backward. Select one: a. Ctrl b. Ctrl+Shift c. Shift d. Alt

c

In the mathematical expression 12/6/2, the answer is ____. Select one: a. 3 b. 4 c. 1 d. 2

c

Labels that display __________ typically have their AutoSize property set to False. Select one: a. commands b. FAQs c. program output d. identities

c

The ____ property determines the order in which each control receives the focus. Select one: a. NextControl b. PrevControl c. TabIndex d. GetFocus

c

The file within a Visual Basic application that can be run outside of the IDE has a(n) ____ file extension. Select one: a. .vb b. .src c. .exe d. .sln

c

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) ____. Select one: a. sub-program b. object function c. event procedure d. subroutine

c

The text contained in a label control that identifies another control's contents should be meaningful and _______________ within the label. Select one: a. right-aligned b. justified c. left-aligned d. centered

c

The toolbox Window ______________. a. displays the names of projects and files included in a solution b. displays data connections and servers c. displays the tools you use when creating your application's interface d. displays the classes, methods, and properties included in a solution

c

To employ an access key, press and hold down the ____ key as you tap the access key. Select one: a. Scroll b. Tilde (˜) c. Alt d. Backslash

c

To show or hide the access keys in your menu bar, press the ______ key(s) on your keyboard. To size a form using the keyboard, you can select the form and press and hold the ____ key(s), and then press one of the arrow keys on the keyboard. Select one: a. Alt b. Ctrl c. Shift d. Ctrl+Shift

c

To start an application using the menu bar, you click ____ on the menu bar and then click Start Debugging. Select one: a. PROJECT b. VIEW c. DEBUG d. BUILD

c

When a button is selected, the computer processes the code contained in the button's ____ event procedure. Select one: a. On b. Press c. Click d. Submit

c

When an application is being designed for a company, Windows interface standards can be superseded by ______________. Select one: a. usability standards b. the preference of the users c. the company's interface standards d. the graphic designer

c

When an application is started, Visual Basic 2017 will automatically create a file that has the project name and a(n) ____ file extension. Select one: a. .suo b. .sln c. .exe d. .dll

c

When designing an interface, you should use no more than ____________ different font sizes. Select one: a. Three b. Four c. Two d. One

c

When you want the application to end when the user clicks the Exit button, you write the following code: ____. Select one: a. Me.End() b. Me.Stop() c. Me.Close() d. Me.Terminate()

c

Which of the following can store a number containing a decimal place? Select one: a. String b. Long c. Double d. Integer

c

Which of the following is the sequence of events when planning a windows form application? Select one: a. Meet with the user, identify the items that the user must provide, identify the items that the application must provide, determine how the user and the application will provide their respective items. b. Draw a sketch of the user interface, meet with the user, identify the items that the user must provide, identify the items that the application must provide, determine how the user and the application will provide their respective items. c. Identify the application's purpose, identify the items that the user must provide, identify the items that the application must provide, determine how the user and the application will provide their respective items, draw a sketch of the user interface. d. Identify the users' needs, draw a sketch of the user interface, identify the items that the user must provide, identify the items that the application must provide, determine how the user and the application will provide their respective items.

c

You create a named constant using the ____ statement. Select one: a. ConstantFixed b. Perm c. Const d. Fixed

c

You declare a class-level variable using the ____ keyword. Select one: a. Dim b. Static c. Private d. Mod

c

You enter the procedure's code in the ____ window. Select one: a. Server b. Designer c. Code Editor d. Solution

c

You use a(n) ________ to display an image on a form. Select one: a. Form box b. Object box c. Picture box d. Image box

c

A form's ____ property specifies the text that appears in the form's title bar. Select one: a. Caption b. Values c. Label d. Text

d

A(n) ____ is a predefined procedure that you can call (or invoke) when needed. Select one: a. object b. event c. class d. method

d

Case 1: BrainPower Tutoring The owner of BrainPower Tutoring needs an application that clients can use to request an appointment. The application should allow users to enter their name, subject, preferred appointment time, and phone number, and submit their request. It should also allow them to print their appointment request, clear the screen, and exit the application. The tutoring center has some clients with visual impairments, so the application should be easy for them to use. Which of the following controls should receive access keys? Select one: a. phone number b. subject c. name d. all of the above

d

Each access key in an interface should be _____________. Select one: a. in alphabetical order b. a vowel c. an integer d. unique

d

The Solution Explorer window ____. Select one: a. displays the classes, methods, and properties included in a solution b. displays items that you can use when creating a project c. displays data connections and servers d. displays a list of the projects contained in the current solution

d

To align two or more selected controls along their left, right, top, or bottom borders, you would use the ____ menu. Select one: a. Edit b. View c. Align d. Format

d

To verify that a solution has been closed, you can look in the ____. Select one: a. Server Explorer b. Start Page c. Class View d. Solution Explorer

d

Use a ____ to display text that a user is not allowed to edit during run time. Select one: a. read-only command b. text control c. none of the above d. label control

d

Which of the following is an example of an appropriate name for a control? Select one: a. housepicturebox b. BtnMessage c. labelmessage d. btnExit

d

Which of the following is not a commonly used property of a text box? Select one: a. Multiline b. BackColor c. ScrollBars d. Description

d


Ensembles d'études connexes

Mental Health ATI Edition 11 Reveiw

View Set

12.1 Sampling, Frequency Distributions, and Graphs

View Set

Personal Finance Unit 6 Fraud and Identify Theft.

View Set

BJU cultural geography chapter 12 Eastern Europe

View Set

Psy 316: Cognitive Psychology, Ch. 4- Attention

View Set