Hardware: correct answers - Central Processing Unit (CPU)
- Main memory (or Random Access Memory [RAM])
- Secondary storage
- Input devices
- Output devices
Software: correct answers - Systems software (typically Operating Systems [OS])
- Applications software (e.g., word processing, spreadsheet, database software)
Low-level Program Language correct answers o Machine language (1/GL)
o Assembly language (2/GL)
High-level Program Language correct answers o Procedural (3/GL)
o Non-procedural (4/GL)
o Event-driven / Object-oriented
Object correct answers An item that contains data (known as properties or attributes) and has the
ability to perform actions (known as methods). Forms, buttons, textboxes, and other "controls"
are specific types of objects.
Object.<fill-in> correct answers • Properties - used to describe attributes of the object (e.g.,
name, color, size)
- Format: Object.Property (e.g., Form1.Text; frmSales.Text)
• Methods - used to describe actions associated with the object (e.g., Show, Hide, Clear)
- Format: Object.Method (e.g., Button1.Hide; btnExit.Hide; frmSales.Show; Me.Close)
• Events - procedures that execute when a particular event occurs (e.g., clicking a button,
pressing a key, or closing a window)
IDE correct answers • An integrated development environment (IDE) comprising several
languages including Visual Basic, Visual C++, Visual C#, Visual F#, JScript, and the .NET
Framework
-Main window in VB
.NET Framework: correct answers o Allows objects from different languages to operate together
o Standardizes how the languages refer to data and objects
Terminate a Project correct answers Me.Close( )
Syntax Error correct answers (Easiest) Error from the rules of the language
Logic Error correct answers (Hard)
Example: If GPA > 3.0 Then -> Instead If GPA < 3.0 Then
Run-time (Exceptions) correct answers (Hardest)(reasons) run out of disk space. Math error.
, Debug Program correct answers Obtain a clean compile
Camel Casing correct answers lblSalary; txtName; btnCalculate
Form correct answers Where the graphical user interface (GUI) is designed
Text Alignment correct answers • Text can be aligned using the TextAlign property, whose
values are:
- HorizontalAlignment.Left; HorizontalAlignment.Right; HorizontalAlignment.Center
e.g., txtName.TextAlign = HorizontalAlignment.Center
Check Boxes correct answers • For selecting or deselecting options
• Checked property set to False if unchecked or True if checked
• Text property can be used to assign identity to each check box
• CheckedChanged event can be coded to take appropriate action
Radio Buttons correct answers • Used when only one button of a group may be selected
• Checked property set to False if unselected or True if selected
• Text property can be used to assign identity to each radio button
• CheckedChanged event can be coded to take appropriate action
Picture Box correct answers • Image can be made to fit into the Picture Box by setting the
SizeMode property to StretchImage
• Image can be made to appear or disappear by setting the Visible property to True or False,
respectively
• Best to add images to the project's resources; then assign the resource to the Image property of
the PictureBox
Clearing text boxes correct answers -lblResult.Text = ""
-txtAddress.Text = ""
-txtAddress.Clear( ) Note: The "Clear" method only works for text boxes
-lblName.Text = String.Empty
Resetting the focus correct answers txtName.Focus( )
Setting the Checked property of check-boxes and radio buttons correct answers -
radClass.Checked = True
- chkBold.Checked = False
Changing text color correct answers - Use ForeColor property (e.g., lblAddress.ForeColor =
Color.Blue)
Enable/Disable controls correct answers - btnCalculate.Enabled = False