SSL Certificate
  • What value is stored in the variable Result


What value is stored in the variable Result, after the following statements have executed? ____


Private Result As Boolean
Private Value As String = "$123,444.50"
Result = IsNumeric(Value)
Question 13 answers
False
True
123444.50
None of the above


Question 14 text Question 14 1 points Save
When does the code in the Catch block of a structured exception handler execute? ____
Question 14 answers
At run-time, when the main form loads.
This code typically generates an exception so it can execute at any time while the program runs.
The code always executes whether an exception occurs or not.
This code executes when an exception occurs.


Question 15 text Question 15 1 points Save
The ComboBox and ListBox controls are derived from the ____ class.
Question 15 answers
Items
ListControl
ListGroup
ItemCount


Question 16 text Question 16 1 points Save
Given the following For loop, what value is stored in the variable Result after the loop executes? ____


Dim Counter As Integer
Dim Result As Integer = 1
For Counter = 0 to 11 Step 2
Result += 1
Next
Question 16 answers
6
12
11
None of the above


Question 17 text Question 17 1 points Save
What is the name of the loop statement that causes the condition in a Do loop to be tested immediately? ____
Question 17 answers
Exit Do
Continue
Test
Jump


Question 18 text Question 18 1 points Save
What value is stored in the variable Result after the following Do loop executes? ____


Dim Counter As Integer = 0
Dim Result As Integer = 0
Do While Counter < 5
Counter = Counter + 3
Result = Result + 3
Loop
Question 18 answers
6
9
The preceding statements will cause a syntax error.
None of the above


Question 19 text Question 19 1 points Save
Which of the following statements correctly references the first row and first column in the DataGridView control instance named dgvQuestion? ____
Question 19 answers
Console.WriteLine(dgvQuestion.Rows(0).Cells(0).Value)
Console.WriteLine(dgvQuestion.Rows(1).Cells(1).Value)
Console.WriteLine(dgvQuestion.Rows(0).Columns(0).Value)
Console.WriteLine(dgvQuestion.Columns(0).Rows(0).Value)


Question 20 text Question 20 1 points Save
What is the file suffix used with a Visual Basic module file?
Question 20 answers
.mod
.vb
.vbm
.doc


Question 21 text Question 21 1 points Save
Using the Visual Studio IDE, how do you set the application’s startup object (entry point)?
Question 21 answers
Use the Options dialog box.
Use the EntryPoint attribute for the procedure designated as the startup procedure.
Set the EntryPoint property for the solution.
Use the Project’s property page.


Question 22 text Question 22 1 points Save
Which of the following are Help system windows?
Question 22 answers
Contents, Index, Search
Hierarchical, List, Find
Hyperlink, Find
Pages, Links


Question 23 text Question 23 1 points Save
Which of the following controls can be contained by the ToolStrip control?
Question 23 answers
ToolStripListBox
ToolStripComboBox
ToolStripScrollBar
ToolStripCheckBox


Question 24 text Question 24 1 points Save
Referring to the RichTextBox control, which of the following statements is correct of the insertion point and selection?
Question 24 answers
The Selection object is an array. There is one array element for each block of selected text.
The terms insertion point and selection are synonymous.
Formatting attributes are applied to the insertion point or the selection.
The RichTextBox control supports the InsertionPoint object, which is used to set the insertion point.


Question 25 text Question 25 1 points Save
Which two properties of a ToolStripMenuItem are used to configure and display shortcut keys?
Question 25 answers
ShowShortCuts, ShowKeys
Shortcuts, Enabled
ShortcutKeys, ShowShortcutKeys
Keys, Enabled


Question 26 text Question 26 1 points Save
Which of the following statements is correct of the ToolStripStatusLabel control?
Question 26 answers
Unlike the Label control, the end user can edit the contents of the ToolStripStatusLabel.
It’s properties are identical to those of the Label control.
The size of the ToolStripStatusLabel cannot be changed at run time.
The ToolStripStatusLabel has properties that define how the control instance is automatically resized when the form is resized.


