Saturday, September 14, 2019
Multiple Choice Test on Visual Basic
Question 1 2 / 2 points The ____ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic.A)à InputBoxB)à DialogBoxC)à OutputBoxD)à ShowBoxQuestion 2 2 / 2 points A variable that has block scope can be used ____.A)à within the procedure in which it is declaredB)à only within the statement block in which it is declaredC)à within any statement blocks in the programD)à within any procedures in the programQuestion 3 2 / 2 points All expressions containing a comparison operator will result in a(n) ____ answer.A)à floating-pointB)à integerC)à true or falseD)à stringQuestion 4 2 / 2 points When using theà Select Caseà statement, the data type of the ____ must be compatible with the data type of theà selectorExpression.A)à Caseà expressionB)à Case Elseà clauseC)à instructionsD)à expressionsQuestion 5 2 / 2 points The expressionà 1 To 5à in theà Case 1 To 5à clause specifies the range of numbers from ____.A)à 2 to 5, inclusiveB)à 2 to 4, inclusiveC)à 1 to 4, inclusiveD)à 1 to 5, inclusiveQuestion 6 0 / 2 points In situations where the selection structure has many paths from which to choose, it is often simpler and clearer to code the selection structure using the ____ statement.A)à Select CaseB)à Begin/EndC)à If/ThenD)à Do/LoopQuestion 7 2 / 2 points The ____ in a flowchart represents the multiple-alternative selection structureââ¬â¢s condition.A)à circleB)à diamondC)à squareD)à triangleQuestion 8 0 / 2 points If and for how long the instructions are repeated in a repetition structure is determined by the ____.A)à if conditionB)à loop exit statementC)à loop determinantD)à loop conditionQuestion 9 2 / 2 points ____ means to assign a beginning value to the counter or accumulator.A)à ImprintingB)à BaseliningC)à SelectingD)à InitializingQuestion 10 2 / 2 points To prevent a text box from accepting an inappropriate character, you first use the ____ parameterââ¬â¢sà KeyCharà property to determine the pressed key.A)à tB)à aC)à eD)à pQuestion 11 0 / 2 points To include two groups of radio buttons in an interface, at least one of the groups must be placed within a ____, such as a group box, panel, or table layout panel.A)à CaseB)à structureC)à containerD)à statementQuestion 12 0 / 2 points The number of choices the user can select in a list box is controlled by the list boxââ¬â¢s ____ property.A)à SelectionItemB)à SelectionModeC)à SelectionVariableD)à SelectionQuestion 13 2 / 2 points A(n) _____ decision is always made by an outer selection structure.A)à dynamicB)à staticC)à primaryD)à secondaryQuestion 14 2 / 2 points You add a radio button to a form using the ____ tool in the toolbox.A)à RadioButtonB)à RadioC)à ButtonD)à RadioToolQuestion 15 0 / 2 points You use the ____ method to convert a string to uppercase.A)à UpperB)à ConvertUpperC)à ParseUpperD)à ToUpperQuestion 16 2 / 2 points You use the ____ keyword when you know only one end of a range (either the upper or lower end).A)à IsB)à AllC)à ToD)à FromQuestion 17 2 / 2 points A(n) ____ decision is always made by a nested selection structure.A)à staticB)à dynamicC)à primaryD)à secondary
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.