0% found this document useful (0 votes)
31 views5 pages

Suggestive Questions On

Vb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views5 pages

Suggestive Questions On

Vb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

GUI PROGRAMMING USING VB.

NET
BCA 5TH SEM

A. Multiple Choice Questions(MCQS):


1. The _______ variables are accessible from within the program that contains their
declaration, as well as anywhere else in the same assembly.
a) protected
b) friend
c) protected friend
d) private
2. _______ function in VB.NET is used to convert character code to character
a) Char
b) Format
c) Convert
d) Chr
3. _______ function in VB.NET converts character to character code
a) Chr
b) Val
c) Asc
d) Str
4. ________ are symbolic names given as values stored in memory and declare with the dim
keyword.
a) Keywords
b) Operators
c) Variables
d) Expressions
5. The ________ property in array class in VB.NET, returns an integer indicates the number
of dimensions of the array.
a) sort
b) reverse
c) rank
d) index of
6. _______ method converts the value of the instance to a double representing the OLE
automation date.
a) Date CONV
b) TO OA Date
c) OLE Date
d) Auto Date
7. The keyword ________, gives variables protected access, which means they are accessible
only from within their own class.
a) protected
b) friend
c) protected friend
d) private
8. _______ data type in .NET FCL corresponds integer data type in VB.NET.
a) System.Int32
b) System.Int64
c) System.Int16
d) System.Number
9. ________ is generally used for editable text although it can also made read only.
a) TextBoxControl
b) RichTextBox
c) TextBoxBase
d) TextBox
10. In order for the scroll bars to actually appear, the text box’s ________ property must be
true.
a) MultiLine
b) MultiText
c) Scrolling
d) MultiVisible
11. Which one is a numeric data type?
a) Floating point
b) Integer
c) Boolean
d) Both a) and b)
12. MOD is _______ operator in VB.NET.
a) assignment
b) logical
c) arithmetic
d) comparison
13. How many types of operator are used in VB.NET?
a) 2
b) 3
c) 4
d) 5
14. Which of the following VB.NET loops is not a pretest loop?
a) for loop
b) while loop
c) do while loop
15. The EXIT command is used to exit a loop in VB.NET language.
a) True
b) False
16. Which of the following statements about the while loop is not true?
a) The while loop is a post – test loop.
b) Testing condition is made before each iteration.
c) The while loop statement must terminate with a semicolon
17. In VB.NET, when an array is partially initialized, the rest of its elements will automatically
be set to zero.
a) True
b) False
18. The new keyword can be used to allocate spaces for an array.
a) True
b) False
19. An array object has a length property that can be used to find the number of elements in
the array.
a) True
b) False
20. If you have an array of 20 elements, what is the good way to assign a value to each
element?
a) Assigning each element individually without using a loop
b) Using a loop to assign a value to each element.
21. The correct statement about a delegate in VB.NET is
a) a delegate is strongly typed function pointer.
b) it is a type – safe function pointer.
c) delegates are used to create associations between events and event handlers in
VB.NET.
d) All of the above statements are correct for a delegate.
22. If no access modifier is specified for a class, it is considered as
a) public
b) private
c) friend
d) protected
23. How to dereference an object in VB.NET?
a) By setting the object to NULL
b) By setting the object to nothing
c) With close keyword
d) None of the above
24. Methods declared with the _______ modifier are not accessible outside the class.
a) private
b) protected
c) friend
d) global
25. Which of the methods is used to display the form as modal?
a) ShowDialog ()
b) Activate ()
c) Loaddialog ()
d) Show ()
26. Can a toolbar display text instead of pictures in the buttons?
a) No, a toolbar can only display images.
b) No, a toolbar can only display text.
c) Yes, a toolbar can display text, images or both
d) None of the above.
27. The vbc.exe compiler generates
a) IL code
b) native code
c) byte code
d) none of the above
28. The metadata stored in the assembly is called
a) AssemblyInfo
b) Manifest
c) AssemblyData
d) None of the above
29. How do you create constructors in VB.NET?
a) Create a method and name it with the same name as class name.
b) Create a method and which is named as new
c) Create a method and which is names as initialize
d) None of the above.
B. Very short type questions:(1)
1. Explain image property of picturebox control.
2. Define property and event.
3. List the various containers in VB.NET.
4. What is module?
5. Explain ‘Redim’ keyword.
6. Define MSIL.
7. What is design time and run time?
8. Define modal and modeless dialogboxes.
9. What is the use of multiline and word wrap property of textbox control?
10. Define Namespace.
11. What is boxing in VB.NET?
C. Short type questions:(2)
1. Mention the types of applications that can be developed using .NET framework.
2. Define CLS and JIT compiler.
3. Mention any two collection classes and their usages.
4. Write any two methods of list class with syntax and example.
5. Write the difference between static array and dynamic array in VB.NET.
6. Write the difference between functions and procedures in VB.NET. Write an example for
each.
7. What is the usage of message box and input box in VB.NET?
8. What is the use of stream reader, stream writer and file stream?
9. Explain the printpreviewdialog control in dialog boxes function.
10. What is data validation in VB.NET?
11. Explain any two built – in – date functions.
12. State the difference between data set and data reader.
13. Explain two properties of button control.