Question 27 text Question 27 1 points Save
What is the name of ToolStripButton event that fires when the end user clicks the button?
Question 27 answers
ButtonClick
Click
Check
ButtonCheck


Question 28 text Question 28 1 points Save
Which of the following statements is true of the Write method of the StreamWriter class?
Question 28 answers
The Write method is used to write a single character. However, it cannot be used to write multiple characters.
When you call the Write method, you write a line that is terminated with a hard carriage return.
The Write method can be used to write a character or string.
None of the above are correct


Question 29 text Question 29 1 points Save
Which property of the OpenFileDialog and SaveFileDialog controls gets a string containing the filename to open or save?
Question 29 answers
File
FileName
Name
CurrentFile


Question 30 text Question 30 1 points Save
Which of the following statements correctly reads a record from a sequential file? Assume that CurrentReader is an instance of the StreamReader class.
Question 30 answers
CurrentReader.Read()
CurrentReader.ReadLine()
CurrentReader.StreamReader.ReadLine()
CurrentReader.ReadRecord()


Question 31 text Question 31 1 points Save
Which of the following statements is true of structures?
Question 31 answers
Structure declarations are made up of a block beginning with the Structure statement and ending with the End Structure statement.
Structures can have public members but they cannot have private members.
The naming rules for structure members differs from the naming rules for ordinary variables. The variable name must begin with the keyword Struct.
All of the above


Question 32 text Question 32 1 points Save
Which of the following statements applies to reading a sequential file with the methods of the StreamReader class?
Question 32 answers
The Read method reads the sequential file one line at a time.
You call the ReadToEndOfFile method to read a sequential file from its current position to the end of the file.
After the sequential file has been read, it should be explicitly closed by calling the Close method.
A sequential file is automatically closed when end of file has been reached.


Question 33 text Question 33 1 points Save
What property applicable to a column in a DataGridView would you set to control sorting?
Question 33 answers
Sorted
SortMode
AllowSorting
none of the above


Question 34 text Question 34 1 points Save
A master-detail relationship occurs when ____.
Question 34 answers
a single record in the master table corresponds to a single record in the detail table
a single record in the master table corresponds to many records in the detail table
many records in one table are considered orphan records
none of the above


Question 35 text Question 35 1 points Save
What is returned by the GetChildRows method?
Question 35 answers
A DataSet.
A DataTable.
An array of type DataRow.
A collection of type DataRow.


Question 36 text Question 36 1 points Save
What is the purpose of the DataGridView control's SortMode property?
Question 36 answers
By setting the property to True, rows in the DataGridView will be sorted automatically based on the data appearing in the first column.
If the property’s value is set to True, you can call the Sort method of the DataGridView control at run time.
If defines whether the end user can click a column header so as to sort the rows in the grid.
none of the above


Question 37 text Question 37 1 points Save
Which of the following statements is correct of the relationship between assemblies and namespaces?
Question 37 answers
An assembly is logical while a namespace corresponds to a physical file.
An assembly contains exactly one namespace.
An assembly contains one or more namespaces.
A namespace contains one or more assemblies.


Question 38 text Question 38 1 points Save
Which of the following is considered a software design methodology or tool?
Question 38 answers
Pseudocode
Dissection
Visual Studio
Systems implementation


Question 39 text Question 39 1 points Save
Which of the following is a .NET Framework class library namespace?
Question 39 answers
System.Data
System.Object
Visual.Basic
Namespace


Question 40 text Question 40 1 points Save
Which of the following statements has a syntax error?
Question 40 answers
Dim MyList(3) As String
ReDim MyList() As String = {“A”, “B”, “C”}
Dim MyList() As String = {“A”, “B”, “C”}
Dim MyList() As String


Question 41 text Question 41 1 points Save
Which of the following statements is correct related to arrays?
Question 41 answers
Array subscripts are 1-based.
An array with one dimension would have a rank of 0.
A two-dimensional array is made up of rows and columns.
Visual Basic supports arrays having one or two dimensions. However, three-dimensional arrays are not supported.


