0

Visual Basic Programming for Dot NET

Description: This test consists of basic programming questions for visual basic .NET. This set is useful for CS students and GATE aspirants.
Number of Questions: 16
Created by:
Tags: dot net visual basic ugc gate cs computers Programming
Attempted 0/16 Correct 0 Score 0

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.


Correct Option: A
Explanation:

This is correct as it means JIT compiled code validity is not confirmed.

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.


Correct Option: A
Explanation:

WCF provides accessibility to the all the applications and components in a large networking medium for the servers.

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.


Correct Option: B
Explanation:

This is correct about Windows Executable assembly.

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.


Correct Option: D
Explanation:

It does not manage any execution flow in the application.

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.


Correct Option: C
Explanation:

This is correct as the underlying data type is known, reducing the amount of type conversion required when retrieving the column value.

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.


Correct Option: A
Explanation:

This is correct as the Stream, XmlReader or TextReader object was closed during a streaming operation.

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.


Correct Option: A
Explanation:

This is a correct statement as the Design errors are the outcome of bad coding practices.

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.


Correct Option: D
Explanation:

This is incorrect statement as the dynamic assembly can be a shared assembly.

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.


Correct Option: D
Explanation:

This is incorrect because it can manage the execution process in any assembly.

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.


Correct Option: A
Explanation:

Class declaration comes immediately after the class is named and its access and utility are provided.

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.


Correct Option: B
Explanation:

This is correct because the ability to keep expanding the array is needed.

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.


Correct Option: C
Explanation:

This is correct as it refers not only ADO, but all other classes on the System.Data namespace as well.

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.


Correct Option: A
Explanation:

Service agents do not provide any business rules but provide the communication services for the client and servers.

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.


Correct Option: A
Explanation:

This is correct and it includes the definition of the variables, properties, events and procedures that the module comprises.

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.


Correct Option: A
Explanation:

This is correct about Delegates.

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.


Correct Option: A
Explanation:

A breakpoint is like a note to VB.NET to stop the programme at a particular place.

- Hide questions