D. Descriptive type questions:(10)


1. a) Explain the architecture of .NET framework with a neat diagram.
b) What are the features of VB.NET?
2. a) Explain various components of visual studio IDE.
b) Write the syntax of select … case in VB.NET. Write a console based application to
illustrate the usage of select … case in VB.NET.
3. a) Explain properties, methods and events of any two form controls in detail.
b) Explain methods for handling exceptions in VB.NET. Design a VB.NET window based
application and write code to handle exception.
4. a) Explain runtime error handling with VB.NET.
b) Explain multicasting of delegates.
5. a) Explain event handling with delegate.
b) Explain exception class and its subclasses with examples.
6. a) What is overriding? Write a program to create addition of two numbers using
overriding method.
b) What are the application supports provided by VB.NET?
7. a) Explain abstract class inheritance and interface inheritance by abstract class.
b) What are the types of interfaces? Explain interface inheritance with example.
8. a) What is abstract class and abstract method? Explain.
b) Explain inheritance and its derived object.
9. a) Demonstrate scrollable picture with example.
b) Create a SDI application like notepad in VB.NET.
10. a) Write short notes on i) Dialog Box ii) Owned forms
b) Explain architecture of MDI application.
11. a) What is MDI? Mention the difference SDI and MDI. Design a VB.NET application having
MDI and child forms and write code.
b) Explain any five mathematical and five string functions available in VB.NET.
12. a) Explain the use of base class reference.
b) What is Comparable interface in VB.NET? Explain.
c) Explain the properties of toolbar button.
d) What are types of errors? Explain.
13. a) Discuss the concept of dynamic array in VB.NET. How to create dynamic array in
VB.NET and also explain Redim and Preserve keyword in detail.
b) Explain ADO.NET object model and the steps for database connections using ADO.NET.
Design and write code in VB.NET to create a login page.

E. Long answer type questions:(15)


1. a) Explain CLR, CTS and FCL in detail.
b) List common dialog control and explain any two common dialog controls.
c) Explain string related function of VB.NET.
2. a) Explain Menu control in detail.
b) Explain Interface in VB.NET.
c) Explain date related functions in VB.NET.
3. a) What is the difference between collection and array? Explain any three properties
and methods of array.
b) Explain the concept of constructor in VB.NET.
c) What is data set and data provider? Discuss them in detail.
4. a) Explain option explicit, option strict and with ... end with statement with example.
b) Explain Combobox control.
c) Write code to perform insert and update operation on Product table having field
product no, product name and rate.
5. a) What is function? Explain call by value and call by reference with proper example.
b) What is exception? What are types of exception? Explain them in detail.
c) Explain Listbox and checked Listbox control in detail.
6. a) Explain access specifiers in VB.NET.
b) Explain conditional statement in VB.NET.
c) Explain timer and progressbar control.
7. a) Explain data grid. Write steps to bind a data grid with database at runtime.
b) Explain Error provider and help provider control.
c) Explain rich textbox with its properties and methods.
d) Explain Treeview control.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy