|
Human Computer Interaction (HCI)
What are the attributes to good GUI33? Why is it hard to design user interfaces? Why is it important to have good user interface? How surveys help in better designing? What are the Advantages and disadvantages of open ended questions? What are the Advantages and disadvantages of closed questions? Ranking V/S Rating questions What are Likert scale survey and factors needed to make questions on Likert scale? Explain is t-test and its types. What are usability inspection methods?
http://www.careerride.com/Human-computer-interaction.aspx
|
Side-by-site execution of assembly
What do you understand by side-by-site execution of assembly?
Side by side execution refers to running/execution of different versions of the same assembly at the same time on the same machine. It gives us more control over the versioning of the assembly. When you strong name an assembly, version number becomes a part of its identity, and thus we can register different version of the same assembly in the GAC and execute them side by side.
|
Crystal reports in .NET
How do we access crystal reports in .NET?
Steps: • Add a new web project • Add a new item to the project “crystal report” • Choose “Using the report wizard” to create a new report or simply choose “From an existing report” if you already have an existing crystal report. You could choose a “blank report” to create a report form scratch”. • Choose the data source • Browse data and fields that you want to show in the report. • And choose finish • Now you can design the report and customize it If you want you add crystal report in web/windows forms as well using crystal report viewer control.
|
.NET: Satellite Assemblies
Explain the steps to create and implement Satellite Assemblies.
Satellite assemblies are resource assemblies specific to language/culture. Different resource files are created for different languages/cultures and then the needed one is loaded based on the user. 1. Create a new web application 2. Drag 2 label controls, a dropdownlist and a button control. Add 2 items to the drop down, en-US and fr-FR. 3. Add a new folder called resources and add 2 resource assembly files in it., e.g.: res1.resx and res1.fr-FR.resx In res1.resx, add a key “Welcome” and value as “Hello there”. In res1.fr-FR.resx, add a key called “Welcome” and value as “Bon Journe”. 4. Generate their resource files by using the resgen command for each of these resource files and keep them in the App_GlobalResources folder. 5. On button’s click even at the following code: 6. Session["language"]=dropdownlist1.SelectedItem .Text ; Response.Redirect ("Webform2.aspx"); 7. Add a label inWebform2.aspx. In page load event of Webform2.aspx.cs add the following code. System.Resources.ResourceManager resourceManager =ResourceManager.CreateFileBasedResourceManager("res1",Server.MapPath("Resources")+Path.DirectorySeparatorChar , null); string getLanguage = Session["language"].ToString (); CultureInfo cultureInfo=new CultureInfo(getLanguage); Label1.Text=resourceManager.GetString ("Welcome",cultureInfo); When you execute the Webform1.aspx, choose one of the English or French option from the dropdownlist and hit the button. It should display welcome message based on the chosen option from the dropdownlist.
|
.NET: boxing and unboxing
Explain the uses of boxing and unboxing.
Boxing and Unboxing are used to convert value types into reference types and vice versa. Developers often need to make some methods generic and hence create methods that accept objects rather than specific value types. The advantage of reference types is that they don’t create a copy of the object in memory, instead pass the reference of the data in the memory. This uses memory much more efficiently, especially, if the object to be passed is very heavy. public class MyClass { public void MyClass() { } public void MyMethod() { int intVar1 = 1; // i is an integer. It is a value type variable. object objectVar = intVar1; // boxing occurs. The integer type is parsed to object type int intVar2 = (int)objectVar; // unboxing. The object type is unboxed to the value type } }
|
C#.NET: Use of abstraction
Explain the use of abstraction with an example using C#.NET.
Abstraction is used to create a common set of methods that might have different specific implementations by subclasses. Abstract class cannot be instantiated and consists of abstract methods without any implementations. Classes inheriting from abstract class must implement all the methods in abstract class. Public abstract class Shape { Private float _area; Public Float Area { Get{return _area;} Set{_area=value;} } Public abstract void CalculateArea(); Class Rect:Shape { Private float _height; Private float _width; Public Rect(float height, float width) { _height = height; _width = width; } Public Float Height { Get{return _height} Set{_height=value;} } Public Float Width { Get{return _width} Set{_width=value;} } Public override void CalculateArea() { This.Area=_height*_width; } }
|
ASP.NET - Login controls and Forms authentication
What is the difference between login controls and Forms authentication?
Login control provides form authentication. If we implement for authentication through form authentication then we do it through code. On the other hand, login control allows the easy implementation on the basis of form authentication without writing much of code. Underneath the control, the class used for login control is also FormAuthentication class. So instead of creating your own set of user credential validations and issuing of authentication ticket, it is simpler to use a normal login control.
|
1 |