Question 42 text Question 42 1 points Save
What is wrong with the following statements?


Dim CurrentList(100) As Integer
CurrentList(100) = 4.2
Question 42 answers
An array cannot be declared as a local variable with the Dim statement.
The largest subscript for the array is 99 so the assignment statement will cause an error.
The assignment statement will cause an error because the data types are not compatible.
The statements are correct.


Question 43 text Question 43 1 points Save
Which of the following statements declares an array named Question having 12 elements and a data type of Integer?
Question 43 answers
Dim Question(12) As Integer
Dim Question(11) As Integer
Dim Question As Integer(12)
Dim Question As Integer(11)


Question 44 text Question 44 1 points Save
Which of the following comparisons between the Array class and the List class are correct?
Question 44 answers
The elements in a List and the elements in an array must have the same data type.
The same methods are used to add, change, and delete items from both an array and a List.
Lists can have multiple dimensions while arrays cannot.
The size of a List can be changed after it has been created, but the size of an array cannot be changed after it has been created.


Question 45 text Question 45 1 points Save
Which of the following statements is correct of random number generation in Visual Studio?
Question 45 answers
A random number generator is always initialized based on the time of day.
The NextString method of the System.Random class gets a random string of characters.
The NextDate method of the System.Random class gets a random date value.
It’s possible to get random integral or floating-point random values.


Question 46 text Question 46 1 points Save
Which of the following statements gets the upper bound of an array’s second dimension?
Question 46 answers
Dim Result = CurrentList.GetUpperBound(0)
Dim Result = CurrentList.GetUpperBound(1)
Dim Result = CurrentList.GetUpperBound()
Dim Result = CurrentList.GetElements(1)


Question 47 text Question 47 1 points Save
Which of the following statements declare a variable named Count that can be used by all of the members of an assembly but not by other assemblies?
Question 47 answers
Private Count As Integer
Friend Count As Integer
Public Count As Integer
Assembly Count As Integer


Question 48 text Question 48 1 points Save
Which of the following statements apply to Function procedures?
Question 48 answers
The Public and Private keywords are use to define the visibility of a Function procedure.
Function procedures return a value having a data type.
The Return statement is used to return a value from a Function procedure.
All of the above


Question 49 text Question 49 1 points Save
Which of the following statements is true of the startup object?
Question 49 answers
The startup object can be a form.
The startup object can be a Sub procedure named Startup.
The startup object must be a procedure named Start appearing in the main form.
None of the above


Question 50 text Question 50 1 points Save
Which of the following statements correctly calls the constructor for the class named Demo. Assume that the constructor accepts one argument having a data type of Double.
Question 50 answers
Dim DemoInstance = New Demo()
Dim DemoInstance As Demo
Dim DemoInstance As New Demo(123.45)
Dim DemoInstance As Demo = Create Demo(123.45)


Question 51 text Question 51 1 points Save
How do you execute the Get block of a Public Property procedure?
Question 51 answers
You write a statement that attempts to store a value in the property.
You read the value of the property.
You call the Get method of the property.
You call the Property method of the System class.


Question 52 text Question 52 1 points Save
What is the name of the statement used to execute a Sub procedure?
Question 52 answers
Open
Call
Run
DoSub


Question 53 text Question 53 1 points Save
Which of the following are valid parts of an application?
Question 53 answers
developer-defined classes
splash screens
multiple forms
All of the above


Question 54 text Question 54 1 points Save
What is the name of the event that fires just before a form is unloaded?
Question 54 answers
Closing
FormClosing
Unloading
FormUnloading


Question 55 text Question 55 1 points Save
Which of the following are considered user interface principles?
Question 55 answers
Control density and form density
Comments
Control, Intuitiveness, Consistency
All of the above


