KEMBAR78
Visual Basic .Net Exam | PDF | Class (Computer Programming) | C Sharp (Programming Language)
0% found this document useful (0 votes)
7 views4 pages

Visual Basic .Net Exam

The document is a sub-healing exam consisting of multiple-choice questions related to programming concepts, particularly focusing on .NET, C#, and database interactions. It covers topics such as variables, exception handling, object-oriented programming, and the .NET framework. Each question presents four options, with the aim of assessing knowledge in software development and related technologies.
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)
7 views4 pages

Visual Basic .Net Exam

The document is a sub-healing exam consisting of multiple-choice questions related to programming concepts, particularly focusing on .NET, C#, and database interactions. It covers topics such as variables, exception handling, object-oriented programming, and the .NET framework. Each question presents four options, with the aim of assessing knowledge in software development and related technologies.
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/ 4

SUB-HEALING EXAM

Surnames and First Names:

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.

We say that two methods are overloaded when:


They have the same name and the same signature.
b. They have different names and the same signature.
c. They have the same name and different signatures.
d. They have different names and different signatures.

3. What is commonly referred to as "CAST"?


a set of data to be converted.
b. To the implicit conversion of an object/type or type/object.
c. An explicit way to convert data types between each other.
d. No option is correct.

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.

5. What is referred to as an 'Exception' in .NET?

a. To the unforeseen errors that occur during coding time.


b. To the unforeseen errors that occur at runtime..
c. To the unforeseen errors that occur during the design phase.
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:

a. Define a hierarchy of inheritance among the classes


b. Encapsulate behavior in an aggregate class
c. Define an interface.
d. Relate the classes through a bi-directional association.

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).

9. What is the reserved word to create an instance of a class?


a. Create
b. New..
c. CreateObject
d. None of the options is correct.

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?

a. MustOverride Public Function CalculateTotal() As Integer.


b. Public MustOverride Integer Function CalculateTotal().
c. Public MustOverride Function CalculateTotal() As Integer.
d. MustOverride Public Function 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.

14. Which of the following statements is not true?


.NET is an object-oriented platform.
.NET supports multiple programming languages.
c. .NET applications are executed and managed directly by the Operating System.
.NET offers a single consistent model for the development of all types of applications.

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.

16. What is necessary to build a NET compiler?


a. Follow the CLS specification.
b. Follow the BCL specification.
c. Write the compiler in MSIL.
d. Follow the specification of the Common Language Runtime.

17. What type of code resides within an Assembly?


a. Assembler Code.
b. MSIL code.
c. Machine Code.
d. C# or Visual Basic.NET code.

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.

21. Regarding ASP.NET, it is correct to state that:

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.

22. Regarding the CLR, it is correct to affirm that:

a. Provides automatic memory management


b. Provides consistent error management
c. Provides a multithread environment
d. All options are 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.

26. Regarding the Microsoft .NET Framework, it is correct to say that:

a. It is an implementation of the CLS specification.


b. It is an implementation of the CTS specification.
c. It is an implementation of the CLR specification.
It is an implementation of the CLI specification.

27. Regarding assemblies, it is correct to state that:


a. They only contain MSIL code.
b. They need to register in the Windows Registry.
They are generated by the CLR after JIT compilation.
d. None of the options is correct.

28. Which of the following are components of the .NET platform?


a. Execution Environment.
b. Operating System.
c. Functionality Libraries.
d. Options a and c are correct.

29. Why are .NET applications referred to as 'Managed Applications'?


a. Because the Operating System is responsible for managing its execution and life cycle.
b. Because an intermediate execution environment is responsible for managing its execution and lifecycle.
c. Because they themselves are responsible for managing their execution and lifecycle.
d. Options b 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.

You might also like