By which button you can display the additional items?
1. Display Button
2.Show All Files Button
3.Visible Button
4.Show Button
Hungarian notations name are entered using ____
1.camel case
2.upper case
3.lower case
4.both alphabets and numbers
If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?
1.Char
2. Int
3.Object
4.Strings
In the following Visual Basic code, what will be in msg, if str contains “visual basic”? Dim str as String Dim msg as String If str.toUpper=”VISUAL BASIC” msg=”VB.Net” Else msg=”Not Visual Basic” EndIf
1.Bye
2.Hi
3. Logical Error
4.Compiler Error
In visual basic language what are the rules of a programming language called?
1.Grammar
2.Order
3. Syntax
4.Rules
In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures?
1.Switch-Case block
2.If…Then…Else statement
3. function overloading
4.Recursion
In Visual Basic, which of the following method converts a string to a number?
1.Convert
2.Tryparse
3.Extern
4.Parse
Which of the following instruction tells the computer to close the current form in Visual Basic?
1.This.Close()
2.Me.Close()
3.Close.this()
4.Close()
A ____________ is a file that contains program instructions called code.
1.Source file
2. Object file
3. Executable file
4.Program file
Form is called as the _____
1. object
2.dot member access operator
3. instance of a class
4.CLASSPATH
If the properties of the form are not listed alphabetically, click __________ button to make it alphabetical.
1. Lexicographical button
2.Alphabetical button
3.A-Z button
4.Arrange button
In the Visual Basic application, which of the following are listed in a properties window?
1. Items
2. Values
3. Attributes
4. Objects
In Visual Basic, which of the following keyword tells the computer to pass the variable’s address rather than its contents?
1. ByAdd
2. ByPoint
3. ByRef
4. ByVal
Object respond to an event by writing ______
1.Defining events
2. Operations
3.Defining actions
4.Event procedures
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?
1. Unsorted property
2.Sorted property
3.Descending Property
4.Ascending property
The size property contains the size of ______
1. form
2. text on the form
3.size of any object such as textbox, button, etc on the form
4. size of the screen
The size property contains two numbers separated by comma, and a space. These numbers are ____
1.width in pixel, height in pixel
2.height in pixel, width in pixel
3.height in cm, width in cm
4.width in cm, height in cm
What does namespace contain?
1.Code that defines a group of related classes
2.Code to define hierarchy
3.Contains object definition
4.Contains class definition
What does the Start Position Property determine?
1.initial position on the screen
2. starting position on the screen
3. top left corner of the screen
4.middle of the screen
What happens when both the minimize box and maximize box property are set to false in Visual Basic?
1.Both are removed from the title bar
2. Both are disabled
3.This situation shows an exception
4. This situation shows an error
What is a class definition?
1. It defines object
2. It defines the appearance and behavior of an object
3.It defines namespace
4.It is a prototype
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()
1.3
2.5
3.4
4.0
What output will be returned if the following Visual Basic code is executed? strVisualBasic = "Sanfoundry, VB.Net" intCharIndex = strVisualBasic.IndexOf("VB")
1.11
2.12
3.False
4.True
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
1.180
2.330
3.156
4. 270
What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90} Array.Reverse(intScores)
1.78,75,83,90
2.90,75,83,78
3.78, 83, 75,90
4.75,78, 83,90
What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90} Array.Sort(intScores)
1.90,83,78,75
2.78,75,83,90
3.78, 83, 75,90
4.75,78, 83,90
What will be the output of the following Visual Basic expression? Financial.Pmt (0.05, 3, 9000)
1. -3043.88
2.-3034.88
3. -3408.48
4. -3304.88
Where does the form’s Text Property appear?
1.Title bar
2. In Text box in the form
3.Caption bar
4.Text bar
Which box contains the name of the selected object?
1.Select Box
2.Object Box
3.List Box
4.Display box
Which is used to restore a property’s value?
1. Restore button
2. Reset button
3.Default button
4.Back button
Which of the following applications can be developed using Visual Basic tool?
1.Graphical User Interface
2.Real-time
3.Character User Interface
4.All of the mentioned
Which of the following displays the list of projects contained in the Visual Basic current solution?
1.List Window
2.Project Window
3.Catalogue Window
4.Solution Explorer Window
Which of the following extension is used to represent the project file in Visual Basic?
1..vbp
2. .vb
3..cls
4..vvb
Which of the following forces a literal constant to assume a data type other than the one its form indicates?
1.Any literal
2.Keyword
3. Literal type constant
4. Literal type variable
Which of the following is commonly used to perform an immediate action when clicked in Visual Studio?
1.Button control
2.Close
3.End
4. Exit
Which of the following is the caption part for the following Visual Basic command? MessageBox.Show("Delete Visual Basic?","VB.Net",MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
1.MessageBoxButtons.YesNo
2.MessageBoxIcon.Exclamation
3.“VB.Net”
4.“Delete Visual Basic?”
Which of the following is the default name assigned to the label control in Visual Basic?
1. Label1
2.DefaultLabel
3.Label0
4.NewLabel
Which of the following is used to convert a number from one data type to another in visual studio?
1. Literal constant
2. Object
3. Convert class
4.Parser
Which of the following is used to display a message box in Visual Basic?
1.MessageBox.Show
2. MessageBox.show
3. MessageBox
4.AlertBox.View
Which of the following is used to write a stream of characters in Visual Basic?
1.StreamReader object
2.StreamReader class
3.StreamWriter object
4.StreamWriter class
Which of the following method is used to sort an array in visual basic?
1. Array.Sort()
2.Array.sortAscending()
3.Array.arrayArrange()
4.Array.arrange()
Which of the following property is used to specify a combo box’s style in Visual Basic?
1.Style
2.ComboBoxStyle
3.DropDownStyle
4.DropStyle
Which of the following returns a value after performing its specific task in Visual Basic?
1.Structure
2.Sub block
3.Sub procedure
4.Function Procedure
Which of the following section is used to make text appear around the image?
1. Wrapping style
2. Text style
3. Image properties
4.Align
Which of the following statement is used to define a class in visual basic?
1.Event class statement
2.Class statement
3.Form class statement
4.Event statement
Which of the following toolbox is used to include an image on the Visual Basic form?
1. Add Image box
2. Picture Box
3.Add Picture Box
4. Image box
Which of the following type of constant is ControlChars.NewLine constant?
1.Character
2.Pure
3.Intrinsic
4.Invariable
Who developed Visual Basic?
1.Symantec
2. Ashton-Tate
3.Microsoft
4.Sybase
Who displays the item contained in each project?
1.Record Window
2.List Window
3.Solution Explorer Window
4. Index Window
Who displays the list of projects contained in current solution?
1.Solution Explorer Window
2.List Window
3.Project Window
4.Catalogue Window