C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Basic Questions with Answers for .Net


Posted Date: 21 May 2008    Resource Type: Articles    Category: .NET Framework
Author: Siva PrasadMember Level: Gold    
Rating: Points: 10



Question Paper with Answers
Basics:

1. What is meant by Software?

Ans: The term Software can be defined as a set of instructions that cause a computer to perform one or more tasks.

2. What is the difference between C and C++? What are the features of C++?
Ans: The main difference between C and C++ is, C is a function and procedure oriented language where as C++ is an Object oriented language. C++ is a extension of C language.
Features of C++ are Classes, Encapsulation, Composition, Inheritance and Polymorphism.

3. What is the difference between Structured Programming language and Object oriented programming language?
Ans: Object Oriented programming is a superset of structured programming. Object oriented is like calling someone from outside for help doing things in their own way .whereas structure is like you make it up object oriented programming uses bottom up approach.

4. How many types of access specifiers are there?
Ans: Private, Protected, Public, Internal, Protected Internal.

5. What is meant by Inheritance and an example of when you might use it?
Ans: Inheritance means acquiring the properties of a class. If you want to access a base class method from a derived class we need to use inheritance.

6. Can you prevent your class from being inherited by another class?
Ans: Declare class as a Sealed.

7. What is the difference between abstract class and Interface?
Ans: Interface means, it contains only methods which doesn’t have any body. Abstract class means, it contains concrete methods, abstract methods and static methods.

8. Why can’t you specify the accessibility modifier for methods inside the interface?
Ans: By default it comes with public.

.NET Technical Questions:

9. How many types of classes are there in C#?
Ans: Normal class, Abstract class, Static class and Sealed class.

10. Can you allow a class to be inherited, but prevent the method from being over-ridden?
Ans: Declare class as public and declare that method as a Sealed.

11. What are the features of .NET Framework?
Ans: The Microsoft .NET Framework is the programming model of the .NET platform. .NET is used for building, deploying, and running Extensible Markup Language (XML) Web services and all types of applications-both desktop and Web-based. The .NET Framework includes the common language runtime and class libraries.

12. What’s the top .NET class that everything is derived from?
Ans: System.Object.

13. What is the difference between Windows application and Web Application?
Ans: Windows application means it is desktop application it doesn’t expose on the internet. Web application also a client/server application but it needs a web server as a mediator to run the application. It exposes on the internet.

14. What is the Page life cycle of ASP.NET web form?
Ans: The life cycle for a Web Forms page is similar to that of any Web process that runs on the server. Mainly it contains four events Page_Init, Page_Load, Page_PreRender and Page_UnLoad.

15. What is an assembly?
Ans: An assembly is the basic unit used by the .NET CLR (Common Language Runtime) for deployment, version control, security, and code reuse. So, when you run your C#.NET program, you're executing the assembly. A "single file" assembly will be an EXE or DLL file.

16. What is the difference between DLL and assembly?
Ans: Both are same.

17. What is MSIL and why should developers need an appreciation of it?
Ans: When you run your C# program, entire source code will be complied into MSIL or IL, or CIL. MSIL is then converted to native code by JIT (Just-in Time Compiler) of the CLR and then native code is run by CLR.

18. What is the difference between Server.Transfer() and Response.Redirect? Why would I choose one over the other?
Ans: Server.Transfer can be used to redirect web page with in the website where as Response.Redirect can be used to redirect the web form with in the website as well as to other website.

19. What base class do all web forms inherit from?
Ans: Page.

20. Where does the web page belong in the .Net Framework class hierarchy?
Ans: System.Web.UI.Page.

21. Differences between ADO and ADO.NET.
Ans: ADO works with connected data. It has one main object that is used to reference data, called the Recordset object. This object basically gives you a single table view of your data, although you can join tables to create a new set of records. ADO.NET uses data in a disconnected fashion. When you access data, ADO.NET makes a copy of the data using XML. ADO.NET, you have various objects that allow you to access data in various ways. The DataSet object will actually allow you to store the relational model of your database. This allows you to pull up customers and their orders, accessing/updating the data in each related table individually.

22. What are the core ADO.NET objects?
Ans: If you are use Sql Server as a back end, Sqlconnection, SqlCommand, SqldataAdapter, SqlDataReader, DataSet are the main core objects.


23. What is the difference between ADO Record set and ADO.NET DataSet?
Ans: ADO Record set can hold a single table data where as ADO.NET DataSet can hold multiples tables data.

24. What is meant by a transaction? In which scenarios we need that?
Ans: Transaction means it is a process of all or none. We can define as, assume that a process contains three steps. When three steps are executing if any error occurred during that entire execution process would be rollback else commit.

25. What’s the difference between System.String and System.Text.StringBuilder classes?
Ans: String is immutable and StringBuilder is mutable. It was designed with the purpose of having a mutable string where a variety of operations can be performed.

26. What’s the .NET collection class that allows an element to be accessed using a unique key?
Ans: HashTable.

27. What is meant by tier?
Ans: A layer can be called as tier.

28. Explain the three services model commonly know as a three-tier application.
Ans: Presentation ( Front-End ) , Business Layer ( Application logic ) and DataAccess Layer ( Classes which deals with Database ).

29. What is the difference between 2-tier application and 3-tier application?
Ans: 2-tier application have Presentation logic and only one business Logic layer ( Combination of Application logic and DataAccess logic ). When it comes to 3-tier Presentation ( Front-End ) , Business Layer ( Application logic ) and DataAccess Layer ( Classes which deals with Database ).

