Question
If intnumber<=100 Then
Intnumber=intnumber*2;
Else
Intnumber=intnumber*3;
EndIf
a.
156
b.
270
c.
180
d.
330
Posted under Visual Basic
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 output of the following Visual Basic code, If the intnumber variable is 110?
Similar Questions
Discover Related MCQs
Q. Which is used to check both the conditions in a given if statement?
View solution
Q. Which is used to check one among both the conditions in a given if statement?
View solution
Q. When a selection structure’s true part or false part contains another selection structure, the inner selection structured is referred to as __________
View solution
Q. Most common error that occur in selection structure is __________
View solution
Q. __________ refers to the process of checking your algorithm while seated at your desk.
View solution
Q. A nested selection structure can be contained in ____________________ of another selected structure.
View solution
Q. Selection structures that can select from many alternatives are known as __________
View solution
Q. Which is an easier alternative of multiple-alternative selection structure?
View solution
Q. The select case statement ends with __________
View solution
Q. Which of the following Case clauses is invalid in a Select Case statement whose selectorExpression is an Integer variable named intCode?
View solution
Q. __________ must be the last clause in the Select Case statement.
View solution
Q. Variables declared using a structure is known as ___________________
View solution
Q. You refer to the structure variable by its ____________
View solution
Q. You refer to the member variable by preceding its name with the name of the _________________________ in which it is defined.
View solution
Q. Programmers use _________________ when they need to pass a group of related variables.
View solution
Q. Programmers use ________________ when they need to store related items in an array, even though the members have different data type.
View solution
Q. Which statement is used to create a user-defined data type?
View solution
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?
View solution
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?
View solution
Q. An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Visual Basic? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!