Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Explain different C# Types used to create a csharp program?
Posted By :
Posted Date :
July 31, 2011
Basically c# compiler supplies intrinsic data types (int, double, string etc) and programmers can define user defined data types(class, struct, enum etc).
All above C# types fall into any one of the following categories
You can also find related Interview Question to
Explain different C# Types used to create a csharp program?
Different types of replication? Explain Each one..
The SQL Server 2000-supported replication types are:
Snapshot replication distributes data exactly as it appears at a specific moment in time and does not monitor for updates to the data. Snapshot replication is best used as a method for replicating data that changes infrequently or where the most up-to-date values (low latency) are not a requirement. When synchronization occurs, the entire snapshot is generated and sent to Subscribers.
Transactional replication, an initial snapshot of data is applied at Subscribers, and then when data modifications are made at the Publisher, the individual transactions are captured and propagated to
Merge replication is the process of distributing data from Publisher to Subscribers, allowing the Publisher and Subscribers to make updates while connected or disconnected, and then merging the updates between sites when they are connected.
Explain different types of cursors.
these cursors are invoked implicitly. User need not create, open, fetch or close the cursor.
these cursors are not invoked implicitly. User needs to create, open, fetch or close the cursor.
Stores a complete copy of the result set. Used mostly where scrolling is required. Static cursors don't support updates.
Forward -only cursors:
This cursor supports updates but not scrolling. It supports only fetching serially. Rows are not retrieved from the database until they are fetched.
Forward - only cursors /Read only cursor:
These are the fastest of the cursors and cannot be updated. They cannot be created on query that returns only read only columns.
Key set driven:
It is a scrollable cursor that cannot be updated. These cursors are controlled by a set of physical identifiers called as key set. The keyset is built in a temporary table when the cursor is opened.
Is it possible to create cookies with keys? Explain using some example.
Yes, it is possible to create cookies with keys.
Cookies is a dictionary at the time of initialization, if key is specified with it. (You can determine whether cookie is dictionary or not using HasKeys property. )
For an example:
Response.Cookies("Testcookie")("key1") = "key1"
Response.Cookies("Testcookie")("key2") = "key2"
After this if you make assignment like,
Response.Cookies("Testcookie") = "noKey"
Then," key1" and "key2" of cookie("Testcookie") will be deleted.
Techunique Solutions is designing a website for a Goodways travels. One of the requirements given to the design team is that the website should handle the requirements of the employees of Techunique, travel agents and direct customers separately. Apart from that, the website should give information related to the new holiday packages announced by Goodways. The design team has decided to create separate interfaces for these three types of users. Peter Williams, one of the members of the design team, has been given the task to identify the home page strategy for the website. Which of the following home page strategies should Peter select for the travel website?
1, Splash home page
2, Menu home page
3, Path-based home page
4, News-oriented home page
Answer : 3
what is Bootstrap loader program? Explain its purpose?
Bootstrapping is a technique which activates more complex / complicated system of programs. When the system is started, a program called Basic Input Output System, initializes and tests the available computer system resources like peripherals, hardware, external memory devices are connected. Later it loads a program to allow the loading of larger programs, such as operating systems. In real sense, the operating system is loaded by BIOS boot strap loader.
explain Cursor types?
DYNAMIC: It reflects changes happened on the table while scrolling through the row.
STATIC: It works on snapshot of record set and disconnects from the server. This kind doesn't reflects changes happened on the table while scrolling through the row.
KEYSET: In this kind, new record is not reflected, but data modification can be seen
Whats New with webparts in Visual Studio 2010?
A developer can create two types of webparts using Visual Studio 2010.
1. Visual Webparts - Allows you to Drag and Drop the controls from the Toolbox to WebPart Design surface. You can of course write your custom code in the code file. You can also package and deploy your webparts directly to Sharepoint from VS by pressing Clt+F5. Visual studio 2010 also provides you with three different views for developing webparts. The views are split view, design view and Source view(as we have in SharePoint Designer 2007).
2. ASP.Net WebParts - Where a developer can build up User Interface and logic in a class file. You do not have designer for drag and drop of controls. This webpart inherits from standard ASP.Net webpart. For Deployment we can again use ctrl+f5 to deploy this webpart.
Explain Types of Data Source in .net?
DataSource: Allow data binding on Win Form Controls.
Types of DataSource:
1) Database 2) Service3) Object.
Database :Lets you connect to a database and choose the database objects for your application. This option creates a dataset.
Service:Opens the Add Service Reference dialog box that lets you create a connection to a service that returns the data for your application.
Object:Lets you choose an object that can later be used to generate data-bound controls.
What is Private Constructor? and it's use? Can you create instance of a class which has Private Constructor?
When a class declares only private instance constructors, it is not possible for classes outside the program to derive from the class or to directly create instances of it. (Except Nested classes)
Make a constructor private if:
1) You want it to be available only to the class itself. For example, you might have a special constructor used only in the implementation of your class' Clone method.
2) You do not want instances of your component to be created. For example, you may have a class containing nothing but Shared utility functions, and no instance data. Creating instances of the class would waste memory.
Which index option causes SQL Server to create an index with empty space on
the leaf level of the index?
What are the requirements to create a CLR based user-defined type?
CLR must be enabled for the instance and A class created with a CLR-compatible language.
What do you need to specify to create a linked server?
OLE DB Data Source
To create a string literal exclude escape sequence
@string. With adding @ at the beginning you can escape literal
All types in C# implicitly derive from.........
System.Object Class. System.Object is the parent class of all .NET classes
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend