Visual Basic Programming for Dot NET

This test consists of basic programming questions for visual basic .NET. This set is useful for CS students and GATE aspirants.

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does 'Invalid' means in MSIL code classification?

  1. It means that the MSIL code cannot be JIT compiled by the CLR.
  2. It provides the JIT code prevention.
  3. In the stage of the verification process, the type safety is analysed after the declaration of the code.
  4. The code passes the type-safety check. The CLR accepts that code is both valid and type-safe and allows it to be executed or referenced.
  5. It makes the code typesafe.
Question 2 Multiple Choice (Single Answer)

What is the role of WCF (Window Communication foundation) services?

  1. It enables remote access to some server-side functionalities.
  2. It enables creation of the user interface and the application logic.
  3. It consists of static HTML or XML elements and ASP.Net server controls.
  4. It provides support for duplex communication.
  5. The communication is limited to HTTP only.
Question 3 Multiple Choice (Single Answer)

Which of the following is defined as 'Windows Executable' assembly by Visual Basic compiler?

  1. It is a standard, GUIless, console Window.
  2. It is the standard .NET Windows executable file.
  3. It is the standard .NET class library, which can be dynamically linked.
  4. It is the standard class module, which is used as a container for compiled classes.
  5. It manages the namespace of the assembly code.
Question 4 Multiple Choice (Single Answer)

Which one of the following information is not contained by Metadata?

  1. It provides the assembly specific metadata for all the applications.
  2. It is responsible for the storage information of the data objects.
  3. It provides application specific classes and the methods.
  4. It manages the execution flow.
  5. It provides data storage capacity.
Question 5 Multiple Choice (Single Answer)

Which of the following conditions might occur while Retrieving Data Using a DataReader object?

  1. The instance of the Command object can either be to create or optional.
  2. Write method is executed to provide the query specific results in the database.
  3. DataReader provides a series of methods that allow access to column values in their native data types.
  4. The DataReader cannot maintain the execution flow at each level at one stage.
  5. It manages the execution only at one level.
Question 6 Multiple Choice (Single Answer)

What does ObjectDisposedException specify in SqlCommand.ExecuteReader Method?

  1. It specifies that the streaming objects are now closed after the operation is performed by the client.
  2. It shows that an error occurred in a Stream, XmlReader or TextReader object during a streaming operation.
  3. It specifies that current state of the connection is closed. ExecuteReader requires an open SqlConnection.
  4. It shows that a SqlDbType other than Binary or VarBinary was used when Value was set to Stream.
  5. It shows the limited memory capacity in the application.
Question 7 Multiple Choice (Single Answer)

What are the Design-time errors in Error Handling and Debugging in VB.NET?

  1. These occur when the environment you're programming in doesn't understand the code.
  2. These errors occur when the programme is running.
  3. An example is trying to access a file that doesn't exist.
  4. This happens when the code doesn't quite behave the way it was supposed to.
  5. These errors are responsible for robust code.
Question 8 Multiple Choice (Single Answer)

Which of the following is an incorrect statement about Shared Assembly?

  1. This assembly has a strong name and public key data.
  2. This is a memory resident module that gets loaded at runtime to provide specific services.
  3. This is a static version that can only be accessed by a specific application.
  4. A dynamic assembly cannot be a shared one.
  5. A shared assembly manages the better flexibility to the loaded files.
Question 9 Multiple Choice (Single Answer)

Which of the following is incorrect about Side-by-Side Execution in VB.NET?

  1. In this execution, the multiple versions of the same assembly can be managed and executed.
  2. This execution has delivered the user from complications associated with DLL hell.
  3. It is possible in an executable assembly to express a dependence on a particular support assembly.
  4. It manage the execution process in dynamic assembly only.
  5. The multiple versions of the assembly can be encrypted.
Question 10 Multiple Choice (Single Answer)

What is 'Class Declaration space' in VB.NET?

  1. It is used to declare the name and accessibility scope of the class.
  2. The declared class can implement one or more interfaces.
  3. It provides specific directives for the compiler, references to namespaces and classes, and namespace declaration.
  4. This space is above the Directive space.
  5. It declares the name and accessibility scope of the class and method.
Question 11 Multiple Choice (Single Answer)

Which of the following is/are applicable for Redeclaring Arrays in VB.NET?

  1. The array can be redeclared implicitly.
  2. It makes the preservation of the data of the original array.
  3. It can be used to change an array from one data type to another.
  4. It can produce exception in the code.
  5. It produces the complexity problem in the code.
Question 12 Multiple Choice (Single Answer)

What is the significance of System.Data namespace in Visual Basic .NET Application?

  1. It refers to the hierarchy of classes that represent the functionality of the ActiveX Data Object technology.
  2. It is used to directly access the ADO class.
  3. It is used to refer not only ADO, but all other classes on the System.
  4. It can be used with JNDI APIs.
  5. It is used to manage the data in assembly.
Question 13 Multiple Choice (Single Answer)

How 'Service agents' component works in Distributed Application Design in VB.NET?

  1. Virtually, all applications and services require components that implement business rules and perform business tasks.
  2. These provide services related to business components and other components.
  3. They provide the interoperability to the application components with the APIs.
  4. These can be used for robust applications.
  5. These agents can be managed with LAN application.
Question 14 Multiple Choice (Single Answer)

Which of the following is correct about Module Statement in VB.NET?

  1. It is used to declare the name of a module and introduces the definition of the variables.
  2. It is used to declare the name of an interface and introduces the definitions of the members.
  3. It declares the name, parameters, and code that defines a Function procedure.
  4. It declares the name, parameters and code that define a Sub procedure.
  5. It defines the name of the module and the variables.
Question 15 Multiple Choice (Single Answer)

Which of the following is/are applicable for Delegates?

  1. It provides a construct for passing singleton method signatures as bound references to a consumer construct.
  2. It is not type safe and secure.
  3. These are value types and are also known as lightweight classes.
  4. These can be used for robust applications.
  5. Delegates are useful in data naming.
Question 16 Multiple Choice (Single Answer)

Which of the following statements is correct about Breakpoints in VB.NET Debugging Tools?

  1. It stops the program for a defined place.
  2. It defines the memory storage mechanisms for the code.
  3. It provides the data access points in the application code.
  4. It manage the execution of the programme in the multiple steps.
  5. It provides the database execution process.