Sample 2
Sample Questions for Exam 1:
Multiple Choice
Identify the choice that best completes the statement or answers the question.
____ 1. Which of the following sections are part of a UML class diagram?
|a. |The class name |c. |The operations (methods) |
|b. |The attributes (data) |d. |All of the above |
____ 2. What is the term used to describe the coupling of data and the processes that act on the data?
|a. |Class implementation |c. |Inheritance |
|b. |Coupling |d. |Encapsulation |
____ 3. Which of the following Help pages lists the properties, methods, and events of a particular class?
|a. |Language Help pages |c. |Members Help pages |
|b. |Help Lists |d. |Class Help pages |
____ 4. Which of the following statements is correct of the Help Search window?
|a. |The Search window and the Index window are the same. |
|b. |Search keywords are selected from a list, which cannot be changed. |
|c. |Search filters are supported to restrict the search. |
|d. |A keyword search will always return exactly one Help topic. |
____ 5. Which of the following statements is correct of the Properties window?
|a. |The Properties window can only be used at run time. |
|b. |The Object combo box is used to select the object for which properties are set. |
|c. |The Properties window cannot be used to set properties for multiple objects at the same time. |
|d. |The Properties window is used to set properties for control instances, but it cannot be used to set the properties of a |
| |form. |
____ 6. Which of the following statements is correct of storing data in variables having a data type of String?
|a. |Type conversion is automatic when assigning numeric and string variables. |
|b. |The ToString method must be called on a numeric data type so as to convert the value to a string. |
|c. |To convert numeric data to a string, call the Format method. |
|d. |None of the above |
____ 7. 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")
|a. |False |c. |-1 |
|b. |0 |d. |1 |
____ 8. Which of the following statements is true of a Function procedure’s arguments?
|a. |A Function procedure must always have at least one argument. |
|b. |Each function argument must have a data type of Object. |
|c. |If a function has multiple arguments, then each argument is separated by a comma. |
|d. |A function can return one, two, or many values using the Return statement. |
____ 9. 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?
|a. |Private Count As Integer |
|b. |Friend Count As Integer |
|c. |Public Count As Integer |
|d. |Assembly Count As Integer |
____ 10. Which of the following statements is correct of the Sub procedure named Test.
Public Sub Test(arg As Boolean, argText As TextBox)
argText.Visible = arg
End Sub
|a. |The procedure declaration has a syntax error |
|b. |The procedure can only be called from the Class or Module block containing the declaration. |
|c. |The procedure accepts two arguments. |
|d. |The procedure is a Function procedure. |
Short Answer
Write a Public Function called “ToUpperCase” to convert the contents of the String input to all upper case characters and returns the result.
Write a Sub Procedure (event handler) for a button called btnExit to exit the solution.
Write a statement to insert the literal string “End” into the String variable named Message, at the end.
Write the statement to display the form named frmDialog as a modal dialog box.
Write the statement to remove the image from the PictureBox control instance named picQuestion.
Discuss the purpose of having user-defined (custom) classes.
List and describe the three common variable-naming conventions.
What is the difference between the ASCII character set and the Unicode character set?
Describe how different computer systems represent the beginning of time.
What is a constructor? How are an object’s instance variables initialized if a class has only a constructor which does not accept any arguments?
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- ielts writing task 2 sample answers
- 2 sample test statistic calculator
- 2 sample t statistic calculator
- 2 sample z test calculator
- 2 sample hypothesis test calculator
- 2 sample t test
- 2 sample t test results
- 2 sample t test jmp
- 2 sample proportion test calculator
- 2 sample proportion calculator
- ielts writing task 2 sample 9
- 2 sample p value calculator