adplus-dvertising
frame-decoration

Question

What will be the content of Text after the code is executed with id=8?
If id==1 Then
    Text=”Janet”;
Elseif id==2 OrElse id==3 Then
   Text=”Mark”
ElseIF id==4 Then
    Text=”Jerry”
Else
  Text=”Sue “;
EndIf

a.

Janet

b.

Mark

c.

Jerry

d.

Sue

Posted under Visual Basic

Answer: (d).Sue

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the content of Text after the code is executed with id=8?

Similar Questions

Discover Related MCQs

Q. A nested selection structure can be contained in ____________________ of another selected structure.

Q. Selection structures that can select from many alternatives are known as __________

Q. Which is an easier alternative of multiple-alternative selection structure?

Q. The select case statement ends with __________

Q. Which of the following Case clauses is invalid in a Select Case statement whose selectorExpression is an Integer variable named intCode?

Q. __________ must be the last clause in the Select Case statement.

Q. Variables declared using a structure is known as ___________________

Q. You refer to the structure variable by its ____________

Q. You refer to the member variable by preceding its name with the name of the _________________________ in which it is defined.

Q. Programmers use _________________ when they need to pass a group of related variables.

Q. Programmers use ________________ when they need to store related items in an array, even though the members have different data type.

Q. Which statement is used to create a user-defined data type?

Q. A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string “Maple” to the member variable?

Q. An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?

Q. An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?

Q. In most applications, the code to define a user-defined data type is entered in the form’s.

Q. Reading data from a file is referred to as ________________

Q. Writing data to a file is referred to as ______________

Q. The file to which data is write is referred to as _______________

Q. Files that are read by computer are called as _________________