30. What is the difference between Response.Write and Response.OutPut.Write?
Ans: Both are used to display output. Response.Write don’t give formatted output. Response.OutPut.Write can be used for formatted output.
31. How many types of Exception handlings are there?

32. What’s the C# syntax to catch any possible exception?
Ans: System.Exception.

33. Can multiple catch blocks be executed for a single try statement?
Ans: No.

34. Will the finally block get executed if an exception has not occurred?¬
Ans: Yes, whether exception raised may not be raised finally block executes.

35. What is bubble event?
Ans: An event raised by a child control handled by a parent control can be called as bubble event.

36. What is meant by web service?
Ans: Web Services are applications delivered as a service on the Web. Web services allow for programmatic access of business logic over the Web, because it implicitly uses XMl which is a universal acceptable language.

37. Web service can only be written in .NET (True or False) ?
Ans: False;

38. What is meant by Remoting?
Ans: The process of communication between different operating system processes, regardless of whether they are on the same computer. The .NET remoting system is an architecture designed to simplify communication between objects living in different application domains, whether on the same computer or not, and between different contexts, whether in the same application domain or not.

39. What is the difference between Remoting and Webservice?
Ans: Web Services are applications delivered as a service on the Web. Web services allow for programmatic access of business logic over the Web. Web services typically rely on XML-based protocols, messages, and interface descriptions for communication and access. Web services are designed to be used by other programs or applications rather than directly by end user.

Database Related Questions:

40. What is meant by Database? How many types of database servers are there?
Ans: It is a repository for storing end user information in the form of tables.

41. What is Normalization and De-Normalization? How many types of normalizations are there?
Ans: Database normalization is a design technique for structuring relational database tables. The main use of normalization is to reduce code redundancy. Types of normalizations are first normal form, second normal form, third normal form, boyce-Codd normal form, fourth normal form, fifth normal form, Domain/Key normal form, Sixth normal form. Denormalization is the reverse process of normalization. It's the controlled introduction of redundancy in to the database design. It helps improve the query performance as the number of joins could be reduced.

42. How many types of Constraints are there in Sql Server?
Ans: Domain constraints, Entity constraints, Referential Integrity constraints, Primary key, Unique key, Foreign key, Check and Default constraints.

43. What is the difference between Unique Key and Primary key?
Ans: Unique key doesn’t allow duplicate values but it allows one null value. Primary key doesn’t allow duplicate values and null values.

44. How many types of Stored Procedures are there in Sql Server?
Ans: Three, User-Defined stored procedures, Extended stored procedures and System stored procedures.

45. Which type of Stored Procedure used in Application Development and why?
Ans: User-Defined stored Procedures, which will improve the performance while inserting or retrieving.

46. How many types of Indexes are there? What is the difference between Clustered index and Non-clustered Index?
Ans: Two Types. Clustered index and Non-Clustered. The difference is that, Clustered index is unique for any given table and we can have only one clustered index on a table. The leaf level of a clustered index is the actual data and the data is resorted in case of clustered index. Whereas in case of non-clustered index the leaf level is actually a pointer to the data in rows so we can have as many non-clustered indexes as we can on the database.

Testing

47. What is high level design and low level design?
Ans: There are two types of documents prepared by the seniors ( Project Manager or Project Leader ) . Those are High level and low level documents.

48. What is Unit Testing?
Ans : The most 'micro' scale of testing; to test particular functions or code modules. Typically done by the programmer and not by testers, as it requires detailed knowledge of the internal program design and code. Not always easily done unless the application has a well-designed architecture with tight code; may require developing test driver modules or test harnesses.

49. How many types of Testing are there in Application Development?
Ans: Twenty One Types. Functional, Acceptance, Regression, Load, Black, White, Unit, Integration, Incremental Integration, Functional, System, Sanity, Performance, Usability, Installation/UnInstallation, Security, Compatibility, Ad-hoc, Alpha and Beta testing.

50. What is meant by a test case and a test plan?
Ans: Test case means the decision given by the tester whether the action Pass or fail. Test plan means description given to the tester based on action.








Responses

Author: ranipriya    02 Jun 2008Member Level: Gold   Points : 0
very good...Simple but it is very important...


Author: Mahesh Raj    07 Jun 2008Member Level: Gold   Points : 1
This is very good information,Continue posting such useful articles.


Author: Chandra Sheker.G    12 Jun 2008Member Level: Gold   Points : 0
this FAQS are good for Feshers


Author: Roopesh Babu Valluru    25 Jun 2008Member Level: Gold   Points : 0
really useful one...thx...


Author: Bunty    27 Jun 2008Member Level: Diamond   Points : 2
Hi,

Really really very good information on the basic concepts that are needed for .Net.

It is very useful for each and every one.

One think i like about you is that start with C language.

Really ausum post.

Keep posting such ausum post.

Thanks for sharing your knowledge.

Thanks and Regards
S.S.Bajoria


Author: Ashish Shah    19 Jul 2008Member Level: Gold   Points : 1
Hello,

Questions are good but the answer of the question has not much quality..

Answer are with not a good concept and matrial..

Better luck next time..

With Regards..

Ashish Shah
India,Surat


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: PageStatePersister class in 2.0 - To persist state on page or Session or even on Database.
Previous Resource: Indexers
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use