How do you enable your application to use .NET base class library members without referencing their fully qualified names?

1 Answer

Answer :

Use the Imports keyword (Visual Basic .NET) or the using keyword (Visual C#) to make a .NET Framework namespace visible to your application. 

Related questions

Description : Can properties hide base class members of the same name?

Last Answer : Yes

Description : State whether the following statements are true / false: 1) A fully qualified domain name starts with a specific host and ends with a top-level domain. 2) Domain names are always written as fully qualified domain names. A. 1.T, 2.T B. 1.T, 2.F C. 1.F, 2.T D. 1.F, 2.F

Last Answer : B. 1.T, 2.F

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger. 

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger.

Description : What is the role of the DataReader class in ADO.NET connections?

Last Answer : It returns a read-only, forward-only rowset from the data source. A DataReader provides fast access when a forward-only sequential read is needed.

Description : What’s the .NET collection class that allows an element to be accessed using a unique key? 

Last Answer : HashTable. 

Description : What’s the top .NET class that everything is derived from?

Last Answer : System.Object.

Description : What is the role of the DataReader class in ADO.NET connections?

Last Answer : It returns a read-only, forward-only rowset from the data source. A DataReader provides fast access when a forward-only sequential read is needed. 

Description : What’s the .NET collection class that allows an element to be accessed using a unique key?

Last Answer : HashTable.

Description : What’s the top .NET class that everything is derived from? 

Last Answer : System.Object.

Description : What’s the top .NET class that everything is derived from?

Last Answer : System.Object.

Description : If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

Last Answer : Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.

Description : In terms of constructors, what is the difference between: public MyDerived() : base() an public MyDerived() in a child class?

Last Answer : Nothing

Description : How do you refer to a member in the base class?

Last Answer : To refer to a member in the base class use:return base.NameOfMethod(). 

Description : If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

Last Answer : Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.

Description : If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor? 

Last Answer : Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class. 

Description : Can you prevent your class from being inherited and becoming a base class for some other classes?

Last Answer : Yes, that’s what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It’s the same concept as final class in Java.

Description : Define what is a base class?

Last Answer : A class declaration may specify a base class by following the class name with a colon and the name of the base class. omitting a base class specification is the same as deriving from type object.

Description : Which of the following are the basic rules of APA style of referencing format? (a) Italicize titles of shorter works such as journal articles or essays (b) Invert authors' names (last name first) (c) Italicize titles of longer works such ... c) and (d) (C) (c) and (d) (D) (a), (b), (c) and (d)

Last Answer : Answer: B

Description : In Visual Basic .NET or Visual C# programming, when would you use Structured Query Language (SQL)? How are they executed? 

Last Answer : ADO.NET handles most of the database communication for you behind-thescenes. You would only use SQL statements when generating ad-hoc queries for the database. You execute SQL statements by ... returning statements, such as DELETE, INSERT INTO, or UPDATE statements, use the ExecuteNonQuery method.

Description : Many consumer products are a key difference between B2C and B2B marketing which is reflected in web design through ______. *  referencing needs of companies of different sizes ... different feature stories appealing to different members  different navigation options appealing to different members

Last Answer :  the status of the business in the purchase decision process

Description : which is reflected in web design through ______. *  different feature stories appealing to different members  content referencing the needs of companies  different navigation options appealing to different members  status of the business in the purchase decision process

Last Answer :  different navigation options appealing to different members

Description : A longer decision-making process than for many consumer products is a key difference between B2C and B2B marketing which is reflected in web design through ______. *  content ... different members of the audience  different navigation options appealing to different members of the audience

Last Answer :  questions on a form inquiring about the status of the business in the purchase decision process

Description : Delivering different messages to members of a business decision-making unit is a key difference between B2C and B2B marketing which is reflected in web design through ______. *  different feature ... questions on a form inquiring about the status of the business in the purchase decision process

Last Answer :  different navigation options appealing to different members of the audience

Description : A longer decision-making process than for many consumer products is a key difference between B2C and B2B marketing which is reflected in web design through ______. A. content referencing the needs of ... options appealing to different members of the audience E. None of the above. Ans: B

Last Answer : B. questions on a form inquiring about the status of the business in the purchase decision process

Description : Delivering different messages to members of a business decisionmaking unit is a key difference between B2C and B2B marketing which is reflected in web design through ______. A. different feature stories appealing to ... the business in the purchase decision process E. None of the above. Ans: C

Last Answer : C. different navigation options appealing to different members of the audience

Description : Many consumer products are a key difference between B2C and B2B marketing which is reflected in web design through ______. A.referencing needs of companies of different sizes B.the ... stories appealing to different members D.different navigation options appealing to different members Answer: B

Last Answer : B.the status of the business in the purchase decision proces

Description : which is reflected in web design through ______. A.different feature stories appealing to different members B.content referencing the needs of companies C.different navigation options appealing to different members D.status of the business in the purchase decision process Answer:C

Last Answer : C.different navigation options appealing to different members

Description : Which one of the following tools is used to view the metadata information contained in a .NET assembly? Select Answer:  1. al.exe  2. ilasm.exe  3. vbx.exe  4. csc.exe  5. ildasm.exe

Last Answer :  5. ildasm.exe

Description : How could you execute DDL commands, such as ALTER or CREATE TABLE, against a database with ADO.NET?

Last Answer : You must use a Command object to execute DDL commands. You can set the CommandType property to Text and enter the appropriate DDL command in the CommandText property. Then call Command.ExecuteNonQuery to execute the command.

Description : Briefly contrast connected and disconnected data access in ADO.NET.

Last Answer : In ADO.NET, connected data access is available through the DataReader, which is a lightweight class designed to provide very fast and efficient data access. It is severely limited, however, in ... to update the database and keeping the connection open just long enough to execute those commands.

Description : Briefly describe the major components of the .NET Framework and describe what each component does.

Last Answer : The .NET Framework consists of two primary parts: the common language runtime, which manages application execution, enforces type safety, and manages memory reclamation, and the .NET base class library, which consists of thousands of predeveloped classes that can be used to build applications.

Description : Option statements that are supported in VB.NET?

Last Answer : Option Explicit:- By default, Option Explicit is on for VB.NET projects. It's a good programming practice to set Option Explicit on because it helps developers avoid implicitly declaring variables, and thus write ... . It's also a safer way to develop code, which is why most developers prefer it. 

Description : What do you know about .NET assemblies?

Last Answer : Answer: Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications.

Description : What is purpose of Assembly Linker or define SDK Tool in .NET Framework?

Last Answer : Answer: In .NET whole the working should be with the helps of DLLs.So all of Visual Studio .Net compilers gernate assemblies or u can say dll.If we want to create an assembly with ... Studio .Net .This multi file can contain modules that are written in diffrenet langauage in one application.

Description : What size is a .NET object?

Last Answer : Each instance of a reference type has two fields maintained by the runtime - a method table pointer and a sync block. These are 4 bytes each on a 32-bit system, making a total of 8 bytes ... bytes, even for classes with no data (e.g. System.Object). Values types have no equivalent overhead. 

Description : When should you call the garbage collector in .NET?

Last Answer : As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice. 

Description : What is the smallest unit of execution in .NET?

Last Answer : an Assembly. 

Description : How is the DLL Hell problem solved in .NET? 

Last Answer : Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly.

Description : What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

Last Answer : SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix. ... on top of the OLE layer, so it's not as fastest and efficient as SqlServer.NET.

Description : What debugging tools come with the .NET SDK?

Last Answer : 1. CorDBG – command-line debugger. To use CorDbg, you must compile the original C# file using the /debug switch. 2. DbgCLR – graphic debugger. Visual Studio .NET uses the DbgCLR.

Description : When should you call the garbage collector in .NET?

Last Answer : As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.

Description : What is the smallest unit of execution in .NET?

Last Answer : an Assembly. 

Description : How is the DLL Hell problem solved in .NET? 

Last Answer : Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. 

Description : What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

Last Answer : SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix. ... on top of the OLE layer, so it's not as fastest and efficient as SqlServer.NET.

Description : What debugging tools come with the .NET SDK?

Last Answer : 1. CorDBG – command-line debugger. To use CorDbg, you must compile the original C# file using the /debug switch.   2. DbgCLR – graphic debugger. Visual Studio .NET uses the DbgCLR.

Description : Will we eventually see a .NET Framework-based version of Java as a competitor to C#?

Last Answer : Apparently not. Microsoft will never offer a complete Java environment because Sun has essentially required that Java licensees implement all of Java-something Microsoft will never do. (Why should it? Does ... she's working in a true Java environment because the familiar libraries won't be there. 

Description : But won't most .NET developers eventually choose C# over Visual Basic.NET? 

Last Answer : No. Because the power of the two languages is so similar, the primary factor for developers migrating to the .NET world will probably be the syntax they prefer. Since many more developers ... the dominant language for building Windows applications five years from now will still be Visual Basic. 

Description : Isn't C# the native language of .NET?

Last Answer : Every language built on the .NET Framework must use the CLR. The CLR defines core language semantics, and so all of the languages built on it tend to have a great deal in common. The biggest choice a . ... just a little bit more-and so neither is the "native" .NET language. There is no such thing.

Description : What happens if you inherit multiple interfaces and they have conflicting method names?

Last Answer : It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay. To Do: Investigate