Question 56 text Question 56 1 points Save
Which of the following statements correctly closes the current form?
Question 56 answers
CurrentForm.Close
CloseForm()
Me.Close()
Close


Question 57 text Question 57 1 points Save
What is the name of the property that contains the text appearing in the visible region of a Label control instance?
Question 57 answers
Caption
Text
Visible
Contents


Question 58 text Question 58 1 points Save
Which of the following controls is derived from the Control class?
Question 58 answers
FileDialog
OpenFileDialog
Button
Form


Question 59 text Question 59 1 points Save
Which of the following statements is correct of a strongly typed DataSet?
Question 59 answers
A strongly typed DataSet is derived from the base TypedDataSet class.
A strongly typed DataSet is made up of a schema definition file and a .vb file containing Visual Basic code.
A strongly typed DataSet extends the primary data types such as Integer or Double.
None of the above


Question 60 text Question 60 1 points Save
Which of the following statements is correct of the Data Sources window?
Question 60 answers
The Data Sources window is used to create an untyped DataSet from a strongly typed DataSet.
When a field is dragged from the Data Sources window to the Windows Forms Designer, a TextBox control instance is always created.
Bound control instances can be created on a form by dragging a field from the Data Sources window to the Windows Forms Designer.
None of the above


Question 61 text Question 61 1 points Save
The Data Source key of the ConnectionString property of the OleDbConnection class defines:
Question 61 answers
how the database will be shared among connected users.
the file containing the database.
the source code for the database.
All of the above


Question 62 text Question 62 1 points Save
Which of the following is a valid SQL SELECT statement?
Question 62 answers
SELECT ALL FIELDS FROM tblEmployees
SELECT EVERYTHING FROM tblEmployees
SELECT * FROM tblEmployees
GET ALL FROM tblEmployees


Question 63 text Question 63 1 points Save
If a database column contains a string, what is the name of the property that stores the maximum number of characters that can be stored in the string?
Question 63 answers
MaxChars
Max
Length
MaxLength


Question 64 text Question 64 1 points Save
After the following statements have executed, what value is stored in the variable Result?


Dim Result As String
Dim WordList As String = "Alpha Beta"
Result = WordList.Substring(1, 4)
Question 64 answers
lpha
Alph
0
True


Question 65 text Question 65 1 points Save
What value is stored in the variable Position after the following statements have executed?


Dim Current As String = "Jeff Ames"
Dim Position As Integer
Position = Current.IndexOf("b")
Question 65 answers
False
0
-1
1


Question 66 text Question 66 1 points Save
Which of the following statements is correct of the Substring method of the String class?
Question 66 answers
The method returns selected characters from a string.
The characters returned from the string need not be consecutive characters.
The starting index of the first character returned must be 0.
The Substring method returns a Char.


Question 67 text Question 67 1 points Save
Which of the following statements is correct of character sets?
Question 67 answers
The Unicode character set was created by IBM.
The ASCII and the EBCDIC character sets use the same binary patterns to store both English and international characters.
ASCII and Unicode are both character sets.
The ASCII character set works with international characters better then the Unicode character set.


Question 68 text Question 68 1 points Save
Which of the following statements is correct of multiline text boxes?
Question 68 answers
The ScrollBars property defines how text will wrap.
Text always wraps on word boundaries.
Text will only wrap if the Wrap property is set to True.
It’s possible to display vertical scroll bars, horizontal scroll bars, or both.


Question 69 text Question 69 1 points Save
What value is stored in the variable Result after the following statements have executed?


Dim Result As String
Result = "Michael" & "Ekedahl"
Question 69 answers
Michael Ekedahl
MichaelEkedahl
Michael&Ekedahl
None of the above


Question 70 text Question 70 1 points Save
Referring to the DateTimePicker control, what is the name of the property that controls the appearance of the date or time displayed in the visible region of the control instance?
Question 70 answers
DateFormat
Value
Text
Format
 




Write a review

Please login or register to review

What value is stored in the variable Result

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Tags: Multiple choice question, MCQ, visual basic