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 5 of 7

Q41.
Selection structures that can select from many alternatives are known as __________
Discuss
Answer: (b).Multiple-alternative selection structures
Q42.
What will be contained in Msg if grade entered by user is ‘d’?
If grade==”A”
    Msg =”Excellent”
ElseIf grade==”B”
    Msg=”Very Good”
ElseIf  grade==”C”
    Msg=”Good”
ElseIf grade==”D”
    Msg=”Fair”
Else
    Msg=”Fail”
EndIf
Discuss
Answer: (b).Fail
Q43.
What will be contained in Msg if grade entered by user is ‘d’?
grade=grade.Text.ToUpper
If grade==”A”
  Msg =”Excellent”
ElseIf grade==”B”
  Msg=”Very Good”
ElseIf  grade==”C”
  Msg=”Good”
ElseIf grade==”D”
  Msg=”Fair”
Else
  Msg=”Fail”
EndIf
Discuss
Answer: (a).Fair
Discuss
Answer: (c).Select case Statement
Q45.
The select case statement ends with __________
Discuss
Answer: (b).End Select clause
Q46.
Which of the following Case clauses is invalid in a Select Case statement whose selectorExpression is an Integer variable named intCode?
Discuss
Answer: (d).Case “A”
Q47.
__________ must be the last clause in the Select Case statement.
Discuss
Answer: (a).Case Else
Q48.
What will be in text, if Intid contains 2?
Select Case Intid
Case 1
  Text=”Jannet”
Case 2 to 4
  Text=”Mark”
Case 5, 7
  Text=”Jerry”
Case Else
  Text=”Sue”
End Select
Discuss
Answer: (b).Mark
Q49.
What will be in text, if Intid contains 3?
Select Case Intid
Case 1
  Text=”Jannet”
Case 2 to 4
  Text=”Mark”
Case 5, 7
  Text=”Jerry”
Case Else
  Text=”Sue”
End Select
Discuss
Answer: (b).Mark
Q50.
What will be in text, if Intid contains 6?
Select Case Intid
Case 1
  Text=”Jannet”
Case 2 to 4
  Text=”Mark”
Case 5, 7
  Text=”Jerry”
Case Else
  Text=”Sue”
End Select
Discuss
Answer: (d).Sue
Page 5 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!