Deck 1: Introduction to Programming and Visual Basic

Full screen (f)
exit full mode
Question
A TextBox control ________________.

A) is used to describe other controls on the form
B) can be used to display graphical images
C) has the same function as a label control
D) accepts text entered by the user
Use Space or
up arrow
down arrow
to flip the card.
Question
The purpose of an algorithm is to ____________.

A) analyze the nature of a problem
B) describe a set of steps to solve a problem
C) understand what a programming language does
D) list the elements needed for the user interface
Question
Programs should use comments (remarks) to __________________.

A) help human readers understand the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
Question
How would you display the Designer window if it is not visible in your project?

A) Press Shift+F9 on the keyboard
B) Click the Designer option in the View menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer in the Edit menu
Question
The standard toolbar ___________________________.

A) allows the programmer to place controls on the form
B) contains buttons that execute frequently used commands
C) is difficult to use, since you must remember the commands
D) allows the programmer to create user defined controls
Question
Why is it necessary to run a program using test data for input?

A) To verify there are no syntax errors in the program.
B) To verify that programming language elements are used correctly.
C) To verify the application produces correct results.
D) To see if the flowchart is correct.
Question
Which one of the following statements is true about a variable?

A) It performs various operations on data
B) It is a set of programming statements to perform a specific task
C) It is a storage location in memory represented by a name
D) It is a key element of the graphical user interface
Question
You can think of ________as the computer's working area, where variables are kept.

A) the CPU
B) main memory
C) secondary storage
D) the desktop
Question
All of the following are major hardware components of a typical computer system except ______.

A) Main Memory
B) CPU
C) Operating System
D) secondary storage
Question
A word that has a specific, predefined meaning in a programming language is called ______________.

A) a keyword
B) an operator
C) a variable
D) a comment
Question
How do you display a ToolTip?

A) single-click a button on the toolbar
B) double-click a button on the toolbar
C) hold the mouse pointer over a toolbar button for a few seconds
D) tab to the button on the toolbar so that it has the focus
Question
________simplify the process of writing instructions that can be translated to machine language.

A) Programming languages
B) Variables
C) Output devices
D) Graphical user interfaces
Question
Flowcharts are used to _________________________.

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the control flow in a method
D) check for syntax errors
Question
An object in Visual Basic ____________.

A) is also referred to as an event handler
B) is an attribute of a control
C) is an action performed by a method
D) contains data called properties
Question
The CPU processes instructions written in which one of the following languages?

A) Java
B) pseudo code
C) machine language
D) Visual Basic
Question
When creating a Visual Basic desktop application, the last task you must accomplish do is to ____________.

A) correct runtime errors
B) create the forms
C) write code for event procedures
D) correct syntax errors
Question
What is the purpose of the Toolbox window?

A) To create user defined methods.
B) To select controls and place them on a form
C) To select event procedures associated with a control
D) To select methods and place them on a form
Question
Application software refers to programs that ___________.

A) manage a computer's hardware devices
B) manage a computer's input and output
C) performs diagnostic tests on secondary storage
D) make the computer useful to the user
Question
The Auto Hide feature ____________________.

A) enables the programmer to hide a control on a form
B) permanently removes the Toolbox window from Visual Studio
C) hides the controls on a form until the programmer changes the status
D) causes a window to display as a tab along the edge of Visual Studio
Question
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control onto a form from the tool box
C) typing data into a text box
D) clicking a control
Question
The part of a program that users see and interact with is known as the ____________.

A) algorithm
B) properties
C) methods
D) user interface
Question
If you wish to display text which cannot be modified by the user, use the ____________.

A) TextBox control
B) Label control
C) Caption control
D) Name control
Question
A form is a ____________.

A) window in which other controls may be placed
B) box that displays text that cannot be changed by the user
C) piece of data that determines a characteristic of a control
D) control that displays a graphic image
Question
Control names may begin with a letter or a number.
Question
A programming statement must refer to a control by its ______property.

A) Text
B) Identifier
C) Name
D) Form
Question
Control names may not contain spaces.
Question
Which of the following is an example of a control?

A) Form
B) TextBox
C) Button
D) all of the above
Question
Which of the following is NOT a Visual Basic control?

A) Form
B) TextBox
C) Algorithm
D) Label
Question
In Visual Basic we work with objects, which have ________________.

A) programmer preference
B) projects and solutions
C) classes and actions
D) properties and methods
Question
Which of the following are valid steps for developing a Visual Basic application?

A) Determine event handlers needed for each control.
B) Determine the controls needed.
C) Create a flowchart of the code.
D) all of the above
Question
The most common form of secondary storage is ________________.

A) a disk drive
B) the CPU
C) RAM
D) all of the above
Question
The purpose of a compiler is to __________________.

A) Aid the programmer in commenting he/her code
B) Aid the programmer in developing GUIs.
C) Convert a program from a programming language to machine code
D) Assemble and package the documentation for an application
Question
Application software manages the computer's hardware devices.
Question
Which of the following is an example of a binary number?

A) 324
B) 123
C) 101
D) 202
Question
Which of the following words bests fills in the blank in this sentence? It is useful to think of a running program as a combination of states and _________.

A) variables
B) transitions
C) calculations
D) pseudocode
Question
Pseudocode is a combination of programming language and machine code.
Question
Properties determine the visual appearance of a control.
Question
Any control ________should have a descriptive, programmer-defined name.

A) used in a form
B) whose name appears in a programming statement
C) that is a label
D) with a text property
Question
A control is an object that usually appears in a program's graphical user interface.
Question
Which of the following adheres to the naming conventions for a text box control?

