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?

DOTNET MNC TECHNICAL INTERVIEW PART 1


1. What is a Web service ? How it is different from remoting?
2. Diiferent life cycle events phases in asp.net web form.
3. OOPS concept in brief?
4. Different phases of sdlc?

Tuesday, 11 November 2014

ASP DOTNET MCQ PART 10

136) In ASP.NET the < authorization > section contain which of the following elements  
              a) Both A) and B) (ANS)
              b) < deny >
              c) < allow >
              d) None of the Above

137) Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:  
               a) One must override the method ReceiveMessage (ANS)
               b) One must override the method InitializeMethod
               c) Both A) and B)
               d) One must override the method ProcessMessage

ASP DOTNET MCQ QUESTIONS PART 9

126) Which of the following denote ways to manage state in an ASP.Net Application?
              a) Session objects
              b) Application object
              c) ViewState
              d) All the Above (ANS)

127) What is the base class from which all Web forms inherit?
               a) Master Page
               b) Page Class (ANS)
               c) Session Class
               d) None of the Above

ASP DOTNET MCQ PART8

 111) Which of the following are not a member of Server Object
              a) Execute
              b) Transfer
              c) Open (ANS)
              d) HTMLDecode

Monday, 10 November 2014

ASP DOTNET MCQ QUESTIONS PART 7

101) What is the purpose of Reflection?
               a) For Reading metadata at runtime (ANS)
               b) For knowing version of assembly
               c) For finding path of an assembly

102) Is it possible edit data in a repeater control
               a) No (ANS)
               b) Yes

103) Why is Global.asax is used for ?
              a) To implement application & Session level events (ANS)
              b) To store configuration information
              c) To store styling information
              d) None of the above


DOTNET MCQ QUESTIONS PART6

91) Select the Interface which provides Fast, connected forward-only access to data
              a) IdataRecord
              b) Idatabase
              c) IdataReader (ANS)
              d) Irecorder

92) How do we Delete, Update, Select data in a Dataset
              a) Using SQLDataAdapter (ANS)
              b) Using SQLDataReader
              c) Using SQLCommand
              d) None


93) Which of the following is not a member of ConnectionObject
              a) Execute (ANS)
              b) EndTransaction
              c) BeginTransaction
              d) Open

94) Is it Possible to Serialize HashTable with XMLSerializer
              a) Yes (ANS)
              b) No

95) What is the Full Form of WSDL
              a) Web System Description Language
              b) Web Services Detail Language
              c) Web Service Description Language (ANS)
              d) None

DOT NET MCQ QUESTIONS PART5

76) Select the control which does not have any visible interface
               a) Datalist
               b) DropdownList
               c) Repeater (ANS)
               d) Datagrid

ASP DOTNET MCQ QUESTIONS PART3

56) Which of the following is true ?
               a) IsPostBack is a method of System.UI.Web.Page class 
               b) IsPostBack is a method of System.Web.UI.Page class
              c) IsPostBack is a readonly property of System.Web.UI.Page class (ANS)

57) It is possible to set Maximum length for a text box through code
              a) True (ANS)
              b) False

ASP DOTNET MCQ INTERVIEW QUESTIONS PART 4

46) To add a custom control to a Web form we have to register with 
              a) TagPrefix
>               b) Name space of the dll that is referenced
              c) Assemblyname
              d) All of the above (ANS)

47) Custom Controls are derived from which of the classes

              a) System.Web.UI.Customcontrols.Webcontrol
              b) System.Web.UI.Customcontrol
              c) System.Web.UI.Webcontrol (ANS)

ASP DOTNET MULTIPLE CHOICE INTERVIEW QUESTIONS PART2


 30) Which of the following languages can be used to write server side scripting in ASP.NET?
               a) C# (ANS)
               b) C
               c) Visual Basic 

31) The Following are the minimum requirement to run Asp.net pages
              a) Java Virtual Machine
              b) Common Language Runtime (ANS)
              c) Windows explorer

ASP DOTNET MULTIPLE CHOICE QUESTIONS PART 1

21) To set page title dynamically in ASP.NET which of the following is used?
               a) None of the above
               b) < sheet > section
               c) < tail > section
               d) < head > section (ANS)


22) In ASP.NET application the Global.asax file lie in which directory
               a) Application
               b) System 
               c) ROOT (ANS)
               d) None of the Above

Popular Posts