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
A word that has a specific 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
When creating a Visual Basic desktop application, the last thing you will do is __.

A) correct runtime errors
B) create the forms
C) write code for even procedures
D) correct syntax errors
Question
Flowcharts are used to .

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the flow of a method
D) check for syntax errors
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
The purpose of an algorithm is to __.

A) analyze the nature of a problem
B) list 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
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 on the VIEW menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer on the EDIT menu
Question
Application software refers to programs that _.

A) manage the computer's hardware devices
B) controls the computers input/output
C) performs diagnostic tests on secondary storage
D) make the computer useful to the user
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
You can think of ___as the computer's work area.

A) the CPU
B) main memory
C) secondary storage
D) the desktop
Question
The CPU processes instructions written only in this language.

A) Java
B) pseudo code
C) machine language
D) Visual Basic
Question
___were invented to make the process of encoding an algorithm in machine language easier.

A) Programming languages
B) Variables
C) Output devices
D) Graphical user interfaces
Question
The Auto Hide feature .

A) enables the programmer to hide a control on a form
B) permanently removes the toolbox from the Visual Basic environment
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
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
Why is it necessary to run a program using test data for input?

A) To be sure that 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
Programs should use comments remarks) to ___.

A) help the human reader of the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
Question
What is the purpose of the Toolbox?

A) To design user defined methods.
B) To select controls and place on an application's form
C) To select event procedures associated with a control
D) To select methods to be placed on the form
Question
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control to a form from the tool box
C) changing contents of a textbox
D) clicking a control
Question
A variable __.

A) performs various operations on data
B) is a set of programming statements to perform a specific task
C) is a storage location in memory represented by a name
D) is a key element of the graphical user interface
Question
A programming statement must refer to a control by its _property.

A) Text
B) Identifier
C) Name
D) Form
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
Control names may begin with a letter or a number.
Question
Microsoft Visual Basic is an object-oriented programming language.
Question
Pseudocode is a combination of programming language and machine code.
Question
The part of a program that users see and work with is known as the __.

A) algorithm
B) properties
C) methods
D) user interface
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 is an example of a binary number?

A) 324
B) 123
C) 101
D) 202
Question
Control names may not contain spaces.
Question
Which is considered a valid step 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
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
Application software manages the computer's hardware devices.
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
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
Properties determine the visual appearance of a control.
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
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
A word that has a specific meaning in a programming language is called ____.

A) a keyword
B) an operator
C) a variable
D) a comment
A
3
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
C
4
When creating a Visual Basic desktop application, the last thing you will do is __.

A) correct runtime errors
B) create the forms
C) write code for even procedures
D) correct syntax errors
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
Flowcharts are used to .

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the flow of a method
D) check for syntax errors
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
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
7
The purpose of an algorithm is to __.

A) analyze the nature of a problem
B) list a set of steps to solve a problem
C) understand what a programming language does
D) list the elements needed for the user interface
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
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 on the VIEW menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer on the EDIT menu
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
Application software refers to programs that _.

A) manage the computer's hardware devices
B) controls the computers input/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
10
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
11
You can think of ___as the computer's work area.

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
12
The CPU processes instructions written only in this language.

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
13
___were invented to make the process of encoding an algorithm in machine language easier.

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
14
The Auto Hide feature .

A) enables the programmer to hide a control on a form
B) permanently removes the toolbox from the Visual Basic environment
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
15
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
16
Why is it necessary to run a program using test data for input?

A) To be sure that 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
17
Programs should use comments remarks) to ___.

A) help the human reader of the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
What is the purpose of the Toolbox?

A) To design user defined methods.
B) To select controls and place on an application's form
C) To select event procedures associated with a control
D) To select methods to be placed on the form
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control to a form from the tool box
C) changing contents of a textbox
D) clicking a control
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
A variable __.

A) performs various operations on data
B) is a set of programming statements to perform a specific task
C) is a storage location in memory represented by a name
D) 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
21
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
22
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
23
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
24
Microsoft Visual Basic is an object-oriented programming language.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
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
26
The part of a program that users see and work 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
27
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
28
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
29
Control names may not contain spaces.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
Which is considered a valid step 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
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
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
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
35
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
36
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
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
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
39
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
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.