The document contains 30 multiple choice questions about Visual Basic concepts like data types, control properties, syntax and programming structures. Key topics covered include arrays, sorting, converting data types, displaying messages and controlling forms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
35 views
Dim Len As Integer C) 4
The document contains 30 multiple choice questions about Visual Basic concepts like data types, control properties, syntax and programming structures. Key topics covered include arrays, sorting, converting data types, displaying messages and controlling forms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
1.
What is the value of len in the following Visual Basic code?
Dim strVB() As String = {"Sanfoundry", "Visual Basic", "VB.Net", "Visual Studio"} Dim len As Integer len = strVB.Length() a) 3 b) 5 c) 4 d) 0 2. What happens when both the minimize box and maximize box property are set to false in Visual Basic? a) Both are disabled b) Both are removed from the title bar
c) This situation shows an exception d) This situation shows an error
3. Which of the following section is used to make text appear around the image? a) Wrapping style b) Text style c) Image properties d) Align 4. Which of the following statement is used to define a class in visual basic? a) Event class statement b) Class statement c) Form class statement d) Event statement 5. In visual basic language what are the rules of a programming language called? a) Grammar b) Order c) Syntax d) Rules 6. Which of the following applications can be developed using Visual Basic tool? a) Graphical User Interface b) Real-time c) Character User Interface d) All of the mentioned 7. Which of the following extension is used to represent the project file in Visual Basic? a) .vbp b) .vb c) .cls d) .vvb 8. If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic? a) Char b) Int c) Object d) String 9. In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures? a) If…Then…Else statement b) Switch-Case block c) function overloading d) Recursion 10. Who developed Visual Basic? a) Symantec b) Ashton-Tate c) Microsoft d) Sybase 11. Object respond to an event by writing __________ a) Defining Events b) Operations c) Defining Actions d) Event Procedures 12. Which of the following is commonly used to perform an immediate action when clicked in Visual Studio? a) Button control b) Close c) End d) Exit 13. Which of the following displays the list of projects contained in the Visual Basic current solution? a) List Window b) Project Window c) Catalogue Window d) Solution Explorer Window 14. Which of the following instruction tells the computer to close the current form in Visual Basic? a) This.Close() b) Me.Close() c) Close.this() d) Close() 15. Which of the following is the default name assigned to the label control in Visual Basic? a) Label1 b) DefaultLabel c) Label0 d) NewLabel 16. Which of the following is used to convert a number from one data type to another in visual studio? a) Literal constant b) Object c) Convert class d) Parser 17. Which of the following is used to write a stream of characters in Visual Basic? a) StreamReader Object b) StreamReader Class c) StreamWriter Object d) StreamWriter Class 18. Which of the following toolbox is used to include an image on the Visual Basic form? a) Add Image box b) Picture Box c) Add Picture Box d) Image box 19. What will be the output of the following code? Dim intScores As Integer = {78, 83, 75, 90} Array.Reverse(intScores) a) 78, 75, 83, 90 b) 90, 75, 83, 78 c) 78, 83, 75, 90 d) 75, 78, 83, 90 20. Which of the following is used to display a message box in Visual Basic? a) MessageBox.Show b) MessageBox.show c) MessageBox d) AlertBox.View 21. Which of the following method is used to sort an array in visual basic? a) Array.arrange() b) Array.sortAscending() c) Array.arrayArrange() d) Array.Sort() 22. Which of the following type of constant is ControlChars.NewLine constant? a) Character b) Pure c) Intrinsic d) Invariable 23. In Visual Basic, which of the following method converts a string to a number? a) Tryparse b) Convert c) Extern d) Parse 24. Which of the following forces a literal constant to assume a data type other than the one its form indicates? a) Literal type constant b) Keyword c) Any literal d) Literal type variable 25. The position of an item in a list box depends on which of the following property of the value stored in the list box’s? a) Unsorted Property b) Sorted Property c) Descending Property d) Ascending Property 26. Which of the following returns a value after performing its specific task? a) Structure b) Sub block c) Sub procedure d) Function Procedure 27. Which of the following property is used to specify a combo box’s style? a) Style b) ComboBoxStyle c) DropDownStyle d) DropStyle 28. Which of the following section is used to make text appear around the image? a) Wrapping Style b) Text Style c) Align d) Image Properties 29. Which of the following keyword tells the computer to pass the variable’s address rather than its contents? a) ByAdd b) ByPoint c) ByRef d) ByVal 30. If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic? a) Char b) Int c) Object d) String
Download complete Test Bank for Introduction to Programming Using Visual Basic 10th Edition Schneider 0134542789 9780134542782 (DOCX) and get instant access