adplus-dvertising

Welcome to the Selection Structures MCQs Page

Dive deep into the fascinating world of Selection Structures with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Selection Structures, a crucial aspect of Visual Basic. In this section, you will encounter a diverse range of MCQs that cover various aspects of Selection Structures, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Visual Basic.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Selection Structures. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Visual Basic.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Selection Structures. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Selection Structures MCQs | Page 3 of 7

Explore more Topics under Visual Basic

Q21.
String comparison in Visual basic is case-sensitive.
Discuss
Answer: (a).True
Q22.
__________ is used to converting a string to uppercase.
Discuss
Answer: (a).toUpper
Q23.
The __________ operator reverses the value of the condition.
Discuss
Answer: (c).NOT
Q24.
If the txtPrice control contains the value 75, what value will the variable=Decimal.TryParse (txtPrice.Text,decPrice) method return?
Discuss
Answer: (b).True
Q25.
If the txtPrice control contains the value 75, what value will the Decimal.TryParse (txtPrice.Text,decPrice) method return?
Discuss
Answer: (d).75.00
Q26.
What will be the output of the following Visual Basic code, If the intnumber variable is 90?
If intnumber<=100 Then
   Intnumber=intnumber*2;
Else
   Intnumber=intnumber*3;
EndIf
Discuss
Answer: (c).180
Q27.
What will be the output of the following Visual Basic code, If the intnumber variable is 110?
If intnumber<=100 Then
   Intnumber=intnumber*2;
Else
   Intnumber=intnumber*3;
EndIf
Discuss
Answer: (d).330
Q28.
Which is used to check both the conditions in a given if statement?
Discuss
Answer: (b).AndAlso
Q29.
Which is used to check one among both the conditions in a given if statement?
Discuss
Answer: (a).OrElse
Q30.
In the following Visual Basic code, what will be in msg, if str contains โ€œikโ€?
Dim str as String
Dim  msg as String
If str.toUpper=โ€IKโ€ 
   msg=โ€Hiโ€
Else
   msg=โ€Byeโ€
EndIf
Discuss
Answer: (a).Hi
Page 3 of 7

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!