What are the names of the three types of operators? 

1 Answer

Answer :

Unary, binary, and conversion. 

Related questions

Description : What operators cannot be overloaded?

Last Answer : =, ., ?:, ->, new, is, sizeof, typeof  

Description : What is special about the declaration of relational operators?

Last Answer : Relational operators must be declared in pairs. 

Description : What do operators is and as do? 

Last Answer : as acts is like a cast but returns a null on conversion failure. Is compares an object to a type and returns a boolean.

Description : Can assignment operators be overloaded directly?

Last Answer : No

Description : Define what is meant by operators in c#?

Last Answer : An operator is a member that defines the meaning of applying a particular expression operator to instances of a class. Three kinds of operators can be defined: unary operators, binary operators, and conversion operators. All operators must be declared as public and static.

Description : Define what are the special operators in C#?

Last Answer : C# supports the following special operators. is (relational operator) as (relational operator) type (tape operator) sizeof (size operator) new (object creator) .dot (member access operator) checked (overflow checking) unchecked (prevention of overflow checking)

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

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

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 

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 

Description : Briefly describe the three types of user-developed controls and how they differ.

Last Answer : The three types of user-developed controls are inherited controls, user controls, and custom controls. An inherited control derives from a standard Windows Forms control and inherits the ... inherit only generic control functionality. All specific functionality must be implemented by the developer.

Description : Briefly explain the difference between Public (public), Friend (internal), and Private (private) access levels as they apply to user-defined types and members.

Last Answer : In user-defined types, Public (public) classes can be instantiated by any element of the application. Friend (internal) classes can be instantiated only by members of the same assembly, and Private ( ... the same assembly, and Private (private) members can be accessed only from within the type. 

Description : Briefly describe what members are, and list the four types of members.

Last Answer : Members are the parts of a class or a structure that hold data or implement functionality. The primary member types are fields, properties, methods, and events.

Description : Can you store multiple data types in System.Array?

Last Answer : No. 

Description : Can you store multiple data types in System.Array?

Last Answer : No.

Description : Are value types are slower to pass as method parameters? 

Last Answer : Yes

Description : Can nested classes use any of the 5 types of accessibility?

Last Answer : Yes

Description : Describe 5 numeric value types ranges. 

Last Answer : sbyte -128 to 127, byte 0 – 255, short -32,768 to 32,767, int -2,147,483,648 to 2,147,483,647, ulong 0 to 18,446,744,073,709,551,615 

Description : Name 5 built in types. 

Last Answer : Bool, char, int, byte, double

Description : What are the two return types for main? 

Last Answer : void and int

Description : Can you store multiple data types in System.Array?

Last Answer : No.

Description : Define what are the different types of polymorphism?

Last Answer : There are two types of polymorphism. They are: Compile time Polymorphism Run time Polymorphism

Description : Define what are the different types of literals in C#?

Last Answer : Boolean literals: True and False are literals of the Boolean type that map to the true and false state, respectively. Integer literals: Used to write values of types Int, uint, long, and ulong. Real ... by a double-quote character, such as © hello . The Null literal: Represents the null-type.

Description : Define what are the different types of variables in C#?

Last Answer : Different types of variables used in C# are : static variables instance variable value parameters reference parameters array elements output parameters local variables

Description : Define what are the types of errors?

Last Answer : Syntax error Logic error Runtime error

Description : Define what is literals and their types?

Last Answer : Literals are value constants assigned to variables in a program. C# supports several types of literals are Integer Literals Real literals Boolean Literals Single character literals String Literals Backslash character literals

Description : Define what are the different types of Caching?

Last Answer : There are three types of Caching: 1. Output Caching: stores the responses from an asp.net page. 2. Fragment Caching: Only caches/stores the portion of the page (User Control) 3. Data Caching: is Programmatic way to Cache objects for performance.

Description : Define what are the two data types available in C#?

Last Answer : Value type Reference type

Description : Define what are value types and reference types?

Last Answer : Value types are stored in the Stack. Examples: bool, byte, chat, decimal, double, enum, float, int, long, byte, short, strut, uint, ulong, short. Reference types are stored in the Heap. Examples: class, delegate, interface, object, string.

Description : Define what are the different types of statements supported in C#?

Last Answer : C# supports several different kinds of statements are Block statements Declaration statements Expression statements Selection statements Iteration statements Jump statements Try catch statements Checked and unchecked Lock statement

Description : Define what are reference types in C#?

Last Answer : Below is the list of reference types in C# – 1. class 2. string 3. interface 4. object

Description : Define what are value types in C#?

Last Answer : Below is the list of value types in C# – decimal int byte enum double long float

Description : List out two different types of errors in C#?

Last Answer : Below are the types of errors in C# – 1. Compile Time Error 2. Run Time Error

Description : What are the types of comments in C#?

Last Answer : Below are the types of comments in C# – Single Line Comment Multiline Comments XML Comments

Description : What are the three possible settings for the CommandType property of a SqlCommand object or an OleDbCommand object, and what does each mean?

Last Answer : A Command object can have a CommandType property setting of Text, StoredProcedure, or TableDirect. When set to Text, the command executes the SQL string that is stored in the Command object's ... that the command should return the entire contents of the table indicated by the CommandText property. 

Description : What are three test cases you should go through in unit testing?

Last Answer : 1. Positive test cases (correct data, correct output). 2. Negative test cases (broken or missing data, proper handling). 3. Exception test cases (exceptions are thrown and caught properly).

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

Description : What are three test cases you should go through in unit testing? 

Last Answer : 1. Positive test cases (correct data, correct output). 2. Negative test cases (broken or missing data, proper handling). 3. Exception test cases (exceptions are thrown and caught properly).

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources). 

Description : What si the difference between interface and abstractclass Select Answer:  1. interface contain only methods  2. we can't declare a variable for interface  3. interface contain only events  4. None  5. All

Last Answer : Ans : 2 The only Difference between Interface and Abstract class is we can declare a variable in abstract class but we can't declare in variable interface

Description : What is the lifespan for items stored in ViewState? Select Answer:  1. Item stored in ViewState exist for the life of the current page  2. Item stored in ViewState exist for the life ... of the current Applicaiton  4. Item stored in ViewState exist for the life of the current configuration

Last Answer : 1. Item stored in ViewState exist for the life of the current page AS any web application works on request and response basis ,so on every post backs, The data in control gets lost. To retain page ... control with data. The life cycle of the view state exist for life of current running page only. 

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 would you ensure that all relevant registry entries were removed in the event that installation of your application failed?

Last Answer : You can ensure that registry entries are removed, as well as perform any other “clean-up” tasks, by creating an Installer class and writing the appropriate code in the Rollback event handler. Then create a new Custom Action and set the InstallerClass, and EntryPoint properties to appropriate values.

Description : Describe a general strategy for creating a setup project that terminates installation if a specific file is not already installed on the target machine.

Last Answer : First, create a file search to search the file system for the specific file. Then create a launch condition to evaluate the results of the search. You can connect the launch condition to ... in the search's Property property in the expression specified by the launch condition's Condition property. 

Description : What is the purpose of a bootstrapper application? When do you not need to create one?

Last Answer : A bootstrapper application automatically detects if Windows Installer is installed on the target machine. If Windows Installer is not present, it installs Windows Installer before proceeding with the rest ... Installer 1.5 already installed) or have had Microsoft Installer 1.5 installed previously.

Description : What is a native image? How do you create one?

Last Answer : A native image is a precompiled version of a .NET assembly. You can create a native image of your application by using the Ngen.exe utility.

Description : Describe XCOPY deployment. Under what conditions is it useful? When can it not be used?

Last Answer : XCOPY deployment is a simple method of deployment where the DOS command XCOPY is used to copy the application directory and any subdirectories to the target machine. You can use XCOPY ... an application requires a more complex deployment or references shared assemblies, you cannot use XCOPY.

Description : What is a shared assembly? How would you create one?

Last Answer : An assembly is an assembly of which only a single copy is installed per machine. This copy can be shared by multiple applications. To make an assembly a shared assembly, you must first assign it a strong name, and then install it to the global assembly cache.

Description : Briefly highlight the differences between imperative and declarative security as they pertain to code access security.

Last Answer : Imperative security is implemented by calling methods of Permission objects in code at run time. Declarative security is configured by attaching attributes representing permissions to classes ... request assembly-wide permissions using the Assembly (assembly) directive with declarative security.

Description : Explain how to retrieve information from the configuration file at run time. How would you store information in the configuration file at design time?

Last Answer : You must first create an instance of AppSettingsReader to read the configuration file. You can then call the GetValue method to read values represented in the configuration file. To add configuration ... used to retrieve the entry. The value can be changed between executions of the application.

Description : Describe how to use code to retrieve resources at run time.

Last Answer : You must first create an instance of the ResourceManager class that is associated with the assembly that contains the desired resource. You can then use the GetString method to retrieve string resources or the GetObject method to retrieve object resources.