The input to a user-defined function can consist of:
(A) a single value
(B) one or more values
(C) no values
(D) All of the above
Answer: D
Programming
- Which of the following names would be best for the following Function (called NoName)? Function NoName(number As Double) As Double Return number ^ 3 + number ^ 3 End Function
- 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?
- Which statement is True in regard to the following code?
- What value is assigned to lblSum.Text by the following code?
- What is wrong with the following code?
- Which code example will calculate the number of checked items in a CheckedListBox named clbMovieNames and store the number in intCheckedMovies?
- The __ method can be used to place a new item at any position in a ListBox.
- Setting this property to True will put the items in a ListBox in alphabetical order.
- Which of the following code fragments calculates the average of 5 numbers input with an input box, and displays the result in lblResult?
- A difference between a ListBox and a drop-down ComboBox is __
- The SelectedItem property of a ListBox____.
- What is the difference in the execution of the Do Until Loop (first example) and the Do Loop Until (second example)?
- In the following statement that begins a For Next loop, what is the purpose of the Step clause?
- Which statement about the ListBox.Add method is true?
- A ToolTip is a ___ that allows the programmer to create a small popup message that displays when the user places the mouse over a control.
- Which type of loop uses a pretest to initialize a counter variable and then increment the counter variable at the end of each iteration?
- What is the difference in execution between the two following sections of code?
- All of the following are valid ComboBox style properties, except __
- The first item in a ListBox has an index of __
- Which type of loop repeats as long as its loop condition remains True?
- Which standard Visual Basic function returns the periodic payment amount for a loan?
- What will be the final value of intCount?
- The InputBox function always returns a __ value.
- If lstMonths is a ListBox, which of the following will cause an exception to be thrown?