Visual Basics Final
1 / 47
Term:
Definition:
Show example sentence
Show hint
Keyboard Shortcuts
  • Previous
  • Next
  • F Flip card

Complete list of Terms and Definitions for Visual Basics Final

Terms Definitions
_____________________ can be used to override the order of operations. Parentheses
Decision making is never more complicated than selecting one of two paths? False
What function converts an expression to an integer> CInt
a(n) ________ variable is declared inside a procedure local
visual studio's _______ window indicates the name of the project you are working on while you are in design mode title bar
Logical operators are used with True and False values? True
Chapter 3  18.) Variables declare within a button's click-event are ____ variables.   Multiple choice options-local-module-level-namespace-private Chapter 3  18.) Variables declare within a button's click-event are ____ variables.   Multiple choice options+localno-module-level-namespace-private Logic:Module-level variables: AKA class-level variables, are accessible from all procedures of a form.Local variable: used only within the procedure in which it is declared.  
What are words that have special meaning in a programming language? Keyword
What property holds the number of elements in an array? Length
What is finding and fixing programming errors? debugging
In you want to execute code automtically when a form is displayed, what event procedure would you place in form? Load
The = symbol is called what Assignment Operator
you define a button's access key through its ________ property text
Since computers can't be programmed in natural human language, algorithms must be written in a(n) __________ language. programming
A program is a set of _______ instructions
The _____ event occurs when the contents of a text box have changed. a.  Change b.  Changed c.  Text d.  TextChange e.  TextChanged  e.  TextChanged
Text boxes cannot accept data from a user. False
What is a special loop designed specifically to access values from array are accessed with a common subscript? For Each
Which type of statement causes a procedure to execute? Procedure Call
This method will empty out all the items in the list box. Items.Clear
Which of the following is a property whose value is the number of elements in an array? Length
a(n) ________ is a storage location in the computer's memory, used for holding information while the program is running variable
The rules that must be followed when constructing a program are called syntax
Chapter 3    16.) Where should the statment: Const ACCOUNT_NUMBER_String As String = "A45"  appear if you plan to use ACCOUNT_NUMBER_String in more than one procedure?  Multiple choice options-The Declarations section of the form-The Form_Load pro Chapter 3    16.) Where should the statment: Const ACCOUNT_NUMBER_String As String = "A45"  appear if you plan to use ACCOUNT_NUMBER_String in more than one procedure?  Multiple choice options+The Declarations section of the formno-The Form_Load procedure-The event procedure where ACCOUNT_NUMBER_String will be used-The Namespace Constants file Logic: (Page 111)Declaration: Statements establish your project's variables and constants, give them names, and specify the type of data they will hold. 
Chapter 2     15. You can vertically align a group of controls on your form by first selecting all of the controls to be aligned, and then _______. A) setting their Size property to the same value B) selecting "Make Same Size" from the Layout toolba Chapter 2     15. You can vertically align a group of controls on your form by first selecting all of the controls to be aligned, and then _______. -----C)choosing Align Lefts from the Layout toolbar Logic: Feature aligns the left side of each object according to the first or last object selected to be aligned
What property causes a control to be positioned directly against one of the form's edges> Dock Property
Because only one radio button in a group can be selected at any given time, they are what? Mutually Exclusive
Which of the following is a debugging command that causes a Sub procedure or function to execute without single-stepping through the procedure's or function's code? Step Over
txtInput.Clear() You can also clear a text box by storing an empty string in it’s Text property. You do this with a statement similar to:
a(n) ___________ is part of an applications code but is ignored by the compiler remark or comment
Chapter 2 Chapter 2   41. Small labels that pop up when the user pauses the mouse pointer over a control on the form are created by _______.  A) using the Focus method  B) changing the object's Text property to True  C) setting the object's Tool Chapter 2   41. Small labels that pop up when the user pauses the mouse pointer over a control on the form are created by _______.  C)--- setting the object's ToolTip on ToolTip1 property 
The data in a list box is stored with what property? Items
Briefly describe what an event-driven program is. Event-driven programs respond to events. An event is an action that takes place, such as the clicking of a button with the mouse. When an event occurs, the application responds by executing a special type of method known as an event procedure.
Which of the following statements prompts the user for the name of a city, and then correctly assigns the user's response to a String variable named cityName?   a.  InputBox("Enter the city:", "City") = cityName b.  cityName = chr(InputBox("Enter the c c.  cityName = InputBox("Enter the city:", "City")
Chapter 2    25. You are designing a form and you need a control that will be used for the user to type a brief summary of his work experience. You want to allow formatting options and multiple lines. The best control for this task would be a _______. Chapter 2    25. You are designing a form and you need a control that will be used for the user to type a brief summary of his work experience. You want to allow formatting options and multiple lines. The best control for this task would be a _______. A) MaskedTextBox B) -----RichTextBox noC) TextBox D) GroupBox Logic: Rich text box is a text box that allows advance editing features which include formatting.
 30. The Visual Studio environment contains many different windows. Which window will be the user interface when the project is running?  A) The Form Designer window  B) The Solution window  C) The Toolbox  D) The Properties window  30. The Visual Studio environment contains many different windows. Which window will be the user interface when the project is running?  A)---- The Form Designer window  B) The Solution window  C) The Toolbox  D) The Properties window
Chapter 3  19.) If a procedure contains a Dim statement and NameString is assigned as the identifier, NameString can be used _____.    Multiple choice options-anywhere in the project-only in the procedure where the Dim statement is shown-anywhere in Chapter 3  19.) If a procedure contains a Dim statement and NameString is assigned as the identifier, NameString can be used _____.    Multiple choice optionsno-anywhere in the project+only in the procedure where the Dim statement is shown-anywhere in the project if the variable name is changed to NAME_String-Only once in the procedure Logic:Local variable: used only within the procedure in which it is declared.This dim statement being declared in a procedure makes it a local variable, I believe  
Concatenation prevents you from adding text to an existing string of code. False, concatenation allows you to "join" strings using the & symbol
txtInput.Text = "" What is the focus when referring to a running application?
 17. Which of the following are coding conventions required by the textbook?  A) Every event procedure must include remarks.  B) Remarks must be included in the Declarations section.  C) All objects (except labels not referred to in code) must be  17. Which of the following are coding conventions required by the textbook?  D)---- All of these  
Chapter 3   28.) What will be the value of AnswerInteger after execution of the following line of code?Assume that NumberAInteger = 6, NumberBInteger = 4, NumberCInteger = 2AnswerInteger = (NumberAInteger / NumberBInteger) * (NumberAInteger / NumberCIn Chapter 3   28.) What will be the value of AnswerInteger after execution of the following line of code?Assume that NumberAInteger = 6, NumberBInteger = 4, NumberCInteger = 2AnswerInteger = (NumberAInteger / NumberBInteger) * (NumberAInteger / NumberCInteger)  Multiple choice options-6+30-27-None of these  
 27. Which of the following choices CANNOT be used to start running a project?  A) Open the Debug menu and choose Start Debugging.  B) Press F5.  C) Press and hold the CTRL key and then press the S key.  D) Press the Start Debugging button on th  27. Which of the following choices CANNOT be used to start running a project?  A) Open the Debug menu and choose Start Debugging.  B) Press F5.  C) ---Press and hold the CTRL key and then press the S key.  D) Press the Start Debugging button on the toolbar.
How many elements can be stored in the following array? Dim sngGrades (2,3) As Single
What is the difference between main memory and secondary storage? Main memory (RAM) is usually a volatile type of memory, used only for temporary storage. When the computer is turned off, the contents of main memory are erased. Secondary storage is a type of memory that can hold data for long periods of time – even when there is no power to the computer. Frequently used programs are stored in secondary memory, and loaded into main memory as needed.
In Visual Basic, we work with objects that have _______. A) Programmer preference B) Projects, solutions, and proceduresC) Classes, actions, and disciplinesD) Properties, methods, and events In Visual Basic, we work with objects that have _______. Ans: Properties, methods, and events Logic:-Properties: control the behavior of an object, such as its name, color, size or location.-Methods: Actions associated with objects are called methods. Some typical methods are close, show, and clear.-Events: An event occurs when the user takes an action such as clicking a button, pressing a key, scrolling or closing a window. i.e. A users can click a button, a button is an object, which is why events and objects are related the relation.
How do you clear the contents of a text box? By calling the text box’s Clear method, such as:
Chapter 2    5. If you want a form to be centered on the screen when it first appears, you must set the _______ property of the Form.  A) StartPosition  B) WindowState  C) Maximized  D) Centered Chapter 2    5. If you want a form to be centered on the screen when it first appears, you must set the _______ property of the Form.  A)--- StartPosition