Saturday, 9 May 2015

DOTNET TECHNICAL

• Technical


.NET- Types of threading models in VB.net

- Types of compatability in VB and their usage


- Difference between CDATA and PCDATA in XML


- What is Assync in XML api which version of XML parser u worked with


- Types of ASP objects


- Difference between application and session


- What is web application virtual directory


- Can two web application share a session and application variable


- If i have a page where i create an instance of a dll and without invoking any method can I send values to next page


- Diffeernce between Active Exe and /Dll


- Can the dictionary object be created in client’s ccope?


- About MTS and it’s purpose


- About writting a query and SP which is better


- I have a component with 3 parameter and deployed to client side now i changed my dll method which takes 4 parameter.How can i deploy this without affecting the clent’s code


- How do you do multithreading application in VB


- About Global .asax


- Connection pooling in MTS


- If cookies is disabled in clinet browser will session work


- About XLST


- How do you attach an XSL to an XML in presenting output


- What is XML


- How do you make your site SSL enabled


- Did you work on IIS adminisdtration


• Technical


.NET- Types of threading models in VB.net

- Types of compatability in VB and their usage


- Difference between CDATA and PCDATA in XML


- What is Assync in XML api which version of XML parser u worked with


- Types of ASP objects


- Difference between application and session


- What is web application virtual directory


- Can two web application share a session and application variable


- If i have a page where i create an instance of a dll and without invoking any method can I send values to next page


- Diffeernce between Active Exe and /Dll


- Can the dictionary object be created in client’s ccope?


- About MTS and it’s purpose


- About writting a query and SP which is better


- I have a component with 3 parameter and deployed to client side now i changed my dll method which takes 4 parameter.How can i deploy this without affecting the clent’s code


- How do you do multithreading application in VB


- About Global .asax


- Connection pooling in MTS


- If cookies is disabled in clinet browser will session work


- About XLST


- How do you attach an XSL to an XML in presenting output


- What is XML


- How do you make your site SSL enabled


- Did you work on IIS adminisdtration


Saturday, 10 January 2015


What are joins?Sometimes we have to select data from two or more tables to make our result complete. We have to perform a join.

How many types of Joins?Joins can be categorized as:
Inner joins (the typical join operation, which uses some comparison operator like = or <>). These include equi-joins and natural joins.
Inner joins use a comparison operator to match rows from two tables based on the values in common columns from each table. For example, retrieving all rows where the student identification number is the same in both the students and courses tables.
Outer joins. Outer joins can be a left, a right, or full outer join.
Outer joins are specified with one of the following sets of keywords when they are specified in the FROM clause:
What are the data types in SQL
bigint
Binary
bit
char
Cursor
datetime
Decimal
float
image
Int
money
Nchar
ntext
nvarchar
Real
smalldatetime
Smallint
smallmoney
text
Timestamp
tinyint
Varbinary
Varchar
uniqueidentifier

INDEX


What is Index? It’s purpose?
Indexes in databases are similar to indexes in books. In a database, an index allows the database program to find data in a table without scanning the entire table. An index in a database is a list of values in a table with the storage locations of rows in the table that contain each value. Indexes can be created on either a single column or a combination of columns in a table and are implemented in the form of B-trees. An index contains an entry with one or more columns (the search key) from each row in a table. A B-tree is sorted on the search key, and can be searched efficiently on any leading subset of the search key. For example, an index on columns A, B, C can be searched efficiently on A, on A, B, and A, B, C.

Index Optimization tips

2 tables
Employee
Phone
empid
empname
salary
mgrid
empid
phnumber
Select all employees who doesn't have phone?
SELECT empname
FROM Employee
WHERE (empid NOT IN
(SELECT DISTINCT empid
FROM phone))

Transact-SQL Optimization Tips

Use views and stored procedures instead of heavy-duty queries.
This can reduce network traffic, because your client will send to server only stored procedure or view name (perhaps with some parameters) instead of large heavy-duty queries text. This can be used to facilitate permission management also, because you can restrict user access to table columns they should not see.

Wednesday, 26 November 2014

C# interview questions

Q)What’s the implicit name of the parameter that gets passed into the class’ set method?
Q)How do you inherit from a class in C#?
Q)Does C# support multiple inheritance?
Q)How’s anchoring different from docking?

 Ans:   Anchoring treats the component as having the absolute size and adjusts its location relative to the parent form. Docking treats the component location as absolute and disregards the component size. So if a status bar must always be at the bottom no matter what, use docking. If a button should be on the top right, but change its position with the form being resized, use anchoring.

Q)How do you create a separator in the Menu Designer?

 ANS)A hyphen ‘-’ would do it. Also, an ampersand ‘&\’ would underline the next letter.


Q)How would you create a non-rectangular window, let’s say an ellipse?

ANS)Create a rectangular form, set the TransparencyKey property to the same value as BackColor, which will effectively make the background of the form transparent. Then set the FormBorderStyle to FormBorderStyle.None, which will remove the contour and contents of the form.




Friday, 14 November 2014

Interview Questions .NET Windows Forms

Can you automate this process?
ANS) In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval.



4)  You are designing a GUI application with a window and several widgets on it. The user then resizes the app window and sees a lot of grey space, while the widgets stay in place. What’s the problem?
ANS)One should use anchoring for correct resizing. Otherwise the default property of a widget on a form is top-left, so it stays at the same location when resized. 

2)Can you write a class without specifying namespace? Which namespace does it belong to by default??
              Yes, you can, then the class belongs to global namespace which has no name. For commercial                products, naturally, you wouldn’t want global namespace
1)Write a simple Windows Forms MessageBox statement.
       System.Windows.Forms.MessageBox.Show  ("Hello, Windows Forms");
 

Wednesday, 12 November 2014

DOT NET TECHNICAL INTERVIEW QUESTIONS PART 7

a) What is JavaScript on fly?
b) What is Design Pattern?
c) What is generic? Why it's needed?
d) What is delegate? Can u write a simple one?

e) What comes new feature in .net 2005 and .net 2008
f) what is indexer?
g) What is Impersonate?
h) Can u tell me one scenario of encapsulation?

DOTNET MNC TECHNICAL INTERVIEW QUESTIONS PART 6

1. What is asp.net worker process?
2. How will you create a website in iis7.0 without using any code.
3. Sql server 2000/2005/2008 differences?
4. Create Table statement?

DOT NET MNC TECHNICAL INTERVIEW QUESTIONS PART5

1. Have you created custom events?
2. Have you worked with delegates?
3. In which scenario we used interface and abstract class.
4. Why nonclustered indexes are created?

DOTNET MNC TECHNICAL INTERVIEW QUESTIONS PART 4

1. What is serialization? Why it is used? Types of serialization?
2. Have you done Data base design in your current project?
3. Can you use Ajax with asp.net 2.0 without using any control?
4. Difference between dataset and data reader?

DOTNET MNC TECHNICAL INTERVIEW QUESTIONS PART 3

1) How to stop a function to be inherited? 
2) Can we overload static constructor? By using Virtual Private Inheritance
3) Can we call the finalize method manually? No
4) Can we have finally without catch block? Yes
5) Can we have multiple catch blocks for single try? Yes
6) What is return type of multicast delegate? Yes

DOTNET MNC TECHNICAL INTERVIEW QUESTIONS PART 2

1. What is caching.?
2. Types of cahing?
3. What is cache Block?
4. What are indexers?
5. What is difference between Namespace and assembly?

Popular Posts