VB.NET Lab Test Questions PDF
Document Details
Uploaded by BeautifulParallelism
Tags
Summary
This document is a set of VB.NET programming questions categorized in a lab test format. The questions cover various aspects of VB.NET, including control properties, methods, syntax, and OOP concepts. Programming questions for learners studying computer science or software development.
Full Transcript
Mod I VB.NET LAB TEST Q1: Who developed VB.NET? Answer: Microsoft Q2: What does IDE stand for? Answer: Integrated Development Environment Q3: Which is not a property of the Common control class? Answer: show Q4: Which property determines whether a control is displayed to the user? Answer: Visibl...
Mod I VB.NET LAB TEST Q1: Who developed VB.NET? Answer: Microsoft Q2: What does IDE stand for? Answer: Integrated Development Environment Q3: Which is not a property of the Common control class? Answer: show Q4: Which property determines whether a control is displayed to the user? Answer: Visible Q5: VB.Net is_________. Answer: Backward compatible Q6: JIT stands for_________. Answer: Just In Time Q7: What is CLR? Answer: Common Language Runtime Q8: The __________group classes according to their common services. Answer: Namespaces Q9: The ____________enable us to pass data between a program and a class. Answer: Properties Q10: The default property for a text box control is__. Answer: Text Q11: Which of the following event occurs when a key is pressed down while the control has focus? Answer: KeyDown Q12: Which of the following disables a Windows Form? Answer: Enabled Q13: The _____ method is used to display the dialog box at run time. Answer: ShowDialog() Q14: The _____ control opens the browse for folder dialog box. Answer: FolderBrowserDialog Q15: ________ converts to long datatype. Answer: CLng Q16: The default event handler of TextBox is_____. Answer: TextChanged Q17: Which statement about objects is true? Answer: One class can create many objects. Q18: To make a button the default button, this property of the form must be set. Answer: AcceptButton Q19: A MsgBox can have maximum ___________ button(s) Answer: 3 Q20: ScrollBars can be added to Answer: Pane Q21: To display multiple columns in ListView the View property must be set to Answer: Details Q22: In TreeView to collapse all the nodes of a selected node ___________ method is used Answer: Collapse Q23: The default location of the exe file of your solution is. Answer:.../Project folder name/Bin Q24: dim arr(10) as string, the max index of the array is. Answer: 10 Q25: InputBox by default returns ________ values. Answer: String Q26: To vertically arrange all forms in an MDI form use. Answer: Me.LayoutMdi(MdiLayout.TileVertical) Q27: To add items stored in an array to a ListView use. Answer: List1.Items.Addrange(name of the array) Q28: To print use. Answer: PrintDocument1.Print() Q29: _________ and _____________ combines to make a KeyPress event. Answer: KeyUp, KeyDown Q30: When a project is Built it creates a _______ and ________ file under Bin directory. Answer:.exe,.dll Q31: The Tick event is found only in which object? Answer: Timer Q32: Which does the solution explorer not display? Answer: Form Properties Q33: If no access modifier is specified for a class, it is considered _________. Answer: Public Q34: Lower bound value of array in VB.NET Answer: 0 Q35: What is ODBC in VB.Net? Answer: Open Database Connectivity Q36: __________object is used to fill a DataSet/DataTable with query results in ADO.net. Answer: DataAdapter Q37: Syntax for closing the connection in ADO.net is _____ Answer: sqlConn.Close() Q38: Which bracket is used for declaring Array in VB.Net? Answer: ( ) Q39: By default, the textbox control can hold text as________ Answer: Single line Q40: “dim” is a _______ Answer: keyword Q41: MOD is ___________ operator in VB.Net Answer: Arithmetic Q42: _______control is used to represent the items in a hierarchical manner. Answer: Tree View Q43: Which of the following Control is also called Looping Control? Answer: Timer Q44: What is OOP’s? Answer: Object Oriented Programming Q45: What is the shortcut key to run the program? Answer: F5 Q46: What is the full form of ADO? Answer: ActiveX Data Object Q47: __________ is the process by which you can derive new classes from other classes. Answer: Inheritance Q48: __________ is the ability to create procedures that can operate on objects of different types. Answer: Polymorphism Q49: _____________ is a similar type of Private member. Answer: Protected Q50: What is the full form of XML? Answer: Extensible Markup Language