If an If statement contains three or more conditions connected with both and & or , how are the conditions connected? Conditions in parentheses are connected first, then conditions around and and...



  1. If an

    If

    statement contains three or more conditions connected with both

    and

    &

    or
    , how are the conditions connected?

  2. Conditions in parentheses are connected first, then conditions around

    and

    and finally conditions around

    or
    .

  3. Conditions in parentheses are connected first, then conditions around

    or

    and finally conditions around

    and
    .

  4. Conditions are connected in the order that they are coded.

  5. Three or more conditions in an

    if

    instruction is not supported in Visualbasic.

  6. None of the above--------------------------------------------------------------


Which of the following is not allowed in the coding of a decision operation?





  1. Or




  2. And




  3. Not


  4. All of the above are legal

  5. None of the above is legal----------------------------------------------------------


Which type of looping structure is best to use when the number of loop repetitions is known?





  1. Do While

    loop



  2. Do Until





  3. For Next


  4. Boolean loop

  5. None of the above


  6. ----------------------------------


Which type of looping structure is generally used when the number of loop repetitions is not known?





  1. Do While loop




  2. Do Until loop




  3. For Next


  4. Either a or b

  5. None of the above


-----------------------------



  1. If the step value is positive, a

    For Next

    loop terminates when:

  2. The loop variable is greater than or equal to the stop value

  3. The loop variable is less than or equal to the stop value

  4. The loop variable is greater than the stop value

  5. The loop variable is less than the stop value

  6. None of the above




  1. If the step value is negative, a

    For Next

    loop continues to execute as long as:

  2. The loop variable is greater than or equal to the stop value

  3. The loop variable is less than or equal to the stop value

  4. The loop variable is greater than the stop value

  5. The loop variable is less than the stop value

  6. None of the above


Which of the following is mandatory in the coding of the arguments for a

For Next

loop?



  1. Start value

  2. Stop value

  3. Step value

  4. Both a and b

  5. All of the above




  1. What is the value of the following expression:

    9 * 2 - 8 > 5 + 2 / 2
    ?

  2. 10

  3. 6

  4. True

  5. False

  6. None of the above


Which of the following programming concepts relates to situations where part of the programming specifications requires a determination of the number of times an activity in the program execution is occurring?



  1. Accumulators

  2. Input validation

  3. Counters

  4. Sequencing

  5. None of the above


If the intQuantity and decPrice variables contain the numbers 3 and 15.75, respectively, the condition

If intQuantity > 0 And intQuantity < 10="" or="" decprice=""> 20

will evaluate to:



  1. True

  2. False

  3. It cannot be determined

  4. An error would be generated by this statement

  5. None of the above


Which of the following has the most limited scope?



  1. A variable declared at the beginning of a procedure

  2. A variable declared in a

    For Next

    loop

  3. A static variable declared at the beginning of a procedure

  4. A class level variable

  5. None of the above


Which of the following describes a nested

If
?



  1. An

    if

    inside a

    do


    while

    loop

  2. An

    if

    inside a

    For Next

    loop

  3. An

    if

    inside an

    if


  4. An

    if

    without an

    else


  5. None of the above


Which of the following is the line continuation character?



  1. \ - backslash

  2. - hyphen

  3. _ underscore

  4. # hash symbol

  5. None of the above


To prevent a text box from accepting inappropriate characters, you first use the e parameter’s ____ property to determine the key that the user pressed.



  1. KeyDown

  2. KeyEnter

  3. KeyChar

  4. KeyPress

  5. None Of the above




  1. What type of variable is x after the following statement is executed?

    x = 9 * 2 - 8 > 5 + 2 / 2


  2. Double

  3. Integer

  4. Decimal

  5. String

  6. None of the above


Which of the following conditions will evaluate to True when the intPackages variable contains the value 100?





  1. If intPackages = 100




  2. If intPackages <> 0




  3. If intPackages > 1


  4. All of the above

  5. None of the above


Which of the following statements assigns the contents of the txtGrade control, in uppercase, to the strGrade variable?





  1. If strGrade = txtGrade.Text.ToUpper Then




  2. ToUpper = txtGrade.Text




  3. strGrade = txtGrade.Text.ToUpper




  4. Text.ToUpper = strGrade


  5. none of the above


You can use a(n) ____ to visually separate related controls from other controls on the form.



  1. Radio button

  2. Check box

  3. Group box

  4. Icon area

  5. None of the above


A control’s ____ event occurs each time the user presses a key while the control has the focus.



  1. PressEnter

  2. KeyEnter

  3. KeyPress

  4. GotFocus

  5. None of the above


The number of choices the user can select from a list box is controlled by the list box’s ____ property.



  1. SelectionCount

  2. SelectionControl

  3. SelectionMode

  4. SelectionIndex

  5. None of the above


If the
stepValue
is omitted when coding a

..Next

statement, the
stepValue
is ____ at execution time.



  1. -1

  2. 0

  3. The step value will not be assigned as the loop will not execute and control will flow to the statement following the loop

  4. An error will be generated and the program will abnormally terminate

  5. None of the above


When you pass a variable
____, the computer passes only the value of the variable to the receiving procedure.



  1. By reference

  2. By parameter

  3. By argument

  4. By datatype

  5. None of the above


Which of the following is a valid Return statement?





  1. dblNumber return




  2. return dblNumber ByRef




  3. return ByRef dblNumber




  4. return dblNumber


  5. none of the above

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here