Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- The figure above represents the flowchart of a
- ____.
- A Do Until loop
- B Do While loop
- C For loop
- D Try...Catch...Finally loop
- 2
- Which of the following statements describes a
- run-time error?
- A When a statement is valid but it is impossible
- to execute for some reason
- B When there is an invalid statement, but for
- some reason VB .NET manages to run the
- solution correctly
- C When a statement violates the rules of the VB
- .NET language
- D When the solution contains a design problem
- causing the solution to produce incorrect results
- 3
- The figure above is an example of which of the
- following control structures?
- A Selection
- B Sequence
- C Interation
- D Block
- 4
- Which of the following control structures is
- represented in the figure above?
- A Select Case
- B Do ...While Loop
- C If...Then...Else
- D Do While...Loop
- Page 1 of 54
- Go on to next page
- 5
- Consider the following Visual Basic .NET code:
- Dim intUnitsReceived as Integer, sngTotalCost
- as Single, strCost as String
- sngTotalCost=0
- intUnitsReceived=0
- strCost = InputBox("Enter item cost (without $
- or comma), click Cancel when finished", "Data
- Entry")
- Do While strCost <> ""
- intUnitsReceived = intUnitsReceived + 1
- sngTotalCost = sngTotalCost + val(strCost)
- strCost = InputBox("Enter item cost (without $
- or comma), click Cancel when finished", "Data
- Entry")
- Loop
- The above code represents a _____ loop
- example.
- A PostTest
- B FirstTest
- C PreTest
- D None of these
- 6
- Which of the following control structures is
- represented in the figure above?
- A Select Case
- B Do While...Loop
- C Do...While Loop
- D If...Then...Else
- 7
- Which of the following control structures is
- represented in the figure above?
- A If...Then
- B If...Then...Else
- C If...Then...ElseIf...Else
- D Nested If...Then....Else
- 8
- Which of the following control structures is
- represented in the figure above?
- A For loop
- B If...Then...Else
- C Do While loop
- D Selection structure
- Page 2 of 54
- Go on to next page
- 9
- Consider the following Visual Basic .NET code:
- Dim unitsReceived as Integer, totalCost as
- Single, cost as String
- totalCost=0
- unitsReceived=0
- cost = InputBox("Enter item cost (without $ or
- comma), click Cancel when finished", "Data
- Entry")
- Do While cost <> ""
- unitsReceived = unitsReceived + 1
- totalCost = totalCost + val(cost)
- cost = InputBox("Enter item cost (without $
- or comma), click Cancel when finished",
- "Data Entry")
- Loop
- The above code represents a ____ loop example.
- A posttest
- B firsttest
- C pretest
- D secondarytest
- 10
- Consider the above code. What will the value of
- grade be if examScore is 99?
- A A
- B B
- C C
- D D
- 11
- Consider the above code. According to the
- Select Case statement, what is the number of
- days in February 2003?
- A 28
- B 29
- C 30
- D 31
- 12
- What can be said of the following function
- procedure?
- Private Function IsNegative(ByVal pintArg _
- As Integer) As Boolean
- If pintArg < 0 Then
- Return True
- Else
- Return False
- End If
- End Function
- A The function can be used only by the module
- containing the declaration
- B The function returns a value having a data
- type of Integer
- C The function has one argument having a data
- type of Boolean
- D All of the above
- 13
- Which is an example of an index?
- A 1
- B "Elaine"
- C strNames(1)
- D strNames
- Page 3 of 54
- Go on to next page
- 14
- Consider the above code. What will the value of
- grade be if examScore is 50?
- A A
- B B
- C D
- D F
- 15
- If a Case selection structure is to determine
- which school building to assign to a student
- based upon grade using the following table,
- which of the following expression lists is not
- correct in assigning students to the correct
- building?
- Grade Number School Building
- 1-6 Grade School
- 7-9 Middle School
- 10-12 High School
- A Case 1 to 6
- B Case is < 9
- C Case 10 to 12
- D Case Else
- 16
- In the array above, FEB is at subscript _____.
- A 0
- B 1
- C 2
- D 3
- 17
- Look at the following two loops. Which of the
- statements is true?
- Loop 1:
- intX = 0
- Do
- intX = intX * 2
- Loop While intX < 25
- Loop 2:
- intX = 0
- Do While intX < 25
- intX = intX * 2
- Loop
- A Loop 1 is identical in execution to Loop 2
- B Neither loop will compile
- C Loop 2 will always execute at least once
- D Loop 1 will always execute at least once
- 18
- If a Case selection structure is to determine
- which school building to assign to a student
- based upon grade using the following table,
- which of the following expression lists is not
- correct in assigning students to the correct
- building?
- Grade Number School Building
- 1-6 Grade School
- 7-9 Middle School
- 10-12 High School
- A Case 1, 2, 3, 4, 5, 6
- B Case is 7 to 9
- C Case 10 to 12
- D None of the above
- 19 A ____ is a hand-drawn sketch of how the
- application window or Web page will look and
- where the objects will be placed in the window
- or on the form.
- A A storyboard
- B A flowchart
- C focus sheet
- D control structure
- Page 4 of 54
- Go on to next page
- 20
- If a Case selection structure is to determine
- which school building to assign to a student
- based upon grade using the following table,
- which of the following expression lists is not
- correct in assigning students to the correct
- building?
- Grade Number School Building
- 1-6 Grade School
- 7-9 Middle School
- 10-12 High School
- A Case 6 to 1
- B Case is 7 to 9
- C Case 10 to 12
- D Case Else
- 21
- Consider the following code segment and
- determine the value of intNumber that displays
- in the Output window.
- Dim intCount, intNumber as integer
- intCount = 0
- intNumber = 0
- Do While intCount <=4
- intNumber = intNumber + 2
- intCount = intCount + 1
- Loop
- Me.lblAnswer.Text = intNumber
- A 2
- B 4
- C 6
- D 8
- 22
- Which of the following statements best
- describes the term encapsulation?
- A An object supports a fixed set of data items,
- each supporting properties, methods, and events.
- B An object supports implicit data type
- conversion.
- C An object supports properties and methods,
- but not events.
- D none of the above
- 23
- Consider the following code segment and
- determine the value of intNumber that displays
- in the Output window.
- Dim intCount, intNumber as integer
- intCount = 0
- intNumber = 0
- Do Until intCount > = 3
- intNumber = intNumber + 2
- intCount = intCount + 1
- Loop
- Me.txtAnswer.Text = intNumber
- A 2
- B 4
- C 6
- D 8
- 24
- Given the following statements:
- Dim intExperience As Integer = 10
- If intExperience > 5 Then
- Me.lblMessage.Text="Sufficient Experience"
- Else
- Me.lblMessage.Text="Inexperienced"
- End If
- What is displayed when the statements execute?
- A Sufficient Experience
- B Inexperienced
- C nothing would be displayed
- D Sufficient Experience on one line and
- Inexperienced on the next line
- 25
- When planning an application you need to
- _____.
- A identify the tasks the application needs to
- perform and the objects to which you will assign
- the tasks.
- B identify the events required to trigger an
- object into performing its assigned tasks.
- C design the user interface.
- D all of the above.
- Page 5 of 54
- Go on to next page
- 26
- Consider the following code segment and
- determine the value of intNumber that displays
- in the Output window.
- Dim intCount, intNumber as integer
- intCount = 0
- intNumber = 0
- Do
- intNumber = intNumber + 2
- intCount = intCount + 1
- Loop While intCount < 3
- Me.txtAnswer.Text = intNumber
- A 2
- B 4
- C 6
- D 8
- 27
- If a letter grade of "B" or "A" on a test is
- determined based upon the following grading
- scale which logical condition would identify an
- individual earning a "B" or "A" based upon a
- variable score?
- 90 - 100 A
- 80 - <90 B
- 70 - <80 C
- 60 - <70 D
- 0 - <60 F
- A Score = 80 or Score > 90
- B Score > 80 and Score >=90
- C Score >= 80
- D Score < 80 and Score >=80
- 28
- Which of the following describes a syntax error?
- A When a statement is valid but it is impossible
- to execute for some reason
- B When the solution contains a design problem
- causing the solution to produce incorrect results
- C When there is an invalid statement, but for
- some reason VB .NET manages to run the
- solution correctly
- D When a statement violates the rules of the VB
- .NET language
- 29
- Consider the following code segment and
- determine the value of intNumber that displays
- in the Output window.
- Dim intCount, intNumber as integer
- intCount = 0
- intNumber = 0
- Do
- intNumber = intNumber + 2
- intCount = intCount + 1
- Loop Until intCount > 3
- Me.txtAnswer.Text = intNumber
- A 2
- B 4
- C 6
- D 8
- 30
- If a letter grade of "D" or "F" on a test is
- determined based upon the following grading
- scale which logical condition would identify an
- individual earning a "D" or "F" based upon a
- variable score?
- 90 - 100 A
- 80 - <90 B
- 70 - <80 C
- 60 - <70 D
- 0 - <60 F
- A Score <=70 or Score > 0
- B Score >= 0 and Score < 70
- C Score Not >= 80
- D Score < 80 and Score >=80
- 31
- The four primary Visual Basic .NET Help
- windows are:
- A Contents, Floating windows, Dockable
- windows, Properties window
- B Index, Contents, Search, Dynamic Help
- C Dynamic help, What's new, Search online,
- Search offline
- D VB .NET offers only online help to the
- developers; other help options are available only
- to users with administrative privileges
- Page 6 of 54
- Go on to next page
- 32
- Given the following statements:
- If intGuess=intSelected Then
- Me.lblMessage.Text="Correct"
- Else
- Me.lblMessage.Text="Incorrect"
- End If
- What is displayed when intGuess is 8 and
- intSelected is 9?
- A Correct
- B Incorrect
- C nothing would be displayed
- D Correct on one line and Incorrect on the next
- line
- 33
- If a letter grade of "B" on a test is determined
- based upon the following grading scale, which
- of the following expressions would identify an
- individual earning a "B" based upon a variable
- score?
- 90 - 100 A
- 80 - <90 B
- 70 - <80 C
- 60 - <70 D
- 0 - <60 F
- A score = 80 Or score < 90
- B score > 80 And score <=90
- C score >= 80 And score < 90
- D score < 80 And score >=80
- 34
- Which of the following statements describes
- logic error?
- A When a statement violates the rules of the VB
- .NET language
- B When there is an invalid statement, but for
- some reason VB .NET manages to run the
- solution correctly
- C When a statement is valid but it is impossible
- to execute for some reason
- D When the solution contains a design problem
- causing the solution to produce incorrect results
- 35
- If a letter grade of "B" or "A" on a test is
- determined based upon the following grading
- scale, which expression would identify an
- individual earning a "B" or "A" based upon a
- variable score?
- 90 - 100 A
- 80 - <90 B
- 70 - <80 C
- 60 - <70 D
- 0 - <60 F
- A score = 80 Or score > 90
- B score > 80 And score >=90
- C score >= 80
- D score < 80 And score >=80
- 36
- Given the following statements:
- If intGuess=intSelected Then
- Me.lblMessage.Text="Correct"
- Else
- Me.lblMessage.Text="Incorrect"
- End If
- What is displayed when intGuess is 8 and
- intSelected is 9?
- A Correct
- B Incorrect
- C nothing would be displayed
- D Correct on one line and Incorrect on the next
- line
- 37
- If in a payroll application overtime is calculated
- after 40 work hours. Which of the following
- would be a correct selection statement to
- determine if overtime calculations were
- necessary assuming that the variable
- sngHoursWorked holds and employees hours
- worked?
- A If sngHoursWorked < 40 then
- B If sngHoursWorked = 40 then
- C If sngHoursWorked > 40 then
- D If sngHoursWorked < > 40 then
- Page 7 of 54
- Go on to next page
- 38
- If a letter grade of "B" on a test is determined
- based upon the following grading scale which
- logical condition would identify an individual
- earning a "B" based upon a variable score?
- 90 - 100 A
- 80 - <90 B
- 70 - <80 C
- 60 - <70 D
- 0 - <60 F
- A Score = 80 or Score < 90
- B Score > 80 and Score <=90
- C Score >= 80 and Score < 90
- D Score < 80 and Score >=80
- 39
- Which of the following represents the syntax for
- a Do While loop?
- A Do While expression
- statements
- End Do
- B Do While expression
- statements
- End While
- C Do While expression
- statements
- Loop
- D Do While expression
- statements
- Next
- 40
- What can be said of the following If statement:
- Dim strValue As String
- If 2 > 1 Then
- strValue = "Greater Than"
- Else
- strValue = "Less Than"
- End If
- A It is a one-way If statement
- B It is a two-way If statement
- C The statement will produce a syntax error
- D The statement uses a logical operator
- 41
- Which of the following is a post-test Do While
- loop structure?
- A Do
- statements
- Loop While expression
- B Do While expression
- statements
- Loop
- C Do statements
- While expression
- End Do
- D Do Until expression
- statements
- Next
- 42
- Which statement displays the following message
- box?
- A MessageBox.Show("Try again")
- B MessageBox.Display("Try again")
- C Show.Message("Try again")
- D Message.Show("Try again")
- 43
- Given the following statements:
- Dim intX As Integer = 0
- Do
- intX = intX + 2
- Loop While intX < 10
- How many times will the body of the
- Do…Loop execute?
- A 0
- B 2
- C 5
- D 10
- Page 8 of 54
- Go on to next page
- 44
- Given the following statements:
- Dim intX As Integer
- Do
- intX = intX + 3
- Loop While intX <> 30
- Which initial value of intX will make the loop
- infinite?
- A 0
- B 3
- C 7
- D 15
- 45
- Given the following statements:
- Dim intX As Integer
- For intX = 1 To 11
- MessageBox.Show(intX)
- Next intX
- What is the value of intX after the last loop
- iteration?
- A 1
- B 10
- C 11
- D 12
- 46
- Given the following statements:
- Dim intX As Integer
- For intX = 1 To 11
- MessageBox.Show(intX)
- Next intX
- How many message boxes will be displayed?
- A 1
- B 10
- C 11
- D 12
- 47
- Given the following For loop, what value is
- stored in the variable pintResult after the loop
- executes?
- Dim intCounter As Integer
- Dim intResult As Integer
- For intCounter = 0 to 11 Step 2
- intResult += 1
- Next
- A 6
- B 12
- C 11
- D None of the above
- 48
- Which of the following statements related to
- drawing graphical shapes on a form with the
- Graphics class is correct?
- A Calling the Repaint method of the Graphics
- class causes the form to be repainted.
- B To draw a shape, you call the DrawShape
- method of the Graphics class.
- C A reference to the Graphics class is passed as
- an argument to the Paint event handler. Thus,
- drawing operations are commonly performed in
- this event handler.
- D All of the above
- 49
- What value of x will print out after the
- following loop runs?
- intX = 0
- Do
- intX = intX + 1
- Loop While intX <= 5
- Me.lblPrint.Text = str(intX)
- A 0
- B 4
- C 5
- D 6
- Page 9 of 54
- Go on to next page
- 50
- Given the following statements:
- Dim sngNumber As Single = 78.9878
- Me.lblAnswer.Text = Math.Round(sngNumber,
- 2)
- What is displayed in the label?
- A 78
- B 78.98
- C 78.99
- D 79
- 51
- When designing a solution's menu system and
- menu items, the developer should:
- A Use a different prefix for every menu item to
- prevent confusion.
- B Not use consistent naming conventions
- because menu items are not referenced in the
- code.
- C Name every menu item with the same name
- as the control instances they reference.
- D Use a standard prefix and a descriptive name
- for each menu item.
- 52
- Given the following statements:
- Dim intX As Integer = 0
- Me.lblAnswer.Text = Math.Sign(intX)
- What is displayed in the label?
- A 0
- B -1
- C 1
- D intX
- 53
- Who is considered to be the author of COBOL?
- A Bill Gates
- B Government
- C Ada Byron
- D Grace Hopper
- 54
- How many events does the following procedure
- handle?
- Private Sub Condiments_Click(ByVal _
- sender As Object, ByVal e As _
- System.EventArgs) Handles _
- chkMustard.Click, chkKetchup.Click, _
- chkPickles.Click, chkOnions.Click
- A 1
- B 2
- C 4
- D 6
- 55
- Given the following statements:
- Dim strName As String = "6+7"
- Me.lblAnswer.Text = IsNumeric(strName)
- What is displayed in the label?
- A 0
- B No
- C True
- D False
- 56
- Given the following statements, what value is
- stored in the variable mblnResult, after the
- statements have executed?
- Private blnResult As Boolean
- Private strValue As String = "123,444.50"
- blnResult = IsNumeric(strValue)
- A False
- B True
- C 123444.50
- D None of the above
- 57
- The number system used in computers is called
- A decimal.
- B hexadecimal.
- C binary.
- D base.
- Page 10 of 54
- Go on to next page
- 58
- Given the following statements:
- Dim strFirstName(5) As String
- strFirstName(6) = "John"
- The strFirstName(6) = "John" statement
- A add a sixth element to the array.
- B add a seventh element to the array.
- C assigns "John" to all the elements in the array.
- D cause a run-time error.
- 59
- Given the following statements:
- Dim strFirstName(5) As String
- strFirstName(6) = "John"
- The strFirstName(6) = "John" statement
- A add a sixth element to the array.
- B add a seventh element to the array.
- C assigns "John" to all the elements in the array.
- D cause a run-time error.
- 60
- What is the result of the following statement?
- Private intCounter As Integer = "VB .NET"
- A The variable intCounter is assigned the text
- value appearing on the right side of the "=" sign
- B A syntax error
- C This statement contradicts the data type
- conversion rules of VB .NET
- D Both B and C
- 61
- If the programmer wants to protect the original
- variable data the programmer should pass the
- data by _____.
- A reference
- B value
- C both a & b will protect the data
- D None of these
- 62
- Which of the following statements is true of
- ComboBox styles?
- A You can configure the ComboBox so that it
- looks like a list box; that is, the ComboBox will
- not drop down
- B You can configure the ComboBox so that the
- user cannot add new items to the control
- instance at run time
- C You can control the number of items that will
- appear in the drop-down list
- D All of the above
- 63
- Which of the following statements apply to
- logical operators?
- A You should always use logical operators in
- place of arithmetic operators
- B Logical operators are commonly used in
- conjunction with arithmetic operators to build
- the condition in an If statement
- C Logical operators can never be used in the
- same statement as arithmetic operators
- D All of the above
- 64
- The ____ property determines whether a user
- can resize an application window at run time
- and how other objects on the form, such as the
- Maximize button, Minimize button, Control
- Box, Title bar, and Help button, behave or
- display.
- A ApplicationWindow
- B Display
- C ResizeWindow
- D FormBorderStyle
- 65
- When several programs require similar
- functionality, a(n) ____ approach to the solution
- should be considered in the design of the
- solution.
- A object-oriented
- B menu
- C procedural
- D subclass
- Page 11 of 54
- Go on to next page
- 66
- Which of the following is a characteristic of a
- Select Case statement?
- A A Select Case statement can always be used
- in place of a multi-way If statement
- B Select Case statements can only be used when
- the condition contains one or more Integer
- values
- C Avoid using Select Case statements as they
- run more slowly than If statements
- D None of the above
- 67
- Which of the following statements related to the
- GDI+ is correct?
- A The GDI+ supplies the methods to perform
- three-dimensional drawing.
- B The GDI+ allows you to draw twodimensional
- shapes, images, and text of varying
- fonts.
- C The versions of the GDI+ are the same for all
- Windows versions.
- D DirectX is a subset of the GDI+.
- 68
- The Checked property of the MenuItem class is
- used:
- A to define whether the menu item is enabled or
- disabled.
- B to define the check mark icon that appears in
- the menu item.
- C to define a menu item that displays a check
- mark.
- D The MenuItem class does not support a
- property named Checked.
- 69
- When Visual Basic .NET encounters a run-time
- error during execution, it displays a Microsoft
- Development Environment dialog box; to return
- to design time from this dialog box, click the
- ____ button.
- A Break
- B Design
- C Continue
- D Return
- 70
- Referring to a For loop, which of the following
- statements apply to the Step increment clause?
- A It is optional; if omitted the counter will be
- incremented by one
- B The increment must always be a positive
- value
- C The Step increment clause is required in any
- For loop. If omitted, then a syntax error will
- occur
- D None of the above
- 71
- Which of the following bests describes this
- loop?
- intX = 0
- Do While intX >= 0
- intX = intX + 3
- Loop
- A Infinite
- B Finite
- C Definite
- D Incite
- 72
- Given the following statements:
- Dim intX As Integer = 25
- Me.lblAnswer.Text = Math.Sqrt(intX)
- What is displayed in the label?
- A 0
- B 5
- C 25
- D 625
- 73
- Using the Immediate mode of the Command
- window during break mode, you can determine
- the value of a variable or expression in code by
- typing a(n) ____ followed by the expression or
- variable name.
- A plus sign
- B ampersand
- C exclamation point
- D question mark
- Page 12 of 54
- Go on to next page
- 74
- Given the following statements:
- Dim intX As Integer = –6
- Me.lblAnswer.Text = Math.Abs(intX)
- What is displayed in the label?
- A 0
- B -6
- C 6
- D 36
- 75
- Which of the following statements describe the
- correct scope of a variable?
- A Use local variables when the variable must be
- shared by at least two procedures
- B Use module-level variables when a variable is
- used only by a single procedure in a module
- C Use Static variables when a variable needs to
- be shared by all of the procedures in a form, and
- all of the forms in a solution
- D None of the above
- 76
- If 123.7894 is the number entered in a textbox,
- what will the following code display:
- Dim intNumber As Integer =
- Val(txtNumber.Text)
- lblAnswer.Text = Int(intNumber)
- A 123
- B 124
- C 123.7
- D 123.8
- 77
- The TextBox control Alignment property
- A sets the alignment of the text relative to the
- text box.
- B sets the alignment of the text relative to the
- form.
- C determines what text is displayed in the text
- box.
- D sets the alignment of the text box to match its
- corresponding label.
- 78
- Given the following statements:
- Dim strName As String = "687"
- Me.lblAnswer.Text = IsNumeric(strName)
- What is displayed in the label?
- A 0
- B No
- C True
- D False
- 79
- Given the following statements:
- Dim strName As String = "James"
- Me.lblAnswer.Text = IsNumeric(strName)
- What is displayed in the label?
- A James
- B No
- C True
- D False
- 80
- Which of the following statements is true of the
- selected item in a ListBox or ComboBox?
- A If the user has not selected an item, the
- SelectedIndex property has a value of 0
- B If the user has selected an item, the
- SelectedIndex property is greater than or equal
- to 0
- C The SelectedIndex property stores a textual
- value containing the data selected by the user
- D None of the above
- 81
- Which of the following correctly describes the
- syntax of an If statement?
- A For every If, there appears a matching End If
- unless the statement is a two-way If statement
- B On a line containing an If or ElseIf, the Then
- keyword always appears at the end of the line
- C A multi-way If statement can contain, at
- most, three ElseIf statements
- D All of the above
- Page 13 of 54
- Go on to next page
- 82
- Which of the following statements is true of For
- loops?
- A Only For loops that are incremented by 1 can
- be written as Do loops
- B Use a For loop when you know in advance
- how many times the loop will execute
- C The counter in a For loop is always
- incremented by 1
- D None of the above
- 83
- Why is the ByRef argument used within an
- event declaration?
- A To indicate that the argument is passed by
- value.
- B To indicate that there are no arguments in the
- argument list.
- C To indicate that the argument is passed by
- reference.
- D None of the above
- 84
- Which of the following statements applies to
- drawing a rectangle outline?
- A You call the DrawRectangle method of the
- Graphics class
- B The DrawRectangle method accepts a
- SolidBrush as one of its arguments
- C To call the DrawRectangle method, you must
- have previously created a Rectangle object
- D All of the above
- 85
- Which of the following statements apply to
- general procedures?
- A Function procedures are general procedures
- but sub procedures are not
- B An event handler is considered a general
- procedure
- C Both function procedures and sub procedures
- are considered general procedures
- D None of the above
- 86
- If 123.7894 is the number entered in a textbox,
- what will the following code display:
- Dim dblNumber As Double =
- Int(Val(txtNumber.Text))
- lblAnswer.Text = dblNumber
- A 123
- B 124
- C 123.7
- D 123.8
- 87
- Which statement displays Name in the title bar
- of an input box?
- A strName = InputBox("Name")
- B strName = InputBox("Enter your Name",
- "Name")
- C InputBox("Enter your Name", Name) =
- strName
- D strName = InputBox("Name", "Enter your
- Name")
- 88
- A call that passes a reference to an actual label
- on the form looks similar to:
- A Call CheckGuess(intNumber, intGuess)
- B Call Me.lblAnswer.CheckGuess(intNumber,
- intGuess)
- C Me.lblAnswer = Call
- CheckGuess(intNumber, intGuess)
- D Call CheckGuess(Me.lblAnswer, intNumber,
- intGuess)
- 89
- The MessageBox.Show(Text, Caption, Buttons,
- Icons[, default button]) method displays a
- message box at runtime on your form. Which of
- the above arguments controls the words
- appearing on the message box title bar?
- A Text
- B Caption
- C Buttons
- D Icons
- Page 14 of 54
- Go on to next page
- 90
- The MessageBox.Show(Text, Caption, Buttons,
- Icons[, default button]) method displays a
- message box at runtime on your form. Which of
- the above arguments controls the words
- appearing in the message box?
- A Text
- B Caption
- C Buttons
- D Icons
- 91
- The MessageBox.Show(Text, Caption, Buttons,
- Icons[, default button]) method displays a
- message box at runtime on your form. Which of
- the above arguments controls the symbol
- appearing in the message box?
- A Text
- B Caption
- C Buttons
- D Icons
- 92
- The ____ keyword tells Visual Basic .NET to
- set aside memory for the instance of the object,
- which includes memory for the object's
- properties.
- A Set
- B New
- C Mem
- D Get
- 93
- ____________________ do not run from a
- Form window as Windows Applications do.
- Rather, their input and output appears in a
- Command Prompt window.
- A Windows Services
- B Console Applications
- C Console Control Libraries
- D Desktop Applications
- 94
- When using the Visual Basic .NET InputBox
- function which of the following is the
- recommended standard?
- A sentence capitalization for both prompt and
- title
- B book title capitalization for the title and
- sentence capitalization for the prompt
- C book title capitalization for both prompt and
- title
- D Pascal case for both
- 95
- Which of the following statements apply to the
- items appearing in a ComboBox or ListBox?
- A You can add items at design time by using the
- String Collection Editor
- B Items cannot be added at run time; instead,
- they must be added at design time
- C The maximum number of items that you can
- store in a ListBox or ComboBox is 100
- D All of the above
- 96
- An application that comes with Windows XP
- and is used to view the contents of the hard disk
- drive and of the computer’s removable storage
- devices is called
- A My Computer.
- B the Desktop.
- C My Details.
- D System Tasks.
- 97
- Which law requires federal government
- agencies to make certain agency information
- available for public inspection.
- A Fair Credit Reporting Act of 1970
- B Privacy Act of 1974
- C Electronic Freedom of Information Act of
- 1996
- D Financial Privacy Act of 1978
- Page 15 of 54
- Go on to next page
- 98
- Which law requires that a government authority
- have a subpoena, summons, or search warrant to
- access an individual’s financial records.
- A Fair Credit Reporting Act of 1970
- B Privacy Act of 1974
- C Electronic Freedom of Information Act of
- 1996
- D Financial Privacy Act of 1978
- 99
- The programming process begins with a meeting
- between the programmer and the client; which
- of the following activities would be the third
- activity in the programming process?
- A Validate the design
- B Design the solution
- C Test the solution
- D Document the solution
- 100
- ____ expresses the step-by-step instructions of
- an algorithm using keywords, and depicts
- logical groupings or structures using
- indentation.
- A A storyboard
- B A flowchart
- C Methods
- D Pseudocode
- 101
- The programming process begins with a meeting
- between the programmer and the client; which
- of the following activities would be the fourth
- activity in the programming process?
- A Validate the design
- B Design the solution
- C Test the solution
- D Implement the design
- 102
- A bit is
- A a single 0 or 1 in the binary code.
- B eight 0s or 1s.
- C a person’s name stored in memory.
- D equal to 64K of RAM.
- 103
- A ____ is a hand-drawn sketch of how the
- application window or Web page will look and
- where the objects will be placed in the window
- or on the form.
- A storyboard
- B flowchart
- C focus sheet
- D control structure
- 104
- The programming process begins with a meeting
- between the programmer and the client; which
- of the following activities would be the fifth
- activity in the programming process?
- A Validate the design
- B Design the solution
- C Test the solution
- D Implement the design
- 105
- The programming process begins with a meeting
- between the programmer and the client; which
- of the following activities would be the next or
- second activity in the programming process?
- A Validate the design
- B Design the solution
- C Test the solution
- D Document the solution
- 106
- The ____ is part of the Visual Basic .NET
- application and contains the windows and
- toolbars that allow you to develop Visual Basic
- .NET applications and components.
- A resolution
- B VBnet
- C IDE
- D index
- 107
- 00000000 01001101 represents the letter M in
- A decimal.
- B hexadecimal.
- C kilobytes.
- D binary.
- Page 16 of 54
- Go on to next page
- 108
- The ____ menu command on the toolbar
- shortcut menu allows you to change the toolbars
- to fit your own needs by adding, deleting, and
- modifying toolbar buttons.
- A Make Toolbar
- B Control
- C Design
- D Customize
- 109
- How are logic errors and run-time errors
- generally discovered?
- A during unit testing in the implementation
- phase of the development cycle
- B during integration and other testing during the
- test phase of the development cycle
- C when users run the program
- D all of the above
- 110
- The ____ menu command on the toolbar
- shortcut menu allows you to change the toolbars
- to fit your own needs by adding, deleting, and
- modifying toolbar buttons.
- A Make Toolbar
- B Control
- C Design
- D Customize
- 111
- When you click the ____ command, Visual
- Basic .NET enters step mode and then displays
- the first executable statement highlighted in
- yellow.
- A Step To
- B Step Out
- C Step Into
- D Step Next
- 112
- Which area of the Desktop contains a clock?
- A the Icons
- B the start menu
- C the Quick Launch toolbar
- D the notification area
- 113
- The Toolbox window ___________.
- A displays the names of projects and files
- included in a solution
- B displays data connections and servers
- C displays items that you can use when creating
- a project
- D displays the classes, methods, and properties
- included in a solution
- 114
- A(n) ____ can be a control or form in the main
- work area or any item selected in the Solution
- Explorer window, including a solution, project,
- or other file.
- A method
- B object
- C click
- D property
- 115
- To save a solution to a disk you can _________.
- A click the Save button on the standard tool bar
- B select the form name in the Solution
- Explorer, then click save
- C select the project name in the Solution
- Explorer, then click save
- D select the solution name in the Solution
- Explorer, then click save
- 116
- The TextBox control Name property
- A sets the alignment of the text relative to the
- text box.
- B sets the alignment of the text relative to the
- form.
- C determines what text is displayed in the text
- box.
- D identifies a control for the programmer.
- 117
- A file extension indicates
- A what type of media the file is saved on.
- B what application the file was created in.
- C the file has been saved more than once.
- D there is a problem with the file.
- Page 17 of 54
- Go on to next page
- 118
- The TextBox control Text property
- A sets the alignment of the text relative to the
- text box.
- B sets the alignment of the text relative to the
- form.
- C determines what text is displayed in the text
- box.
- D identifies a control for the programmer.
- 119
- A given user interface must allow the user to
- enter any number for a taxpayer’s income; an
- input area with a ____ is best for this sort of
- input.
- A check box
- B radio button
- C drop-down menu
- D text box
- 120
- In Text boxes, ____ are used around values to
- tell Visual Basic .NET to treat their numeric
- contents as characters, rather than as a numeric
- value.
- A quotes
- B double quotes
- C brackets
- D question marks
- 121
- If the ____________________ property of a
- form is set to True, scroll bars will automatically
- appear if one or more control instances are
- placed outside of the form’s client area.
- A Scroll
- B StartPosition
- C FormScroll
- D AutoScroll
- 122
- A copy of a diskette is called a
- A backup.
- B formatted diskette.
- C copy diskette.
- D virus.
- 123
- A ____ extends the functionality of a text box
- by providing the ability to select an item from a
- predetermined list of values, in addition to
- typing a value.
- A combo box
- B list box
- C check box
- D radio button
- 124
- The Boolean ____________________ property
- of a menu item is used to define a checked menu
- item, which displays a check mark to the left of
- the menu text.
- A Checked
- B Enabled
- C Name
- D Visible
- 125
- It is common to use multiple ____ on a GUI
- form to capture combinations of related options
- that each have a true or false (checked or not
- checked) state.
- A radio buttons
- B check boxes
- C text boxes
- D list boxes
- 126
- A sentence like "A Double data type should be
- always stored as a Double data type!" would be
- best stored in which one of the following data
- types?
- A Integer
- B Long Integer
- C String
- D Double
- 127
- What does the rectangle shape represent in a
- flowchart?
- A start/end
- B input/output
- C processing
- D decision
- Page 18 of 54
- Go on to next page
- 128
- If intHours variable is dimensioned as an integer
- using the statement 'Dim intHours as Integer',
- then what is the initial value of this variable?
- _____
- A empty
- B Nothing
- C 0
- D 1
- 129
- A nested logic structure that determines which
- class (freshman, sophomore, junior, or senior) a
- student is in would require how many If
- statements using If/ElseIf/Else logic structures?
- A 1
- B 2
- C 3
- D 4
- 130
- If you assign a Double number, such as 3.2, to a
- memory location that can store only integers,
- then what will the value stored in the memory
- location be? _____
- A 4
- B 3
- C 3.0
- D an error will be raised
- 131
- Which of the following is a valid syntax
- variation for a Select Case statement?
- A Comparison operators can appear in a Case
- B You can use a comma separated list in a Case
- to specify a list of values
- C The To keyword can appear, allowing you to
- specify a range of values
- D All of the above
- 132
- Which is true about identifier names?
- A an identifier must begin with a letter
- B an identifier must contain a digit
- C an identifier can contain spaces
- D an identifier can be a keyword
- 133
- A sentence like "A Double data type should be
- always stored as a Double data type!" would be
- best stored in which one of the following data
- types?
- A Integer
- B Long Integer
- C String
- D Double
- 134
- When both the upper and lower bounds are
- known for a range when constructing a Case
- expression, it is best to use the _____ keyword
- in identifying the range.
- A From
- B Is
- C To
- D none of these
- 135
- If we wish to use a logical condition to
- determine if the AccountBalance is not more
- than CreditLimit which of the following is
- correct?
- A AccountBalance = CreditLimit
- B AccountBalance >= CreditLimit
- C AccountBalance <= CreditLimit
- D AccountBalance <> CreditLimit
- 136
- When only one bound is known for a range
- when constructing a Case expression, it is best
- to use the _____ keyword in identifying the
- range.
- A From
- B Is
- C To
- D none of these
- 137
- Which character begins a comment?
- A a colon (:)
- B a double quotation mark (")
- C a single quotation mark (')
- D a question mark (?)
- Page 19 of 54
- Go on to next page
- 138
- A meat packer grades meat "P" for Prime, "C"
- for Choice, "S" for Standard, and "G" for Good.
- Which of the following Case expressions is
- incorrect?
- A Case "P", "C"
- B Case "S"
- C Case "CGSP"
- D Case Else
- 139
- A nested logic structure that determines which
- class (freshman, sophomore, junior, or senior) a
- student is in would require how many End If
- statements using If/ElseIf/Else logic structures?
- A 1
- B 2
- C 3
- D 4
- 140
- A meat packer grades meat "P" for Prime, "C"
- for Choice, "S" for Standard, and "G" for Good.
- Which of the following case expressions is
- incorrect?
- A Case "P", "C"
- B Case "S"
- C Case "G"
- D All of these are correct
- 141
- A nested logic structure that determines which
- class (freshman, sophomore, junior, or senior) a
- student is in would require how many If
- statements using If/ElseIf/Else logic structures?
- A 1
- B 2
- C 3
- D 4
- 142
- A run-time error is also called a(n) ____.
- A logic error
- B syntax error
- C exception
- D configuration
- 143
- A nested logic structure that determines which
- class (freshman, sophomore, junior, or senior) a
- student is in would require how many If
- statements using If/Else logic structures?
- A 1
- B 2
- C 3
- D 4
- 144
- The Boolean ____________________ property
- of a menu item is used to define a checked menu
- item, that displays a check mark to the left of the
- menu text.
- A Checked
- B Enabled
- C Name
- D Visible
- 145
- A nested logic structure that determines which
- class (freshman, sophomore, junior, or senior) a
- student is in would require how many End If
- statements using If/Else logic structures?
- A 1
- B 2
- C 3
- D 4
- 146
- Which of the following statement applies to
- drawing lines?
- A Lines must always be horizontal
- B Lines must always be vertical
- C You can draw a line between any staring
- point and end point
- D The DrawLine method can be used to draw a
- curved line
- 147
- Which is not a property of the Label control?
- A Name
- B Text
- C Font
- D Style
- Page 20 of 54
- Go on to next page
- 148
- At the heart of all drawing operations is the
- _______ class. It supplies the methods to draw
- shapes to an output device, such as a window or
- printer.
- A Drawing
- B GDI
- C Display
- D Graphics
- 149
- At the heart of all drawing operations is the
- _______ class. It supplies the methods to draw
- shapes to an output device, such as a window or
- printer.
- A Drawing
- B GDI
- C Display
- D Graphics
- 150
- Which PictureBox control SizeMode property is
- set if the size of the picture is as designed, but
- there is a blank area to the right and below the
- picture?
- A AutoSize
- B CenterImage
- C Normal
- D StretchImage
- 151
- Which statement is included in the beginning of
- an event procedure to initialize the Rnd()
- function so that different random numbers are
- generated from run to run?
- A Initialize()
- B Random()
- C Randomize()
- D RndInt()
- 152
- Which object allows users to enter values?
- A a Label object
- B a Button object
- C a TextBox object
- D a MainMenu object
- 153
- If the property value for the SizeMode property
- of the PictureBox control is ____, then an image
- in the control will retain its original size as the
- user resizes the form.
- A CenterImage
- B AutoSize
- C StretchImage
- D Normal
- 154
- How many parameters are declared in the
- statement
- Sub CheckGuess(ByVal intFirst As Integer,
- ByVal intGuess As Integer)?
- A 1
- B 2
- C 3
- D 4
- 155
- If the property value for the SizeMode property
- of the PictureBox control is ____, then an image
- in the control will resize along with the control
- when the form resizes.
- A StretchImage
- B AutoSize
- C CenterImage
- D Normal
- 156
- When arguments are passed by reference, the
- ____ keyword is used before the argument name
- in the declaration to denote that the value is
- passed by reference.
- A ByVal
- B ByRef
- C Reference
- D PassBy
- 157
- The ____ property of a control reflects its name.
- A Name
- B What
- C Identity
- D Title
- Page 21 of 54
- Go on to next page
- 158
- What happens when an argument is passed by
- value?
- A VB .NET passes the memory address of the
- variable to the procedure
- B VB .NET passes an object to the procedure
- C VB .NET makes a copy of the variable and
- passes this copy to the procedure
- D None of the above
- 159
- Which of the following statements apply to both
- function and sub procedures?
- A Both accept 0 or more arguments
- B The Public and Private keywords describe the
- scope of the procedure
- C Arguments can be passed by value or by
- reference
- D All of the above
- 160
- If using Option Strict in a class module, what
- can be said of the As type clause as it appears in
- the argument list?
- A It is optional.
- B It is required.
- C It changes the way Option Strict handles data
- type conversions.
- D none of the above
- 161
- Dim strCities(3) As String
- How many elements are in the array declaration
- above? _____
- A 2
- B 3
- C 4
- D 5
- 162
- Which is not a property of the Label control?
- A Name
- B Text
- C Font
- D Style
- 163
- Which of the following statements apply to
- function procedures?
- A You use the Public and Private keywords to
- define the scope of a function procedure
- B Function procedures have a data type
- C You use the Return statement to return a
- value from a function procedure
- D All of the above
- 164
- In the ComboBox DropDownStyle property, the
- ____ value allows you to click an item in the
- drop-down list; typing an item directly in the
- ComboBox text box is disallowed.
- A Simple
- B DropDownList
- C DropDown
- D all of the above
- 165
- Which of the following statements is true of
- function 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 None of the above
- 166
- If the programmer wants to grant access to the
- original variable data the programmer should
- pass the data by _____.
- A reference
- B value
- C both a & b will protect the data
- D None of these
- 167
- Which button is the Autohide button in Visual
- Studio?
- A
- B
- C
- D
- Page 22 of 54
- Go on to next page
- 168
- All of the Visual Studio .NET languages are
- formally considered ____________________
- languages.
- A condition-oriented
- B organization-oriented
- C object-oriented
- D None of the above
- 169
- Which law restricts the way in which personal
- data can be used by federal agencies.
- A Fair Credit Reporting Act of 1970
- B Privacy Act of 1974
- C Electronic Freedom of Information Act of
- 1996
- D Financial Privacy Act of 1978
- 170
- Both the programmer and the user must ____
- the program design to make sure that it meets
- the requirements.
- A analyze
- B validate
- C implement
- D all of the above
- 171
- A program that is designed to reproduce itself
- by copying itself into other programs without
- the user’s knowledge is called
- A a bug.
- B a virus.
- C a reproduction.
- D an infection.
- 172
- ____ present a requirements document to
- programmers when they believe a particular
- problem can be solved by a program.
- A Supervisors
- B Managers
- C Users
- D all of the above
- 173
- ____________________ define the members
- (methods, properties, etc.) that other classes that
- implement them must support.
- A Interfaces
- B Enumerations
- C Structures
- D Methods
- 174
- The phrases written in a sentence structure that
- represent the steps a program must take to solve
- a particular problem are called _____.
- A a flowchart
- B pseudocode
- C an algorithm
- D a storyboard
- 175
- The ____________________ project type is a
- desktop application run directly by the end user
- via forms appearing on the desktop.
- A Windows Application
- B Forms Application
- C Common Application
- D User Application
- 176
- Which law gives individuals the right to see
- information maintained about them.
- A Fair Credit Reporting Act of 1970
- B Privacy Act of 1974
- C Electronic Freedom of Information Act of
- 1996
- D Financial Privacy Act of 1978
- 177
- Select the property that is used to give the text
- box a meaningful name that begins with “txt.”
- _____.
- A Font
- B Text
- C Name
- D ContextMenu
- Page 23 of 54
- Go on to next page
- 178
- A boolean variable should have a descriptive
- variable name with the first three characters
- starting with _____.
- A lgl
- B bln
- C byt
- D log
- 179
- In Visual Basic .NET, a profile is used to store
- personalized settings that define the ____.
- A keyboard shortcuts that apply
- B default filter to use when searching for help
- C layout of windows in the Visual Basic .NET
- IDE
- D any of the above
- 180
- Which is a difference in the way a form looks
- between the Design window and run time?
- A The form no longer displays a grid.
- B The form changes color.
- C The form gets much larger.
- D The form displays each object’s Name
- property.
- 181
- Which is a difference in the way a form looks
- between the Design window and run time?
- A The form no longer displays a grid.
- B The form changes color.
- C The form gets much larger.
- D The form displays each object’s Name
- property.
- 182
- When you are programming, the main work area
- of the Visual Basic .NET IDE displays the ____
- window.
- A menu
- B code
- C programming
- D Properties
- 183
- Which window displays the application
- interface and allows objects to be added,
- deleted, and sized?
- A the Start window
- B the Design window
- C the Code window
- D the application window
- 184
- When the IDE is in ____ time, you can make
- modifications to the forms and code of any
- application or component.
- A run
- B design
- C modification
- D change
- 185
- A Char variable should have a descriptive
- variable name with the first three characters
- starting with _____.
- A chr
- B car
- C cha
- D none of these
- 186
- The ____ setting tells Visual Basic .NET what
- tab or page to display in the main work area
- when you start Visual Basic .NET.
- A Start Page
- B Home Page
- C At Startup
- D Work Page
- 187
- In the VB .NET programming language, there
- are several kinds of programming errors that can
- occur. They are:
- A Typos, Case Sensitive, Accidental
- B Syntax, Logical, Run-Time
- C Running, Debugging, Controlling
- D None of the above
- Page 24 of 54
- Go on to next page
- 188
- You can type a topic in the ____ box to display
- a list of items related to that topic in the Index
- window in the Visual Basic .NET Help system.
- A Index Topic
- B Look for
- C Search
- D Display
- 189
- The Dynamic Help window __________.
- A displays the names of projects and files
- included in a solution
- B displays data connections and servers
- C displays the classes, methods, and properties
- included in a solution
- D displays links to context-sensitive help
- 190
- The ____ property determines the order in
- which Visual Basic .NET sets the focus on
- controls when a user presses the TAB key.
- A TabIndex
- B TabOrder
- C TabFocus
- D TabControl
- 191
- This feature of the Help system attempts to
- anticipate your help needs by displaying a list of
- Help topics as a tool window:
- A Index
- B Contents tab
- C Solution explorer
- D Dynamic Help
- 192
- ____ a control button on the Windows Form
- sheet adds a default-sized control to the upperleft
- corner of the form.
- A Drawing
- B Dragging
- C Double-clicking
- D all of the above
- 193
- When using the Visual Basic .NET Help system,
- you can narrow your searches by using the
- following command:
- A Index tab
- B Dynamic Help
- C Filtered by
- D Contents tab
- 194
- What is the extension of the file that contains
- the Visual Basic .NET instructions required to
- create a Windows Form object? _____
- A vb
- B cpp
- C cs
- D js
- 195
- You can access Help in many areas of the
- Visual Basic .NET IDE by pressing the ____
- key.
- A CTRL
- B HOME
- C ESC
- D F1
- 196
- The default value for the Text property is ____,
- a generic name that Visual Basic .NET assigns
- when creating the form.
- A 1Form
- B Form
- C NewForm
- D Form1
- 197
- A ____ enables selection of one or more
- predefined items from a list, or entry of a new
- value.
- A text box
- B button
- C combo box
- D check box
- Page 25 of 54
- Go on to next page
- 198
- Which of the following controls would you use
- so as to allow the user to select one item from a
- list of items?
- A List
- B ListBox
- C ItemList
- D ItemBox
- 199
- The Boolean ____________________ property
- of a menu item defines whether or not the user
- can use that menu item.
- A Checked
- B Enabled
- C ReadOnly
- D Editable
- 200
- You use the ____ property to set the value of the
- caption that describes the purpose of a check
- box.
- A Label
- B Caption
- C Text
- D Display
- 201
- The appropriate control that is used to display
- information to the user, but that cannot be
- changed by the user is a _____ control.
- A label
- B button
- C textbox
- D form
- 202
- Which would be the best choice of a name for a
- label component that prompts the user for a
- name?
- A name
- B lblName
- C label1
- D namelab
- 203
- The appropriate control that will perform an
- action after it is clicked by the user is a _____
- control.
- A label
- B button
- C textbox
- D form
- 204
- The ____________________ represents the
- order in which the control instances on a form
- get input focus as the user presses the Tab key.
- A tab order
- B tab sort
- C tab index
- D focus order
- 205
- In VB .NET, the ____________________
- control is used as a container for other control
- instances.
- A ActiveFrame
- B FrameBox
- C GroupBox
- D Container
- 206
- The Boolean ____________________ property
- of a menu item defines whether or not the user
- can use that menu item.
- A Name
- B Text
- C Caption
- D MenuItem
- 207
- A(n) ____ is an attribute of an object or control,
- such as its background color or the text that
- displays with it.
- A method
- B key
- C property
- D icon
- Page 26 of 54
- Go on to next page
- 208
- The default value for the Text property is ____,
- a generic name that Visual Basic .NET assigns
- when creating the form.
- A 1Form
- B Form
- C NewForm
- D Form1
- 209
- A(n) ____ statement is a code statement that
- changes the value of a variable or property of an
- object or control.
- A event
- B conditional
- C assignment
- D syntax
- 210
- A variable type that is appropriate to store a
- social security number (i.e. 472-65-9834) is
- _______.
- A Boolean
- B Long
- C Short
- D String
- 211
- The ____________________ event of a
- CheckBox control executes when the value of
- the Checked property changes.
- A CheckedChanged
- B Check
- C CheckState
- D None of the above
- 212
- A variable type that is appropriate to store a
- work phone number (i.e. 800-555-1212) is
- _______.
- A Boolean
- B Long
- C Short
- D String
- 213
- The Height property, the Width property, and
- the ____ property define the position and size of
- a TextBox control on an application window.
- A Size
- B Location
- C Position
- D Orientation
- 214
- To declare a variable that will store the value
- 0.113, you would use which of the following
- data types?
- A Single
- B Short
- C String
- D Long Integer
- 215
- The ____ property determines the order in
- which Visual Basic .NET sets the focus on
- controls when a user presses the TAB key.
- A TabIndex
- B TabOrder
- C TabFocus
- D TabControl
- 216
- Reference type variables do not contain data.
- Rather, they contain which of the following?
- A The memory address of the object
- B The value of the object's Text property
- C The system date and time when the object
- was created
- D All of the above
- 217
- Which of the following standard flowchart
- symbols is used to mark the beginning and end
- of a routine?
- A Oval
- B Rectangle
- C Parallelogram
- D Diamond
- Page 27 of 54
- Go on to next page
- 218
- A relational expression that is preceded by the
- ____ logical operator forms a condition that is
- false when the relational expression is true.
- A Not
- B Or
- C Rev
- D Off
- 219
- Which of the following is a characteristic of a
- multi-way If statement?
- A It always contains at least one ElseIf
- B The Else is optional
- C The End If statement marks the end of the
- multi-way If statement
- D All of the above
- 220
- A ____ loop is a good choice if you do not want
- to execute the statements within the loop body if
- the terminating expression is true.
- A counter-controlled
- B sentinel-controlled
- C pre-test
- D post-test
- 221
- If we wish to use a logical condition to
- determine if the AccountBalance is not less than
- CreditLimit which of the following is correct?
- A AccountBalance = CreditLimit
- B AccountBalance >= CreditLimit
- C AccountBalance <= CreditLimit
- D AccountBalance <> CreditLimit
- 222
- In a loop, a(n) ____, which is either true or
- false, determines whether the computer will
- execute the loop again.
- A executable
- B condition
- C range
- D unary operator
- 223
- The ____ logical operator requires only one of
- two or more conditions be true for the
- compound condition to be true.
- A Not
- B Or
- C And
- D Either
- 224
- The ____ structure is useful when the evaluation
- of a single expression can determine multiple
- paths.
- A If
- B Immediate IF
- C If..Then..Else
- D Select Case
- 225
- The ____ logical operator requires that both
- conditions be true for a compound condition to
- be true.
- A Or
- B Not
- C And
- D Both
- 226
- A selection structure that has several distinct
- alternatives all controlled by a common verb is
- ____________.
- A Select Case
- B Execute Case
- C Examine Case
- D Determine Case
- 227
- Which of the following is a more efficient and
- faster-executing substitute for the Do While
- statement?
- A If…While
- B If…Then
- C For…Next
- D Select Case
- Page 28 of 54
- Go on to next page
- 228
- When the statements of one For…Next loop lie
- within the range of another For…Next loop, the
- loops are said to be ____.
- A concatenated
- B conformed
- C looped
- D nested
- 229
- When the statements of one For…Next loop lie
- within the range of another For…Next loop, the
- loops are said to be ____.
- A concatenated
- B conformed
- C looped
- D nested
- 230
- To create a hot key for a menu item, which of
- the following characters must be typed in front
- of the menu item name?
- A &
- B *
- C @
- D #
- 231
- When a nested selection structure is
- encountered, the _____ decision is always made
- by the inner selection structure.
- A primary
- B secondary
- C binary
- D none of these
- 232
- The Boolean ____________________ property
- of a menu item defines whether or not the user
- can use that menu item.
- A Checked
- B Enabled
- C ReadOnly
- D Editable
- 233
- When a nested selection structure is
- encountered, the _____ decision is always made
- by the outer selection structure.
- A primary
- B secondary
- C binary
- D none of these
- 234
- When naming a MenuItem, you should use the
- ____ prefix to indicate a member of the
- MenuItem class.
- A mnu
- B menu
- C men
- D mn
- 235
- The numeric counter variable in a For...Next
- statement is _____.
- A always a negative integer
- B always a positive integer
- C initialized only once at the beginning of the
- loop
- D always initialized
- 236
- n a Windows application, a menu is composed
- of a collection of several menu items, including
- ____.
- A commands
- B menu separators
- C submenus
- D all of the above
- 237
- Which of the following statements is true
- regarding a pen?
- A Pens are used to draw lines
- B Pens are used to draw an outline around a
- rectangle
- C Pens have a color
- D All of the above
- Page 29 of 54
- Go on to next page
- 238
- If you are drawing a string to a graphical output
- device, you use what object to fill the characters
- that make up the string?
- A Pen
- B Brush
- C Rectangle
- D None of the above
- 239
- Which of the following properties of the
- PictureBox control contains the image displayed
- in the control instance?
- A SizeMode
- B Picture
- C BorderStyle
- D Image
- 240
- Which Math class method returns the Integer
- value 1, –1, or 0 when a number is positive,
- negative, or 0 respectively.
- A Abs()
- B Sqrt()
- C Sign()
- D Value()
- 241
- If you wanted to fill a shape, such as a
- Rectangle, with a solid color you would use a
- _______.
- A LinearGradientSolid
- B LinearSolidBrush
- C SolidBrush
- D SolidPen
- 242
- The ____________________ control fires an
- event named Tick at regular intervals as defined
- by its Interval property.
- A Clock
- B TimerTick
- C Stopwatch
- D Timer
- 243
- The _______ property defines the color of a
- pen. It is possible to use predefined colors or to
- use custom colors.
- A PenColor
- B ColorPen
- C Color
- D Pen
- 244
- Which SizeMode property is set if the size of
- the picture is as designed, but there is a blank
- area surrounding the picture?
- A AutoSize
- B CenterImage
- C Normal
- D StretchImage
- 245
- The _______ provides the means by which
- Windows displays text, lines, rectangles, and
- more complex shapes.
- A Graphical Device Interface (GDI+)
- B Windows Drawing Interface (WDI)
- C Graphical Drawing Methods (GDM)
- D Drawing Management System (DMS)
- 246
- Which SizeMode property may distort some
- images because it sizes an image to fit the
- picture box?
- A AutoSize
- B Normal
- C StretchImage
- D CenterImage
- 247
- The statement Me.lblRandNum.Text =
- Rnd()*100 generates random numbers
- A less than or equal to 100.
- B greater than or equal to 0 and less than 100.
- C greater than or equal to 100.
- D greater than or equal to 1 and less than or
- equal to 100.
- Page 30 of 54
- Go on to next page
- 248
- How many arguments are passed in the
- statement
- Call CheckGuess(intAnswer, intGuess)?
- A 1
- B 2
- C 3
- D 4
- 249
- Visual Basic .NET programmers can display
- messages to the user in a pop-up window called
- a ____ box.
- A display
- B message
- C notice
- D warning
- 250
- Given a Dim statement of Dim intBalance(4) As
- Integer, which of the following elements are
- valid?
- A intBalance(-4)
- B intBalance(4)
- C intBalance(5)
- D all of the above
- 251
- The keyword used for a procedure that is called
- only from other procedures in the same form is:
- _____.
- A Protected
- B Sub
- C Public
- D Private
- 252
- Before arrays can be used, the amount of
- memory to be reserved must be declared in the
- program using the ____ statement for arrays.
- A Declare
- B Dim
- C Reserve
- D Var
- 253
- Function procedures
- A perform several related tasks.
- B alter arguments after they have been passed.
- C must be called from another procedure using
- the Call statement.
- D perform a specific task and then return a
- value.
- 254
- Which class provides constants that are used to
- determine which buttons should be displayed for
- a MessageBox?
- A MessageBoxIcons
- B MessageBoxButtons
- C Buttons
- D MessageBox
- 255
- The arguments in a Call statement must
- A correspond in order to the parameters in the
- procedure being called.
- B have the same names as the corresponding
- parameters in the procedure being called.
- C correspond to ByRef parameters only.
- D correspond to ByVal parameters only.
- 256
- In order to display a message box with a title in
- the title bar, you use the ____ method of the
- MessageBox class.
- A Display()
- B Show()
- C Notice()
- D Warning()
- 257
- Before arrays can be used, the amount of
- memory to be reserved must be declared in the
- program using the ____ statement for arrays.
- A Declare
- B Dim
- C Reserve
- D Var
- Page 31 of 54
- Go on to next page
- 258
- Given a Dim statement of Dim intBalance(4) As
- Integer, which of the following elements are
- valid?
- A intBalance(-4)
- B intBalance(4)
- C intBalance(5)
- D all of the above
- 259
- Which of the following statements assigns the
- value of 5 to the fourth element in an array
- named myArr?
- A myArr(3) = 5
- B myArr(4) = 5
- C myArr(5) = 5
- D myArr[4] = 5
- 260
- Which of the following buttons would minimize
- an application?
- A
- B
- C
- D None of these
- 261
- The procedure header for a sub procedure will
- show the variables which are called _____.
- A arguments
- B parameters
- C values
- D None of these
- 262
- Variables and constants contained inside the
- parentheses on a call are referred to as _____.
- A parameters
- B arguments
- C values
- D None of these
- 263
- Assuming that a ListBox named lstQuestion
- exists, which of the following statements
- correctly adds an item to the ListBox?
- A lstQuestion.Item.Add("Question")
- B lstQuestion.AddItem("Question")
- C lstQuestion.Items.Add("Question")
- D None of the above
- 264
- Which of the following buttons would maximize
- an application?
- A
- B
- C
- D None of these
- 265
- Which of the following buttons would close an
- application?
- A
- B
- C
- D None of these
- 266
- Which language is useful for business
- applications?
- A COBOL
- B LISP
- C C++
- D BASIC
- 267
- Which language was used to aid scientific and
- mathematical programmers?
- A FORTRAN
- B BASIC
- C COBOL
- D LISP
- Page 32 of 54
- Go on to next page
- 268
- How many states do the electrical circuits on an
- IC (integrated circuit) have?
- A one: on
- B two: on, off
- C four: + - * /
- D three: on, off, wait
- 269
- ___________________ is the decimal
- representation of the binary number 1100.
- A 12
- B 9
- C 10
- D 11
- 270
- Classes ____ from superclasses and ____
- interfaces.
- A implement, inherit
- B inherit, implement
- C instantiate, designate
- D inherit, associate
- 271
- ___________________ is the decimal
- representation of the binary number 10001.
- A 15
- B 17
- C 16
- D 18
- 272
- By default, Visual Basic .NET creates a hidden
- ____ for each class that you create.
- A moderator
- B constructor
- C object manager
- D aggregator
- 273
- Which of the following is a benefit of components?
- A heightened data integrity
- B improved performance
- C reusability
- D all of the above
- 274
- _________ is the binary representation of the
- decimal 42.
- A 101011
- B 100011
- C 110011
- D 101010
- 275
- Every object in Visual Basic .NET includes a(n)
- ____.
- A aggregator
- B object manager
- C moderator
- D constructor
- 276
- _____________ is the binary representation of
- the decimal 27
- A 11011
- B 10111
- C 11101
- D 10011
- 277
- ____ are a type of reusable component in objectoriented
- programming.
- A Commands
- B Constructors
- C Collections
- D Classes
- 278
- The way an application looks on the screen is
- referred to as the
- A interface.
- B design.
- C display.
- D program.
- 279
- Which of the following contributes to look and
- feel?
- A font
- B background color
- C size and location of buttons
- D All of the above
- Page 33 of 54
- Go on to next page
- 280
- Which key moves the insertion point to the
- beginning of the line of text?
- A the Ctrl key
- B the Home key
- C the Esc key
- D the End key
- 281
- What is a pictorial representation of a step-bystep
- solution to a problem?
- A program
- B flowchart
- C an algorithm
- D pseudocode
- 282
- The default button in a dialog box can be
- selected by pressing the
- A Enter key.
- B Esc key.
- C Alt key.
- D Ctrl key.
- 283
- When Windows XP is running, the computer
- screen is referred to as the
- A Access the account of another user.
- B Never change your password.
- C Share your password.
- D Be considerate of other people’s beliefs.
- 284
- Which is not a version of the Windows
- operating system?
- A Windows 2000
- B Windows ME
- C Windows NOW
- D Windows XP
- 285
- A collection of related data stored on a lasting
- medium is called a(n)
- A file.
- B extension.
- C project.
- D web page.
- 286
- When Windows XP is running, the computer
- screen is referred to as the
- A ScreenTip.
- B GUI.
- C Desktop.
- D window.
- 287
- Which key is used to cancel the current
- operation?
- A the Delete key
- B the Cancel key
- C the Esc key
- D the End key
- 288
- What is the input/output symbol in
- flowcharting?
- A square
- B oval
- C diamond
- D parallelogram
- 289
- A decision is represented by which shape in a
- flowchart?
- A square
- B oval
- C diamond
- D parallelogram
- 290
- The name of a Visual Basic .NET variable must
- begin with a(n) _______.
- A number
- B letter
- C underscore
- D punctuation
- 291
- A ____ is assigned a literal value that does not
- change.
- A variable
- B constant
- C parameter
- D structure
- Page 34 of 54
- Go on to next page
- 292
- Which of the following is a phase in the
- development cycle of a program?
- A analyze requirements
- B document solution
- C implement design
- D all of the above
- 293
- ____ facilitate program readability,
- understandability, and maintainability.
- A Variables
- B Naming conventions
- C Data types
- D Structures
- 294
- The characteristics that describe the object are
- called _____.
- A methods
- B properties
- C instances
- D abstractions
- 295
- Why is 'Print' NOT a valid variable name?
- A It does not start with a number.
- B It does not have underscore as one of its
- character.
- C It is a Visual Basic .NET reserved word.
- D It should be at least 6 characters.
- 296
- The set of characteristics that control an object's
- appearance and behavior is called ____.
- A attributes
- B events
- C global settings
- D properties
- 297
- An item of data whose value does NOT change
- while the application is running is _____.
- A a literal constant
- B a named constant
- C a literal type character
- D a variable
- 298
- Which of the following is not an example of a
- literal constant?
- A "Martin"
- B 500
- C State
- D 3.14
- 299
- The Visual Basic .NET verb to create a variable
- is ______.
- A Declare
- B Create
- C Dim
- D none of these
- 300
- In many programming languages, ____ is used
- to visually identify groups of related statements.
- A constant
- B variable
- C indentation
- D parameter
- 301
- Clicking the ____ button saves all the files
- associated with a project.
- A Total Save
- B Save
- C Save All
- D Save Selected Items As
- 302
- A ____ is assigned a literal value that does not
- change.
- A variable
- B constant
- C parameter
- D structure
- 303
- Which area of the IDE is used to switch between
- the Design and Code windows?
- A the Toolbox
- B the Start Page
- C the Solution Explorer window
- D the Properties window
- Page 35 of 54
- Go on to next page
- 304
- ____ improve program readability and also
- facilitate program maintenance.
- A Numeric values
- B Variables
- C Constants
- D Integers
- 305
- Which area of the IDE contains controls that are
- used to create objects?
- A the Toolbox
- B the Start Page
- C the Solution Explorer window
- D the Properties window
- 306
- ____ facilitate program readability,
- understandability, and maintainability.
- A Variables
- B Naming conventions
- C Data types
- D Structures
- 307
- In Visual Basic .NET, ____ are declared at the
- lowest possible level.
- A constants
- B parameters
- C variables
- D strings
- 308
- Which area of the IDE contains controls that are
- used to create objects?
- A the Toolbox
- B the Start Page
- C the Solution Explorer window
- D the Properties window
- 309
- Which area of the IDE is used to change the text
- displayed in a Label object?
- A the Toolbox
- B the Start Page
- C the Solution Explorer window
- D the Properties window
- 310
- Which type of error produces undesired or
- unexpected results?
- A syntax error
- B logic error
- C dynamic error
- D run-time error
- 311
- A Watch window can be used to
- A display the application interface.
- B examine values during the execution of a
- program.
- C switch to the Code window.
- D display online help.
- 312
- Misspelling the word Integer would result in
- which type of error?
- A syntax error
- B logic error
- C dynamic error
- D run-time error
- 313
- A statement that has been marked as a stopping
- point is called a
- A Watching statement.
- B breakpoint.
- C debug statement.
- D stop point.
- 314
- Clicking the ____ button saves all the files
- associated with a project.
- A Total Save
- B Save
- C Save All
- D Save Selected Items As
- 315
- Misspelled keywords and variable names are
- examples of ____ errors.
- A logic
- B execution
- C configuration
- D syntax
- Page 36 of 54
- Go on to next page
- 316
- To start an application using the menu bar you
- would click _________ and then click start.
- A Debug
- B Project
- C View
- D Build
- 317
- Which type of error halts the program when a
- statement cannot be executed?
- A syntax error
- B logic error
- C dynamic error
- D run-time error
- 318
- Visual Basic .NET allows you to add variables
- and expressions to up to ____ Watch windows.
- A three
- B four
- C six
- D eleven
- 319
- The ____ window displays variables within the
- scope of the current procedure.
- A Locals
- B Current
- C This
- D Me
- 320
- Which of the following buttons are by default on
- an applications title bar?
- A minimize
- B maximize
- C close
- D all of the above
- 321
- What would Visual Studio .NET name the first
- form file you create?
- A Module1.vb
- B Form1.vb
- C Form1.frm
- D F1.vb
- 322
- The Form window is an instance of Visual
- Basic's ____ class.
- A derived
- B abstract
- C object
- D form
- 323
- Which of the following would be appropriate as
- an object name?
- A Last.Name
- B FirstName
- C #HoursWorked
- D $PayRate
- 324
- To hide a Help window, ____ the tab of the
- window and click Hide on the shortcut menu.
- A click
- B right-click
- C double-click
- D triple-click
- 325
- Which of the following would be appropriate as
- an object name?
- A Last_Name
- B 9DigitZip
- C txtHoursWorked
- D a and c are appropriate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement