Programming MCQs

Solved MCQ On Fundamentals Of Visual Basic.Net Set-1

Pinterest LinkedIn Tumblr

Here are the collections of solved MCQ on fundamentals of visual basic.net includes multiple-choice questions on loop structure supported by vb.net, different namespaces used on vb.net framework, COM and distributed COM(DCOM) technology along with about DAO, RDO, ADO and ADO.NET.

1. Which of the following Loop structure does not supported by VB.Net?
A. Do ……………. Loop
B) For ………………. Next
C) Do ……………. While
D) For Each ………… While

2. The _____ model does not offer a model for source code reuse.
A. COM+
B. DCOM
C. COM
D. .Net

3. _____ allow custom items of information about a program element to be stored with an
assembly’s metadata.
A.Properties
B.Attributes
C. Methods
D. Classes

4. The corresponding .Net FCL type for Short is ___________.
A.System.Int32
B.System.Int64
C.System.Int16
D.System.Object

5. The member “clear” of the Array class that sets a range of array elements
to zero, false or null reference is a _____________ method.
A. Shared
B. Method
C. Class
D. Object

6. The ___________ method converts an OLE automation date value to a DateTime
Instance.
A. Today
B. TimeOfDay
C. Now
D. FromOADate

7. The function procedures are ___________ by default.
A. public
B. private
C. protected
D. inherited

8. Every optional argument in the procedure definition must specify a _________ value
which must be a constant expression.
A. constant
B. default
C. integer
D. character

9. Type casting in VB.Net is implemented by means of ____________ statement.
A. Type()
B. TypeDef()
C. Btype()
D. Ctype()

10. State whether the statement true or false.
i) Function procedures are public by default.
ii) Function procedure return values whereas sub procedures cannot return a value to the
calling procedure.
A. True, True
B. True, False
C) False, True
D) False, False

11. In Vb.net, data is handled through ………………… which facilitates development of web applications.
A) DAO
B) RDO
C) ADO
D) ADO.NET

12.  The heart of ADO.NET is ……………. where all data is represented in …………… format and exchanged that way.
A) XML
B) HTML
C) COM
D) DCOM

13. A …………………… is a collection of one or more record sets as well as the relationships between those tables or record sets.
A) dataset
B) datatable
C) recordset
D) relationshipset

14. Both COM and distributed COM(DCOM) technology has been replaced by the .NET framework, although you still have access to COM through what VB.NET calls ……………
A) COM technlogy
B) COM framework
C) COM interoperability
D) COM distribution

15. ………………… is built on a disconnected data model that uses snapshots of data that are isolated from the data source.
A) DAO
B) RDO
C) ADO
D) ADO.NET

16. ………………. are based on XML schema, so they can be strongly typed.
A) DAO
B) RDO
C) ADO
D) ADO.NET

17. ………………… is the ability to create procedures that can operate on objects of different types.
A) Abstraction
B) Encapsulation
C) Polymorphism
D) Inheritance

18. …………………… is the process by which you can derive new classes from other classes.
A) Abstraction
B) Encapsulation
C) Polymorphism
D) Inheritance

19. ………………. namespace in vb.net includes classes and interfaces that return information about types, methods and fields and also have the ability to dynamically create and invoke types.
A) System
B) System.collections
C) System.NET
D) System.Reflection

20. ………………. namespace in vb.net provides an interface to many of the protocols used on the internet.
A) System
B) System.collections
C) System.NET
D) System.Reflection

Answers

1. C) Do ………….. While
2. C. COM
3. B. Attributes
4. C. System.Int16
5. A. Shared
6. D. From OA Date
7. A. public
8. B. default
9. D. Ctype()
10. A. True, True
11. D) ADO.NET
12. A) XML
13. A) dataset
14. C) COM interoperability
15. D) ADO.NET
16. D) ADO.NET
17. C) Polymorphism
18. D) Inheritance
19. D) System.Reflection
20. C) System.NET

Read Next:MCQ of Visual Basic dot net (VB.Net) with answer set-2

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Comments are closed.