A) lblHoursWorked
B) txthoursworked
C) LBLhoursworked
D) txtHoursWorked
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Introduction to Programming and Visual Basic
1
A TextBox control ________________.

A) is used to describe other controls on the form
B) can be used to display graphical images
C) has the same function as a label control
D) accepts text entered by the user
D
2
The purpose of an algorithm is to ____________.

A) analyze the nature of a problem
B) describe a set of steps to solve a problem
C) understand what a programming language does
D) list the elements needed for the user interface
B
3
Programs should use comments (remarks) to __________________.

A) help human readers understand the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
A
4
How would you display the Designer window if it is not visible in your project?

A) Press Shift+F9 on the keyboard
B) Click the Designer option in the View menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer in the Edit menu
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
The standard toolbar ___________________________.

A) allows the programmer to place controls on the form
B) contains buttons that execute frequently used commands
C) is difficult to use, since you must remember the commands
D) allows the programmer to create user defined controls
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
Why is it necessary to run a program using test data for input?

A) To verify there are no syntax errors in the program.
B) To verify that programming language elements are used correctly.
C) To verify the application produces correct results.
D) To see if the flowchart is correct.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
Which one of the following statements is true about a variable?

A) It performs various operations on data
B) It is a set of programming statements to perform a specific task
C) It is a storage location in memory represented by a name
D) It is a key element of the graphical user interface
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
You can think of ________as the computer's working area, where variables are kept.

A) the CPU
B) main memory
C) secondary storage
D) the desktop
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
All of the following are major hardware components of a typical computer system except ______.

A) Main Memory
B) CPU
C) Operating System
D) secondary storage
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
A word that has a specific, predefined meaning in a programming language is called ______________.

A) a keyword
B) an operator
C) a variable
D) a comment
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
How do you display a ToolTip?

A) single-click a button on the toolbar
B) double-click a button on the toolbar
C) hold the mouse pointer over a toolbar button for a few seconds
D) tab to the button on the toolbar so that it has the focus
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
________simplify the process of writing instructions that can be translated to machine language.

A) Programming languages
B) Variables
C) Output devices
D) Graphical user interfaces
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Flowcharts are used to _________________________.

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the control flow in a method
D) check for syntax errors
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
An object in Visual Basic ____________.

A) is also referred to as an event handler
B) is an attribute of a control
C) is an action performed by a method
D) contains data called properties
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
The CPU processes instructions written in which one of the following languages?

A) Java
B) pseudo code
C) machine language
D) Visual Basic
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
When creating a Visual Basic desktop application, the last task you must accomplish do is to ____________.

A) correct runtime errors
B) create the forms
C) write code for event procedures
D) correct syntax errors
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
What is the purpose of the Toolbox window?

A) To create user defined methods.
B) To select controls and place them on a form
C) To select event procedures associated with a control
D) To select methods and place them on a form
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
Application software refers to programs that ___________.

A) manage a computer's hardware devices
B) manage a computer's input and output
C) performs diagnostic tests on secondary storage
D) make the computer useful to the user
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
The Auto Hide feature ____________________.

A) enables the programmer to hide a control on a form
B) permanently removes the Toolbox window from Visual Studio
C) hides the controls on a form until the programmer changes the status
D) causes a window to display as a tab along the edge of Visual Studio
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control onto a form from the tool box
C) typing data into a text box
D) clicking a control
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
The part of a program that users see and interact with is known as the ____________.

A) algorithm
B) properties
C) methods
D) user interface
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
If you wish to display text which cannot be modified by the user, use the ____________.

A) TextBox control
B) Label control
C) Caption control
D) Name control
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
A form is a ____________.

A) window in which other controls may be placed
B) box that displays text that cannot be changed by the user
C) piece of data that determines a characteristic of a control
D) control that displays a graphic image
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
Control names may begin with a letter or a number.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
A programming statement must refer to a control by its ______property.

A) Text
B) Identifier
C) Name
D) Form
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
Control names may not contain spaces.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following is an example of a control?

A) Form
B) TextBox
C) Button
D) all of the above
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following is NOT a Visual Basic control?

A) Form
B) TextBox
C) Algorithm
D) Label
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
In Visual Basic we work with objects, which have ________________.

A) programmer preference
B) projects and solutions
C) classes and actions
D) properties and methods
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following are valid steps for developing a Visual Basic application?

A) Determine event handlers needed for each control.
B) Determine the controls needed.
C) Create a flowchart of the code.
D) all of the above
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
The most common form of secondary storage is ________________.

A) a disk drive
B) the CPU
C) RAM
D) all of the above
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
The purpose of a compiler is to __________________.

A) Aid the programmer in commenting he/her code
B) Aid the programmer in developing GUIs.
C) Convert a program from a programming language to machine code
D) Assemble and package the documentation for an application
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
Application software manages the computer's hardware devices.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following is an example of a binary number?

A) 324
B) 123
C) 101
D) 202
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following words bests fills in the blank in this sentence? It is useful to think of a running program as a combination of states and _________.

A) variables
B) transitions
C) calculations
D) pseudocode
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
Pseudocode is a combination of programming language and machine code.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
Properties determine the visual appearance of a control.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
Any control ________should have a descriptive, programmer-defined name.

A) used in a form
B) whose name appears in a programming statement
C) that is a label
D) with a text property
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
A control is an object that usually appears in a program's graphical user interface.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following adheres to the naming conventions for a text box control?

A) lblHoursWorked
B) txthoursworked
C) LBLhoursworked
D) txtHoursWorked
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.