final exam review Flashcards
The ____________ property determines whether a RadioButton is selected.
A) Selected
B) Clicked
C) Checked
D) Enabled
C) Checked
Arrays that use two indices are referred to as __________ arrays.
A) single-subscripted
B) two-dimensional
C) double
D) one-dimensional
B) two-dimensional
An array’s elements are related by the act that they have the same name and _________.
A) constant value
B) subscript
C) type
D) value
C) type
Suppose the days of the year are numbered from 1 to 365 and January 1st falls on a Tuesday as it did in 2013. What is the correct For statement to use if you want only the numbers for the Fridays in 2013?
A) For i As Integer = 3 To 365 Step 7
B) For i As Integer = 1 to 365 Step 3
C) For i As Integer = 365 To 1 Step -7
D) For i As Integer = 3 to 365 Step 6
A) For i As Integer = 3 To 365 Step 7
Formula to calculate the value in volts, with a 12 bit ADC is: A) VADC = (ADC_Count / 4096) * 2.5 B) VADC = ADC_Count / 4096 / 2.5 C) VADC = ADC_Count * 4096 / 25 D) VADC = ADC_Count * 4096 / 2.5
A) VADC = (ADC_Count / 4096) * 2.5
If the Step is omitted, the increment of a For...Next statement defaults to \_\_\_\_\_\_\_\_\_\_\_\_\_\_. A) 1 B) -1 C) 0 D) Either answer 1 or 2
A) 1
The main function of AD594/AD595 instrumentation amplifier includes a thermocouple failure alarm. The main function of this thermocouple failure alarm is to indicates _______________________ .
A) if both thermocouple leads become close.
B) if one thermocouple lead is close.
C) if one or both thermocouple leads become open
D) None of the above
C) if one or both thermocouple leads become open
The arguments appearing in a calling statement must match the parameters in the appropriate Sub or Function header in all but one of the following ways. Which one? A) Number of arguments B) Names of arguments C) Data type of arguments D) Order of arguments
B) Names of arguments
An infinite loop occurs when the loop-continuation condition in a Do While...Loop or Do...Loop While statement \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_. A) never becomes True B) never becomes False C) is False D) is tested repeatedly
B) never becomes False
In order to communicate with Wiz232 board, COM port parameters must be set as:
Incorrect Response
A) 9600 baud, no parity, 12 data bits and 1 stop bit
B) 9600 baud, no parity, 8 data bits, 1 stop bit
C) 2400 baud, no parity, 7 data bits, 1 stop bit
D) 9600 baud, no parity, 8 data bits and 2 stop bits
B) 9600 baud, no parity, 8 data bits, 1 stop bit
Variables appearing inside the parentheses of a calling statement are called \_\_\_\_\_\_\_\_\_\_\_\_. A) values of the function B) parameters C) coordinates D) arguments
D) arguments
Arrays can be declared to hold values of \_\_\_\_\_. A) type Double B) type Integer C) type String D) any data type
D) any data type
Which Case clause will be true whenever the value of the selector in a Select Case block is greater than or equal to 7? A) Case Is > 7 B) Case Is = 8 C) CAse Is >= 7 D) Case Is <= 8
C) CAse Is >= 7
What will be displayed when the button is clicked?
Private Sub btnDisplay_Click(…) Handles btnDisplay.Click
Dim num As Double = 9
Dim sqrRoot As Double
If num
C) 3
What word(s) will appear in the list box when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim num As Integer = 5 If num = 2 Then lstBox.Items.Add("Two") ElseIf num > 3 Then lstBox.Items.Add("Great") ElseIf num = 5 Then lstBox.Items.Add("Equal") End If End Sub
A) Two, Great, and Equal
B) Great and Equal
C) Great
D) Equal
C) Great
The first element in every array is the \_\_\_\_\_\_\_\_\_. A) subscript B) zeroth element C) length of the array D) smallest value in the array
B) zeroth element
If the Step is omitted, the increment of a For...Next statement default to \_\_\_\_\_\_\_\_\_\_. A) 1 B) -1 C) 0 D) 0.0
A) 1
Which one of the following inputs rejects common-mode-noise voltage on the thermocouple leads? A) Differential input B) integral input C) common mode input D) common reject input
A) Differential input
What keyword in the header of a sub procedure denotes that a variable is passed by reference? A) AsRef B) ByReference C) ByRef D) ByVal
C) ByRef
The SPORT232 offers \_\_\_\_\_\_\_\_ digital I/O that are TTL compatible. A) 12 B) 16 C) 20 D) 24
D) 24
Which of the following sotrs array averageRainfall? A) Array(averageRainfall).Sort() B) Sort.Array(averageRainfall) C) Sort(averageRainfall) D) Array.Sort(averageRainfall)
D) Array.Sort(averageRainfall)
The expression \_\_\_\_\_\_\_ creates an Integer array of two rows and five columns. A) Dim a(2,5) As Integer B) Dim a(1,5) As Integer C) Dim a(1,4) As Integer D) Dim a(2,4) As Integer
C) Dim a(1,4) As Integer
The indexed array name of one-dimensional array units's element 2 is \_\_\_\_\_\_\_\_\_\_\_. A) units{2} B) units() C) units[0,2] D) units[2]
B) units()
What will be the output of the following program when the button is clicked? Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim name As String = "Washington" Select Case name Case "George" txtBox.Text = "George" Case "Wash" txtBox.Text = "Wash" Case "WASHINGTON" txtBox.Text = "WASHINGTON" Case Else txtBox.Text = "Washington" End Select End Sub
A) WashWashington
B) Washington
C) WASHINGTONwashington
D) No output
B) Washington
An array index store normally should be of type Double.
A) True
B) False
B) False
An array length is \_\_\_\_\_\_\_\_\_\_\_. A) one more than the array's last index B) one less than the arry's last index C) the same as the arry's ndex D) returned by method GetUpperBound
A) one more than the array’s last index
A(n) \_\_\_\_\_\_\_\_\_\_ allows the user to select a file to open. A) CreateFileDialog B) OpenFileDialog C) MessageBox D) None of the above
B) OpenFileDialog
Consider the following event procedure that calls a Function procedure named Cube, which returns the cube of a number.
Private Sub btnDisplay_Click(…) Handles btnDisplay.Click
Dim num, result As Double
num = CDbl(InputBox(“Enter a number to cube:”))
result = Cube(num)
txtBox.Text = “The cube of “ & num & “ is “ & result & “.”
End Sub
Which of the following is a correct Function definition for Cube?
- Function Cube(var As Double) As Double
Return var ^ 3
End Function - Function Cube(num As Double) As Double
Return num ^ 3
End Function
A) 1 only
B) 2 only
C) Both 1 and 2
D) Neither 1 nor 2
C) Both 1 and 2
A collection of related radio buttons is usually placed in a \_\_\_\_\_\_\_ . A) List box B) Text box C) Combo box D) Group box
D) Group box
The process of ordering the elements of an array is called \_\_\_\_\_\_\_\_\_\_\_ the array. A) allocating B) sorting C) declaring D) initializing
B) sorting
The ComboBox control combines a TextBox control with a \_\_\_\_\_\_\_ control. A) DateTimePicker B) ListBox C) NumericUpWown D) Label
B) ListBox