Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
VB Chapter 004 Decisions and Conditions 1) In an If statement, when the expression is true, _______. Only the Else clause is executed B. Only the...
VB Chapter 004 Decisions and Conditions1) In an If statement, when the expression is true, _______. A. Only the Else clause is executedB. Only the ElseIf clause is executedC. Only the End If statement is executedD. Only the Then clause is executed2) Which of the following is a comparison operator? A. AndB. >C. +D. &3) When comparing strings, which one of the following strings is less than the others, based on the ANSI code? A. ONETWOTHREEB. onetwothreeC. OneTwoThreeD. 1Two34) ______________ will be the result of: MessageText .Text = MessageText .Text.ToUpper() when the value of MessageText .Text is "Visual Basic is fun!". A. Visual Basic is fun!B. VISUAL BASIC IS FUN!C. visual basic is fun!D. VisualBasicisfun!5) What will display in MessageLabel when the following statements are executed? Assume that CountInteger = 10. MessageString = "Visual Basic is fun"IF CountInteger <= 10 ThenMessageLabel.Text = MessageString.ToLower()ELSEIF CountInteger > 20 ThenMessageLabel.Text = MessageString.ToUpper()ELSEMessageLabel.Text = MessageStringEND IF A. VISUAL BASIC IS FUNB. Visual Basic Is FunC. visual basic is funD. syntax error6) Which of the following is NOT a logical operator? A. IfB. OrC. AndD. Not7) With the logical operator _______ , both expressions must be true for the entire expression to evaluate True. A. AndB. OrC. AndAlsoD. OrElse8) With the logical operator _______ , if the first expression is True, the second expression will not be evaluated. A. AndB. OrC. AndAlsoD. OrElse9) Which of the following is correct code for determining if a checkbox is checked? A. If Senior.Checkbox = True ThenB. If SeniorCheckBox.Checked = True ThenC. If SeniorCheckBox.Checked ThenD. Both answers B and C are correct.10) An If contained within another If statement is _______. A. A nested IfB. A compound expressionC. An embedded contradictionD. Impossible to do in VB11) Nested Ifs are allowed, _______. A. But you are limited to only 4 levels of IfsB. But each If must have an End IfC. Can be difficult to follow if they are nested too deeplyD. Both answers b and c are correct.12) Use the Visual Studio intrinsic constant, _______, to determine line endings. A. VB.MultilineB. Environment.NewLineC. VS.NewLineD. VB.NewLine13) The Show method of a MessageBox returns a _______ object that you can check to see which button the user clicked. A. ShowB. ShowMeC. SelectedD. DialogResult14) Checking to verify that appropriate values have been entered for a text box is called _______. A. verificationB. validationC. a MessageBoxD. a watch expression15) Which of the following statements does NOT apply to the Case structure? A. It can be used instead of nested Ifs.B. It can be used for testing numeric and string values.C. It must begin with Select Case and it must end with End Case.D. Case Else is optional.16) The Select Case statement is a code structure used for ________. A. repetitionB. selectionC. sequenceD. none of these17) The Select Case statement must end with __________. A. End SelectB. End CaseC. Select EndD. Case End18) _______ is an optional clause available for the Case Structure when no match is found in any of the Case statements. A. Case ElseB. DefaultC. ElseIfD. Else Case19) What is the value of MysteryInteger when the following statements are executed? Const NUMBER_Integer As Integer = 10Select Case NUMBER_IntegerCase 1, 3, 5, 7, 9MysteryInteger = NUMBER_IntegerCase 2, 4, 6, 8, 10MysteryInteger = NUMBER_Integer + 1 * 2Case ElseMysteryInteger = NUMBER_Integer * 2 + 1End Select A. 10B. 12C. 21D. 2220) When you share an event procedure with radio buttons, Visual Basic creates and passes a system variable object named, _______, which has a name property containing the name of the selected button. A. senderB. integerC. sourceD. number 21) You can write a set of instructions in an event procedure and then ________ the event procedure from any other procedure. A. declare the variables inB. force a break inC. use Option Explicit inD. call22) The Debug.WriteLine method will display its results in the ________ window. A. DebugB. ImmediateC. WriteLineD. Breakpoint23) You can use _______________ as your project executes in order to view the values of variables and control contents that are referenced in the current statement and a few statements on either side of the current statement. A. the Locals windowB. the Procedure BoxC. the Autos windowD. Step Into24) The _______ displays all objects and variables that are within scope during a break in program execution. A. the Locals windowB. the Procedure BoxC. the Autos windowD. Step Into