How to Create Groups & Users in Acive Directory

Creating a group in Active Directory:
 Start Administrative ToolsActive Directory Users and Computers
 Right click on domain name  New  Group  Group Name : DevelopersGroup Scope: Domain LocalOK
 Similarly create Moderator group, Faculty group and Students group

To Create Users in Active Directory:
 Start Administrative ToolsActive Directory Users and Computers
 Right click on domain name  New  User  First Name : Faculty1User Logon : Faculty1NEXTPassword: abc@123 Select user cannot change password Select password never expiresNEXTFINISH
 Similarly create other users: Faculty2, Mod1, Mod2, Stud1, Stud2, Stud3, Stud4.

To Associate User to a Specific Group:
Right click on User NamePropertiesMember ofAddAdvancedFind NowSelect Group NameOKOK
We also create another user “SCAdmin” for whom we give access at a higher level so we don’t associate this user to any other group.

Configuring Internet Explorer to prompt Username and Password
Internet ExplorerToolsInternet OptionsSecurityLocal InternetCustom Level[under user authentication] Prompt for Username and PasswordOK

Boxing and UnBoxing in C# – BestDotNetTraining

Many times until runtime we don’t know the kind of data our variable will have…In this kind of situations we have to use “object” data type. Object is reference data type which can store any kind of value including value types and reference types.

·Boxing is the term used to describe the transformation from Value Type to object (reference type) only. The runtime creates a temporary reference-type box for the object on the heap.

UnBoxing is the term used to describe the transformation from object to value type. We use the term cast here, as this has to be done explicitly.

staticvoidMain()

{

    intn = 10;

    objectob = n; //boxing

    intm = (int)ob; //unboxing

}

1.Boxing / Unboxing should be used only in situations where until runtime we don’t know the type of data we are going to deal with.

2.When a value is boxed to an object type, the object type variable cannot be used in any mathematicaloperations.

3.When the value of object type variable cannot be assigned to variable on LHS, an Exception of type InvalidCastException is thrown.

4.Excessive usage of Object datatype makes the language “Loosely Typed” and also because of frequent casting requirement while Boxing and Unboxing performance is also degraded.

Awesome C# Interview Questions – BestDotNetTraining

1. What is the size of Boolean datatype in CTS?
a. 2 bytes
b. 1 bit
c. 1 byte

Ans: c
Explanation: minimum 1 byte can be assigned to any type in .net

2. Casting is done based on what?
a. Range
b. Size

Ans: a

3. Methods are overloaded based on what?
a. Parameter name
b. Parameter count
c. Return type

Ans: b

4. Advantages of Encapsulation?
a. Data Hiding / Abstraction.
b. Re usability of code
c. Loose Coupling

Ans: a, c

5. If multiple threads exist with the same priority then
a. First come first served algorithm will be applied
b. Time slice is assigned to each thread
c. Rescheduling will occur

Ans: b