Visual Basic .Net Exam
Visual Basic .Net Exam
Race:
Cycle:
What is a variable?
It is a space in a database to store information.
b. It is a conditional diversion in the program.
It is a loop that the program contains.
It is a RAM memory position with a name and that contains a value.
4. What is a Namespace?
a method to logically group related classes together.
b. A method to physically group related classes together.
c. A logical container of DLLs.
d. All options are correct.
6. What is the block that .NET uses to provide structured exception handling?
a. OnError/Goto
b. If/Else
c. Throw
d. Try/Catch/Finally.
7. If you want to define a behavior for a set of classes that are not necessarily related to each other
Yes, the best option would be:
8. How is an object called Cuentas declared and instantiated, which is a collection of objects of type
Count, using Generics?
a. List(Account) Accounts = New List(Account).
b. List(Account) Accounts = New List(Account)().
c. List(Of Cuenta) Accounts = New List(Of Cuenta)()..
d. List(Of Account) Accounts = New List(Of Account).
10. How is the package class Plane declared so that it inherits from the Vehicle class?
a. Friend Class Airplane (Vehicle).
b. Friend Class Airplane Inherits Vehicle..
c. Friend Class Airplane Inherits Class Vehicle.
d. Class Friend Vehicle (Airplane).
11. It is required to execute a set of commands against a database in a transactional manner. What...
What would the steps to be taken be?
a. Start a transaction using the BeginTransaction method, execute the commands, and finish with e
EndTransaction method.
b. Start a transaction using the NewTransaction method, execute the commands and confirm the
transaction with the Commit method.
c. Start a transaction using the BeginTransaction method, execute the commands and confirm the
transaction with the Commit method..
d. Start a transaction using the BeginTransaction method, execute the commands and confirm the
transaction with the EndTransaction method.
12. How do you declare an abstract, public method that returns an integer, takes no parameters, and that
denominates CalculateTotal?
13. What is the minimum component of the .NET platform required to run applications on
a PC or Server?
.NET Framework SDK.
.NET Framework Redistributable Package.
.NET Compact Framework.
.NET Compact Framework SDK.
15. For what types of database access scenarios is the DataSet used?
a. For disconnected scenarios.
b. For connected scenarios.
c. For both..
d. For none.
18. What is the type from which all data types of the .NET platform inherit?
a. System.Class.
b. System.ValueType.
c. System.Type.
d. System.Object..
19. What are the two main namespaces that make up ADO.NET?
a. System.Ado and System.Data.
b. System.SqlClient and System.Xml.
c. System.Data and System.Xml.
d. System.Data and System.Data.Xml.
20. What is the main function of Application Domains? a. To provide multithreading support within the CLR
b. Provide structured exception handling within the CLR.
c. Provide isolation between applications within the CLR.
d. Provide automatic memory collection within the CLR.
a. It is a programming language based on Visual Basic, HTML, and JavaScript for developing applications.
Web.
b. It does not represent a new programming model compared to ASP.
c. It is part of the CLR.
d. None of the options is correct.
23. What software component is responsible for compiling the source code of an application to MSIL code?
a. Each of the different compilers of the .NET languages.
b. The CLR.
c. The JIT Compiler..
d. Options b and c are correct.
24. Can a .NET application have components written in different high-level programming languages?
level?
Yes, a .NET application can have components written in any high-level programming language.
level.
Yes, as long as the high-level language adheres to the rules of the CTS and CLS specifications.
c. No, a .NET application must be written in a single language.
Yes, but with a limit of two different languages per application.
25. Which of the following are characteristics of the .NET Framework Class Library?
It is organized in a hierarchical manner.
b. It is not extensible.
c. It depends on the programming language.
d. Options a and c are correct.
30. What namespace would you use to connect and interact with a SQL Server 2005 database?
achieve the best performance?
a. System.Data.Sql
b. System.Data.SqlClient..
c. System.Data.SqlServer
d. System.SqlClient.