What are the important extensions of LINQ ?

Friday, July 31, 2009


The following are the important extensions to LINQ:
1. LINQ to Object
2. LINQ to SQL
3. LINQ to XML
4. LINQ to DataSet


www.codecollege.NET

What is LINQ ?


LINQ (Language Integrated Query) is a set of language extensions using which you can perform query,set and tranform operations. It extends C# or VB.NET with syntax for queries and provides class libraries to use these features.


www.codecollege.NET

How will you stop a ASP.NET SQL Cache Dependency ?


SqlDependency.Stop(myconnectionstring); .


www.codecollege.NET

How will you start a ASP.NET SQL Cache Dependency ?


SqlDependency.Start(myconnectionstring); .


www.codecollege.NET

What is REPL ?


REPL is READ-EVAL-PRINT-LOOP.


www.codecollege.NET

What is DLR in .NET 4.0 ? or What is DLR?


DLR (Dynamic Language Runtime) allows any language to communicate with any other.
Ex:
Python and Ruby can communicate with C# and VB.NET


www.codecollege.NET

What is the use of dynamic keyword in C#.NET 4.0 ?


dynamic keyword .NET 4.0 is used as a data type. It is simillar to the var keyword in the sense it can hold any object type which is dynamically created.
Ex:
dynamic mycalc = GetCalculator();
int sum = mycalc.Subtract(900, 500);


www.codecollege.NET

What is the .NET 4.0 is mainly focusing on ?


.NET 4.0 mainly focuses on Dynamic Programming.


www.codecollege.NET

Are there any tools for Sharepoint BDC ?


BDC Meta Man is a Business Data Catalog tool .


www.codecollege.NET

What is BDC in Sharepoint ?


BDC(Business Data Catalog) is a new feature in MOSS 2007 which is a shared service. It is used to fetch data from back-ends without coding.


www.codecollege.NET

What is Reporting Center Dashboard in MOSS 2007 ?


They are used to tie the components of your Reporting Center in desired format for the user.


www.codecollege.NET

What is the feature in MOSS 2007 which is used to display Reports ?


The feature in MOSS 2007 which is used to display Reports is,
The Report Center Template.


www.codecollege.NET

What can be the Datasources for a KPI list?


The following can be used as Datasources for a KPI list:
1. SharePoint Lists
2. Excel Workbooks
3. SQL Server 2005 Analysis Services
4. Directly fed KPI data


www.codecollege.NET

What are the building blocks of Office System BI in MOSS?


There are 4 building blocks of Office System BI in MOSS, which are:
1. Excel Services
2. KPIs
3. Reporting Services
4. BDC


www.codecollege.NET

What are the types of ASP.NET Cache dependencies ?


ASP.NET includes 3 types of Cache dependencies, they are :
1. Dependencies on other cache items
2. Dependencies on files or folders
3. Dependencies on a database query


www.codecollege.NET

Daily Tips- Tip #22 - How will you avoid Concurrency conflicts ?


You can avoid Concurrency conflicts by match all or timestamp-based concurrency. That is when updating you need to check the current values with the db values.

Ex:
Update employee set empname=@ename, phone=@phone , salary=@salary
where empid=@orginalEmpid and designation=@orginalDesignation and managerid=@orginalmanagerid
.


www.codecollege.NET

Daily Tips- Tip #21 - An alternate to Javascript's document.getElementByid()?


You can use as an alternate to Javascript's document.getElementByid(), the following ASP.NET AJAX's method,
$get('nameofcontrol')
Ex:
var myctrl = $get('lblTotal')
.


www.codecollege.NET

How will you check whether a user is Authenticated or not ?


You can do that by the following method,
Request.IsAuthenticated();


www.codecollege.NET

Which Authentication strategy of Windows Authentication does not require user intervention ?


Integrated Windows Authentication does not require user intervention.


www.codecollege.NET

What Authentication strategy of Windows Authentication is supported by all browsers ?


Basic Authenticaion is supported by almost all browsers.


www.codecollege.NET

What is an Integrated Windows Authentication ?


It is a strategy in Windows Authentication where the user name and password are not sent as clear text. But a token of logged in user is sent.


www.codecollege.NET

What is a Digest Authentication ?


It is a strategy in Windows Authentication where the user name and password are not sent as clear text. But the information is sent using a Cryptographically secure hash.


www.codecollege.NET

What is a Basic Authentication ?


It is a strategy in Windows Authentication where the user name and password are sent as clear text.


www.codecollege.NET

What are the Authentication strategies in Windows Authentication ?


There are 3 Authentication strategies in Windows Authentication, they are:
1. Basic Auhentication
2. Digest Auhentication
3. Integrated Windows Auhentication


www.codecollege.NET

How can i install the common tables and Stored Procedures for ASP.NET Membership and roles APIs?


You can install the common tables and Stored Procedures for ASP.NET Membership and roles APIs using the following command,

sqlcmd -S (local)\SQLExpress -E -i InstallCommon.sql


www.codecollege.NET

What is the name of the method used to encrypt Password in ASP.NET Forms Authentication ?


The name of the method used to encrypt Password in ASP.NET Forms Authentication is,

FormsAuthentication.HashPasswordForStoringInConfigFile(strPassword,"SHA1");


www.codecollege.NET

How will you redirect to the home page after the user has been authentication in Forms Authentication ?

Thursday, July 30, 2009


You can redirect to the home page after the user has been authentication in Forms Authentication using the method,

FormsAuthentication.RedirectFromLoginPage(strUserName,false);


www.codecollege.NET

What is the name of the Authentication method used in Forms Authentication ?


FormsAuthentication.Authenticate(strUserName,strPassword);


www.codecollege.NET

What is the name of the default cookie used for Forms Authentication ?


.ASPXAUTH


www.codecollege.NET

What is the name of the method that is used to validate a user in ASP.NET Membership provider ?


The name of the method that is used to validate a user in ASP.NET Membership provider is,
Membership.ValidateUser(strUserName,strPassword);


www.codecollege.NET

What is the use of ASP.NET Membership provider?


Using ASP.NET Membership provider you can do the following operations,
1. Create New users
2. Delete users
3. Update users
4. Retrieve user list and details
5. Validate user credentials



www.codecollege.NET

What are the types of customErrors Mode in ASP.NET?

Wednesday, July 29, 2009


There are 3 types of mode, they are:
1. On
This setting applies when you want to enable custom errors.
2. Off
This setting applies when you want to disable custom errors.
3. RemoteOnly
This is when you want to display custom errors only to the Remote clients and generic full errors to local client.


Daily Tips- Tip #20 - How will you Check whether a browser supports AJAX callback or not?


You can check whether a browser supports AJAX callback or not by using the following property,
Request.Browser.SupportsCallback property.
.


www.codecollege.NET

What is a breadcrumb ?


A breadcrumb is a feature of ASP.NET SiteMapPath which shows the user's current location (hierarchy of the flow in which he came) and allows him to navigate back through any of the flow he came through by links.


www.codecollege.NET

Daily Tips- Tip #19 - How will you enable or disable Themes in a Page?


You can enable or disable Themes in a Page by setting 'true' or 'false' to the Page directive EnableTheming.


www.codecollege.NET

What is the main difference between MVP and MVC ?

Tuesday, July 28, 2009


In MVP the view is completely controlled by the Presenter, whereas in MVC, the controller and the model can update the view.


www.codecollege.NET

Name some of the popular Web Presentation Patterns?


1. MVC (Mode View Controller)
2. Page Controller Pattern
3. Front Controller Pattern


www.codecollege.NET

What's New in .NET 3.0 ?

Monday, July 27, 2009


The .NET Framework 3.0 has the following new Technologies in it:

•Windows Communication Foundation

•Windows Presentation Foundation

•Windows Workflow Foundation

•Windows CardSpace




www.codecollege.NET

What is .NET Remoting ?


MS .NET Remoting provides a framework through which objects in different application domains can interact with each other.



www.codecollege.NET

What are the key features of .NET 3.5?


LINQ and AJAX are the key features of .NET 3.5.



www.codecollege.NET

How can you reference current thread of the method ?



You can do that by calling the method,
Thread.CurrentThread();


www.codecollege.NET

What is CodeDom?



CodeDom (Code Document Object Model) is used to create programs which generates code from design.
Uses:
1. Templated code Generation:
Code generation for ASP.NET, XML Webservices proxies,etc
2. Dynamic Compilation:
Supporting code generation in 1 or more languages.



www.codecollege.NET

What is Native Image Generator (Ngen.exe)?



Native Image Generator (Ngen.exe) is a tool which generates machine specific code and loads them in the native cache of local computer.



www.codecollege.NET

What is the use of Installutil.exe?

Saturday, July 25, 2009



The Installutil.exe (Installer tool) allows you to install and uninstall server resources .





www.codecollege.NET

How can you view the GAC ?



You can view the GAC using the dll, Shfusion.dll .





www.codecollege.NET

What is the use of Makecert.exe ?



The Certificate Creation tool creates testing purposes X.509 certificates.





www.codecollege.NET

What is the use of LC.exe ?



The LC.exe (License Compiler)converts text files that contain licensing information and produces a .licenses file that can be embedded in a CLR executable as a resource.






www.codecollege.NET

What is the use of Resgen.exe ?



The Resgen.exe (Resource File Generator) converts .txt and .resx files to CLR binary .resources files. It can also do the following conversions,
.txt files to .resources or .resx files.
.resources files to text or .resx files.
.resx files to text or .resources files.






www.codecollege.NET

What is the use of Al.exe ?



The al.exe (Assembly Linker) generates a file with an assembly manifest from one or more files that are either modules or resource files. A module is a MS intermediate language (MSIL) file that does not have an assembly manifest.





www.codecollege.NET

What is the use of Aspnet_regsql.exe?



The ASP.NET SQL Server Registration tool is used to create a MS SQL Server database for use by the SQL Server providers in ASP.NET, or to add or remove options from an existing database. The Aspnet_regsql.exe file is located in the [drive:]\%windir%\Microsoft.NET\Framework\version folder on your Web server.




www.codecollege.NET

Daily Tips- Tip #19 - How will you do Post-Cache Substitution ?



You can do Post-Cache Substitution using the following method,
Response.WriteSubstitution()


www.codecollege.NET

What method of DataAdapter is used to fill a Dataset with schema alone?



FillSchema()


www.codecollege.NET

Global English .NET ,SQL Interview Questions



1.What are the differences between Abstract Class and Interface
2.What are the differences between View state and session state
3.Write an example for a Singleton Pattern
4.If you create 3 objects for a class which is having a static variable, then when you print the 1st object then what will be the values printed
5.What is polymorphism
6.what is runtime polymorphism and design time polymorphism
7.What are sps , their adv adn uses
8.what is a UDF
9.what are the differences between a SP and UDF
10.What are cursors
11.What are Indexes,types,differences
12.When will you go for which indexd
13.how will u take a db backup and restore
14.what is caching and what are its types
15.is caching common across all users
16.what is an appdomain
17. how will u write code for communication between applications in 2 diff app domains
18.what is remoting
19.what are webservices
20.what is the difference between remoting and webservice
21.what are the types of joins
22.how will you do query tuning
23.how will you check which part of your SP is running slowly
24.what are the config files in asp.net
25.what are the differences between .net and other prog languages
26.what is a CLR
27.what is a managed code
28.what is a dataset
29.what are the differences between a dataset and datareader
30.what are transactions
31.what are the types of transactions
32. what is a Enterprise Library
33. what are the blocks in the Enterprise Library
34. what are the asp.net controls you have used
35. Have you created any Custom Controls
36. What is a delegate
37. What are the types of delegates


www.codecollege.NET

What is Integrity ?

Friday, July 24, 2009



It ensures that data will be protected from being modified by unauthorised users when transmitted over a network or stored in a database.


www.codecollege.NET

What is Confidentiality ?



It ensures that data will be protected from viewing by unauthorised users when transmitted over a network or stored in a database.


www.codecollege.NET

What are the Compilation Modes in Asp.NET?



The Compilation Modes in Asp.NET are :
1. Classic Precompilation
2. Dynamci Compilation
3. Site Precompilation


www.codecollege.NET

What is a KPI list in Sharepoint?



Key Performance Indicator(KPI) list is an visual indicator that indicates the progress made towards a goal.




www.codecollege.NET

What are the Meeting Templates in MOSS?



The following are the Meeting Templates in MOSS :
1. Basic Meeting
2. Blank Meeting
3. Decision Meeting
4. Social Meeting
5. Multipage Meeting




www.codecollege.NET

What are the Publishing Templates in MOSS ?



The following are the Publishing Templates in MOSS :
1. News Site Template
2. Publishing Site with workflow Template
3. Publishing Site Template




www.codecollege.NET

What are the Collaboration Templates in Sharepoint ?



The following are the Collaboration Templates in Sharepoint :
1. Team Site Template
2. Blank Site Template
3. Wiki Site Template
4. Blog Template



www.codecollege.NET

What are the MOSS out-of-the-box workflows ?



The following are some of the important workflow templates in MOSS:
1. Approval
2. Collect Feedback
3. Collect Signatures
4. Disposition Approval
5. Group Approval
6. Translation Management



www.codecollege.NET

What are the type of Views in Sharepoint?



There are 4 types of views in M0SS2007 :
1. Standard views
2. Calendar view
3. Datasheet view
4. Gantt view.



www.codecollege.NET

What is the default port number for SSL?



The default port number for SSL used by servers is :
443.


www.codecollege.NET

What are the security levels that can be assigned to users in MOSS 2007?

Thursday, July 23, 2009



There are 4 default security levels that can be assigned and they are :
* Reader - Has read-only access to the Web site.
* Contributor - Can add content to existing document libraries and lists.
* Web Designer - Can create lists and document libraries and customize pages in the Web site.
* Administrator - Has full control of the Web site.





www.codecollege.NET

What is the extension of a WebPart file?



The extension of a WebPart file is .DWP.





www.codecollege.NET

What is URL encoding in Asp.net ?



URL Encoding is a feature in which you store information in the URL immediately following the address of the Page.





www.codecollege.NET

Question Bank for SQL Transaction and Locks Set 1




Transaction and Locks
======================
What is a "Database Transactions "?
What is ACID?
What is "Begin Trans", "Commit Tran", "Rollback Tran" and "Save Tran"?
What are "Checkpoint's" in SQL Server?
What are "Implicit Transactions"?
Is it good to use "Implicit Transactions"?
What is Concurrency?
What kind of problems occurs if we do not implement proper locking strategy?
What are "Dirty reads"?
What are "Unrepeatable reads"?
What are "Phantom rows"?
What are "Lost Updates"?
What are different levels of granularity of locking resources?
What are different types of Locks in SQL Server?
What are different Isolation levels in SQL Server?
If you are using COM+ what "Isolation" level is set by default?
What are "Lock" hints?
What is a "Deadlock" ?
What are the steps you can take to avoid "Deadlocks" ?
How can I know what locks are running on which resource?
Is the Tracsaction handling in Backend better than that in the Front end?




www.codecollege.NET

Question Bank for SQL Database Optimization Set 1




Database Optimization
======================
What are indexes?
How will you tune your queries?
How will you find slow running queries?
What are B-Trees?
I have a table which has lot of inserts, is it a good database design to create indexes on that table?
What are "Table Scan's" and "Index Scan's"?
What are the two types of indexes and explain them in detail?
What is "FillFactor" concept in indexes?
What is the best value for "FillFactor"?
What are "Index statistics"?
How can we see statistics of an index?
How do you reorganize your index, once you find the problem?
What is Fragmentation?
How can we measure Fragmentation?
How can we remove the Fragmented spaces?
What are the criteria you will look in to while selecting an index?
What is "Index Tuning Wizard"?
What is an Execution plan?
How do you see the SQL plan in textual format?
What is nested join, hash join and merge join in SQL Query plan?
What joins are good in what situations?


www.codecollege.NET

Question Bank for SQL Replication Set 1





Replication
=================
Whats the best way to update data between SQL Servers?
What are the scenarios you will need multiple databases with schema?
How will you plan your replication?
What is a publisher, distributor and subscriber in "Replication"?
What is "Push" and "Pull" subscription?
Can a publication support push and pull at one time?
What are different models / types of replication?
What is Snapshot replication?
What are the advantages and disadvantages of using Snapshot replication?
What type of data will qualify for "Snapshot replication"?
What's the actual location where the distributor runs?
Can you explain in detail how exactly "Snapshot Replication" works?
What is merge replication?
How does merge replication works?
What are advantages and disadvantages of Merge replication?
What is conflict resolution in Merge replication?
What is a transactional replication?
Can you explain in detail how transactional replication works?
What are data type concerns during replications?


www.codecollege.NET

Question Bank for SQL Reporting Services set 1




Reporting Services
=================
Can you explain how can we make a simple report in reporting services?
How do I specify stored procedures in Reporting Services?
What is the architecture for "Reporting Services "?
What are data-driven subscriptions?
How does the report manager work in SSRS?
What is Reporting Services
What are the Reporting Services components..?



www.codecollege.NET

Question Bank for Service Broker, Integration Services/DTS Set 1



Service Broker
==============
What do we need Queues?
What is "Asynchronous" communication?
What is SQL Server Service broker?
What are the essential components of SQL Server Service broker?
What is the main purpose of having Conversation Group?
How to implement Service Broker?
How do we encrypt data between Dialogs?

Integration Services/DTS
=========================
What is Integration Services import / export wizard?
What are prime components in Integration Services?
How can we develop a DTS project in Integration Services?




www.codecollege.NET

Question Bank for Notification Services set 1




Notification Services
=====================
What are notification services?
What are basic components of Notification services?
Can you explain architecture of Notification Services?
Which are the two XML files needed for notification services?
What is Nscontrols command?
What are the situations you will use "Notification" Services?



www.codecollege.NET

Question Bank for Data Warehousing/Data Mining set 1




Data Warehousing/Data Mining
============================
What is "Data Warehousing"?
What are Data Marts?
What are Fact tables and Dimension Tables?
What is Snow Flake Schema design in database?
What is ETL process in Data warehousing?
How can we do ETL process in SQL Server?
What is "Data mining"?
Compare "Data mining" and "Data Warehousing"?
What is BCP?
How can we import and export using BCP utility?
What is Bulk Insert?
What is DTS ?
Can you brief about the Data warehouse project you worked on?
What is an OLTP (Online Transaction Processing) System?
What is an OLAP (On-line Analytical processing) system?
What is Conceptual, Logical and Physical model?
What is Data purging?
What is Analysis Services?
What are CUBES?
What are the primary ways to store data in OLAP?
What is META DATA information in Data warehousing projects?
What is multi-dimensional analysis?
What is MDX?
How did you plan your Data ware house project?
What are different deliverables according to phases?
Can you explain how analysis service works?
What are the different problems that "Data mining" can solve?
What are different stages of "Data mining"?
What is Discrete and Continuous data in Data mining world?
What is MODEL is Data mining world?
How are models actually derived?
What is a Decision Tree Algorithm?
Can decision tree be implemented using SQL?
What is Naïve Bayes Algorithm?
Explain clustering algorithm?
Explain in detail Neural Networks?
What is Back propagation in Neural Networks?
What is Time Series algorithm in data mining?
Explain Association algorithm in Data mining?
What is Sequence clustering algorithm?
What are algorithms provided by Microsoft in SQL Server?
How does data mining and data warehousing work together?
What is XMLA ?
What is Discover and Execute in XMLA?



www.codecollege.NET

Question Bank for XML set 1



XML Integration
===============
What is XML?
What is the version information in XML?
What is ROOT element in XML?
If XML does not have closing tag will it work?
Is XML case sensitive?
What's the difference between XML and HTML?
Is XML meant to replace HTML?
Can you explain why your project needed XML?
What is DTD (Document Type definition)?
What is well formed XML?
What is a valid XML?
What is CDATA section in XML?
What is CSS?
What is XSL? or Is XSL similar to CSS?
What is Element and attributes in XML?
Can we define a column as XML?
How do we specify the XML data type as typed or untyped?
How can we create the XSD schema?
How do I insert in to a table which has XSD schema attached to it?
What is maximum size for XML datatype?
What is Xquery?
What are XML indexes?
What are secondary XML indexes?
What is FOR XML in SQL Server?
Can I use FOR XML to generate SCHEMA of a table and how?
What is the OPENXML statement in SQL Server?
I have huge XML file which we want to load in database?
How to call stored procedure using HTTP SOAP?
What is XMLA ?


www.codecollege.NET

Question Bank for ADO.NET



ADO.NET
=======
Which are namespaces for ADO.NET?
Can you give a overview of ADO.NET architecture ?
What are the two fundamental objects in ADO.NET ?
What is difference between dataset and datareader ?
What are major difference between classic ADO and ADO.NET ?
What is the use of connection object ?
What are the methods provided by the command object ?
What is the use of dataadapter ?
What are basic methods of Dataadapter ?
What is Dataset object?
What are the various objects in Dataset ?
How can we connect to Microsoft Access , Foxpro , Oracle etc ?
What's the namespace to connect to SQL Server?
How do we use stored procedure in ADO.NET?
How can we force the connection object to close?
I want to force the datareader to return only schema?
Can we optimize command object when there is only one row?
Which is the best place to store connectionstring ?
What are steps involved to fill a dataset ?
What are the methods provided by the dataset for XML?
How can we save all data from dataset ?
How can we check for changes made to dataset?
How can we add/remove row's in "DataTable" object of "DataSet" ?
What's basic use of "DataView" ?
What's difference between "DataSet" and "DataReader" ?
How can we load multiple tables in a DataSet ?
How can we add relation's between table in a DataSet ?
What's the use of CommandBuilder ?
What's difference between "Optimistic" and "Pessimistic" locking ?
How many way's are there to implement locking in ADO.NET ?
How can we perform transactions in .NET?
What's difference between Dataset. clone and Dataset. copy ?
Whats the difference between Dataset and ADO Recordset?





www.codecollege.NET

Question Bank for .NET and SQL set 2



.NET Integration
=================
What are steps to load a .NET code in SQL SERVER 2005?
How can we drop a assembly from SQL SERVER?
Are changes made to assembly updated automatically in database?
Why do we need to drop assembly for updating changes?
How to see assemblies loaded in SQL Server?
I want to see which files are linked with which assemblies?
Does .NET CLR and SQL SERVER run in different process?
Does .NET controls SQL SERVER or is it vice-versa?
Is SQLCLR configured by default?
How to configure CLR for SQL SERVER?
Is .NET feature loaded by default in SQL Server?
How does SQL Server control .NET run-time?
What's a "SAND BOX" in SQL Server 2005?
What is a application domain?
How are .NET Appdomain allocated in SQL SERVER 2005?
What is Syntax for creating a new assembly in SQL Server 2005?
Do Assemblies loaded in database need actual .NET DLL?
Does SQL Server handle unmanaged resources?
What is Multi-tasking ?
What is Multi-threading ?
What is a Thread ?
Can we have multiple threads in one App domain ?
What is Non-preemptive threading?
What is pre-emptive threading?
Can you explain threading model in SQL Server?
How does .NET and SQL Server thread work?
How are exception in SQLCLR code handled?
Are all .NET libraries allowed in SQL Server?
What is "Hostprotectionattribute" in SQL Server 2005?
How many types of permission level are there for an assembly?
Can you name system tables for .NET assemblies?
Are two version of same assembly allowed in SQL Server?
How are changes made in assembly replicated?
Is it a good practice to drop a assembly for changes?
In one of the projects following steps where done, will it work?
What does Alter assembly with unchecked data signify?
How do I drop an assembly?
Can we creat SQLCLR using .NET framework 1.0?
While creating .NET UDF what checks should be done?
How do you define a function from the .NET assembly?
Can compare between T-SQL and SQLCLR ?
With respect to .NET is SQL SERVER case sensitive?
Does case sensitive rule apply for VB.NET?
Can nested classes be accessed in T-SQL?
Can we have SQLCLR procedure input as array?
Can object datatype be used in SQLCLR?
How's precision handled for decimal datatypes in .NET?
How do we define INPUT and OUTPUT parameters in SQLCLR?
Is it good to use .NET datatypes in SQLCLR?
How to move values from SQL to .NET datatypes?
What is System.Data.SqlServer?
What is SQLContext?
Can you explain essential steps to deploy SQLCLR?
How do create function in SQL Server using .NET?
How do we create trigger using .NET?
How to create User Define Functions using .NET?
How to create User Defined Create aggregates using .NET?
What is Asynchronous support in ADO.NET?
What is MARS support in ADO.NET?
What is SQLbulkcopy object in ADO.NET ?
How to select range of rows using ADO.NET?





www.codecollege.NET

Question Bank for General Database concepts and SQL Server set 1




Database Concepts
=================
What is a database or database management systems (DBMS)?
What's difference between DBMS and RDBMS ?
What are CODD rules?
Is access database a RDBMS?
What's the main difference between ACCESS and SQL SERVER?
What's the difference between MSDE and SQL SERVER 2000?
What is SQL SERVER Express 2005 Edition?
What is SQL Server 2000 Workload Governor?
What's the difference between SQL SERVER 2000 and 2005?
What are E-R diagrams?
How many types of relationship exist in database designing?
Can you explain Fourth Normal Form?
Can you explain Fifth Normal Form?
What's the difference between Fourth and Fifth normal form?
Have you heard about sixth normal form?
What is Extent and Page?
What are the different sections in Page?
What are page splits?
In which files does actually SQL Server store data?
What is Collation in SQL Server?
Can we have a different collation for database and table?


SQL
===
Revisiting basic syntax of SQL?
What are "GRANT" and "REVOKE' statements?
What is Cascade and Restrict in DROP table SQL?
What is a DDL, DML and DCL concept in RDBMS world?
What are different types of joins in SQL?
What is "CROSS JOIN"?
You want to select the first record in a given set of rows?
How do you sort in SQL?
How do you select unique rows using SQL?
Can you name some aggregate function is SQL Server?
What is the default "SORT" order for a SQL?
What is a self-join?
What's the difference between DELETE and TRUNCATE ?
Select addresses which are between '1/1/2004' and '1/4/2004'?
What are Wildcard operators in SQL Server?
What's the difference between "UNION" and "UNION ALL" ?
What are cursors and what are the situations you will use them?
What are the steps to create a cursor?
What are the different Cursor Types?
What are "Global" and "Local" cursors?
What is "Group by" clause?
What is ROLLUP?
What is CUBE?
What is the difference between "HAVING" and "WHERE" clause?
What is "COMPUTE" clause in SQL?
What is "WITH TIES" clause in SQL?
What does "SET ROWCOUNT" syntax achieves?
What is a Sub-Query?
What is "Correlated Subqueries"?
What is "ALL" and "ANY" operator?
What is a "CASE" statement in SQL?
What does COLLATE Keyword in SQL signify?





www.codecollege.NET

Realtime .NET, SQL, Architecture Interview Questions 1



.net
====
1. what is the diff bet arraylist and hashtable
2. Can objects be stored in arraylist
3. Can arraylist be used instead of generics
4. Differenece between hashtable and dictionary

SQL
===
1. what is indexview

2. what are the 3 types of udfs

3. how will you find which join is running slowly

5. how will you handle exceptions in sql
6. how will you show your exceptions to the user


Architecture
============
1. can proxy pattern be used instead of observer pattern
2. can u say an alternate for observer pattern



www.codecollege.NET

What are the different types of UDFs ?


There are 3 types of UDFs, they are:
1. Inline.
2. Scalar valued.
3. Multistatement returning.


www.codecollege.NET

What are the Differeneces between Hashtable and Dictionary ?


Dictionary is faster than hashtable as it uses strongly typed values as input , so it will not suffer performance impact of doing the boxing \ unboxing.


www.codecollege.NET

Can objects be stored in arraylist ?


Yes.


www.codecollege.NET

What is the diff bet arraylist and hashtable ?


Hashtable has key to search and arraylist is not having, so hashtable is faster than arraylist.


www.codecollege.NET

Can a web service be used in a windows application?

Wednesday, July 22, 2009


Yes.


www.codecollege.NET

Can we call a web service asynchronously?


Yes.


www.codecollege.NET

Can a web service be only developed in asp.net?


No. You can develop in whichever language allows you.


www.codecollege.NET

Can we use multiple web services from a single application?


Yes.


www.codecollege.NET

How Can we disable the Viewstate for a control?


By specifying Viewstate="false" in control markup.
<% Page viewstate="false"%>



www.codecollege.NET

How to disable the Viewstate on page level?


By specifying Viewstate="false" in page directive.
<% Page viewstate="false"%>



www.codecollege.NET

Can we disable the view state application wide?


Yes. By specifying the following line in web.config



www.codecollege.NET

Vigna Systems .NET Interview Questions


1.How will you handle an IIS crash
2.have you handled a team
3.how will you handle a team member if he is not satisfied with the schedule
4.What are the advantages of an sp
5.what are the joins you have used
6.what is a self join
7.Have you used webservices
8.Have you worked in .net 2.0
9.what will you do if you have to fetch some 1000 records from db and display it in a datagrid ? What Measures will you take?
10.how will you do exception handling in sql server


www.codecollege.NET

Can a web service be used from a windows application?


Yes.


www.codecollege.NET

What are the databases used by MOSS 2007?


There are 6 Databases used by MOSS 2007,they are,
1. Content DB
2. Config DB
3. Administrative Content
4. Shared Services Search database
5. Shared Services database
6. Shared Services Content


www.codecollege.NET

What are the different types of Display modes in asp.net Webpart?


There are four display modes, they are :
1. The view mode
2. The catalog mode
3. The Edit mode
4. The Design mode.
5. Connect mode


www.codecollege.NET

Cognizant .NET and Sharepoint Interview Questions? or CTS .NET and Sharepoint Interview Questions?


1. Explain the Architecture of your project
2. What is a webpart
3. Why are you using Webparts
4.Have you used Personalization in Webparts
5. Can you explain what is a sequence diagram is
6. Can you explain the Life cycle of a page
7. What security mesearues you took for your project
8. How you tested NLB
9. Whats your role in the project
10. How you did unit testing
11.Have you used any unit testing tools? If yes what are they?
12.Have you used AJAX?
13.Explain me the advantages of AJAX
14.on which stage the https certificate verification is done
15.Have you used sharepoint object model?
16.Tell me about Enterprise Library
17.How will you manage the team
18.What optimization techniques you did with your queries
19.Have you written AJAX handlers
20.have you written HTTP handlers
21.Explain me the working of a HTTP handler
22.What design patterns have you used in your project
23.Have you used Facade Design pattern
24.Why Design patterns coming under the heading Methodology
25.Do you know about CatalogPart in a webpart
26.What is a Catalog mode in webpart
27.Have you used AJAX Control tool kit
28.What controls have you used in AJAX Control tool kit
29. Have you done admin , optimization, tuning in SQL
30. What are callbacks? What are the advantages of callbacks/
31. What are the differences between ADO and ADO.NET


www.codecollege.NET

Good jquery Tutorials

Tuesday, July 21, 2009



jquery Tutorials


jquery tutorials for designers



51 best of jquery tutorials and examples


15daysofjquery


15 most interesting jquery tutorials



jquery for Javascript developers





www.codecollege.NET

Free Downloads of TOP 6 Antivirus Softwares



AVG

Avast


Kaspersky


Avira


Norton


Comodo




www.codecollege.NET

Does .NET support Deterministic Destruction ?


No.


www.codecollege.NET

Daily Tips- Tip #18 - How will you encrypt credentials and session state connection strings?


Use the Aspnet_setreg.exe utility to encrypt credentials and session state connection strings.



www.codecollege.NET

What type of session handling can be used in NLB?


In NLB(Network Load balancing) server you can either have a SQL server mode or State Server mode of storing sessions. You cant store InProc as it depends on a single server whereas in NLB there will be more than 1 server.



www.codecollege.NET

Can session state be shared between ASP.NET and ASP pages?


Yes



www.codecollege.NET

What type of objects can be kept in Asp.net session?


InProc
If you are using InProc then you can store whatever object you want.
OutProc ( State server or SQL server)
If you are using OutProc then you can store objects that can be serialized and de-serialized .



www.codecollege.NET

Photon Info Tech .NET Interview Question SET 2


1. What object can be kept in session
2. what is the adv of using custom session
3. what are the GOF DP u have used
4. Explain about NLB
5. What type of session handling you did in NLB
6. Explain Singleton pattern with a program
7. Explain Chain of Responsibility pattern , on which scenarios you use it
8. What are the best practices you followed
9. Explain about SSL implementation in ASP.NET
10. What will you do in unit testing, hav u used any tools
11. HOw will you do a code review
12. Explain How you handled SQL server session in your project
13. What UML notations have you used
14. what is the purpose of encrypting the session




www.codecollege.NET

What is the key communication protocol in XML web services?

Monday, July 20, 2009


SOAP(Simple Object Access Protocol) .



www.codecollege.NET

What is an UDDI?


The UDDI (Universal Description, Discovery, and Integration) specifications define a standard way to publish and discover information about XML Web services.



www.codecollege.NET

What are the four steps in which a XML Web Service is accessed by a client from the server?


1. Client searches for a XML web service in UDDI, the UDDI returns the URL for the discovery document
2. Client requestes the discovery document from the XML Web service server, and it is returned.
3. Client then asks for the Web service description, server returns it.
4. Finally it requests the desired XML web service and it is returned.



www.codecollege.NET

Daily Tips- Tip #17 - How will you generate a Proxy source code from a SDL or WSDL file ?


You can generate a Proxy source code from a SDL or WSDL file using the tool,WebServiceUtil.exe.
Ex:
WebServiceUtil.exe /command:proxy WSConcat.sdl /language:VB


www.codecollege.NET

What is full form of WSDL ?


Web Service Description Language.


www.codecollege.NET

What is a webservice , give a simple example program?


A Web Service is programmable application logic accessible via standard Web protocols.

Ex:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {

//Uncomment the following line if using designed components
//InitializeComponent();
}


[WebMethod]
public string Myconcat(string s1, string s2)
{
return s1 + s2;
}

}


www.codecollege.NET

What is the extension of an ASP.net webservice file?


.asmx


www.codecollege.NET

Daily Tips- Tip #16 - How will you refresh an aspx page at regular intervals?


The following code snippet will refresh the page for every 30 seconds,
<meta http-equiv="refresh" content="30">


www.codecollege.NET

Daily Tips- Tip #15 - How will you add print functionality using Javascript in Asp.net ?


bPrint.Attributes("onclick") = "javascript.window.print();";


www.codecollege.NET

What are the Differences between TRUNCATE and Delete ?



































Sno

TRUNCATE


DELETE

1

TRUNCATE is faster

Comparitively
slower.
2

Removes all rows from a table

Can remove specific rows with
Where clause
3

Can not be Rolled back.

Can be.
4

Is DDL
Command.


Is DML Command.

5

Resets identity of the
table.

Does not.
6

Removes the data by deallocating the data pages and
logs the deallocation
.


Removes one row at a time and records an entry in
the transaction log for each deleted row
.





www.codecollege.NET

What are the differences between Primarykey and Unique key?

















Sno
Primarykey
Unique key
1
Creates Clustered index.
Creates Non-Clustered index.
2 Null values are not allowed Allows.


www.codecollege.NET

What is the use of DBCC commands?


DBCC stands for database consistency checker. We use these commands to check the consistency of
the databases



www.codecollege.NET

How can you debug failed assembly binds?


You can find failed assembly binds using Assembly Binding Log Viewer (fuslogvw.exe).



www.codecollege.NET

What is the The Difference Between Page.ClientScript.RegisterStartupScript and Page.ClientScript.RegisterClientScriptBlock ?


RegisterStartupScript method places the JavaScript at the bottom of the ASP.NET page right before the closing </form> element. The RegisterClientScriptBlock method places the JavaScript directly after the opening <form> element in the page.

RegisterClientScriptBlock will fire error if used with controls before load as it is inserted immediately after </form>, because the control would not have been loaded.




www.codecollege.NET


Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?

Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?


You can do it in 2 ways, they are:
1. Page.ClientScript.RegisterStartupScript() Method
2. Page.ClientScript.RegisterClientScriptBlock() Method

1. Page.ClientScript.RegisterStartupScript() Method
This class would be best used when you have a JavaScript function that you want to initiate when the page is loaded.

Ex:
Page.ClientScript.RegisterStartupScript(this.GetType(), "TestScript",
"function HelloWord() { alert('Hello World'); }", true);

btnTest.Attributes["onclick"] = "HelloWord()";

2. Page.ClientScript.RegisterClientScriptBlock() Method
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MethodA",
"JSCollections.js");




www.codecollege.NET


Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?

What are the use of the following comments // , /* */ ,/// ?


// = Single line comment
/* */ = Multi-line comment
/// = XML Documentation comment


www.codecollege.NET

Daily Tips- Tip #13 - How will you determine whether a startup script is already registered ?


By Calling the IsStartupScriptRegistered method you can determine whether a startup script with a given key and type pair is already registered or not.


www.codecollege.NET

Does C# support multiple-inheritance ?


No.


www.codecollege.NET

What is a Shared WebPart in SharePoint?

Sunday, July 19, 2009


A Web Part which was added to a Web Part Page by a user who is working on the page in shared view. Shared Web Parts are available to all users of a Web Part Page who have permissions access it.


www.codecollege.NET

What is a Private WebPart in Sharepoint?


A Web Part which was added to a Web Part Page by a user who is working on the page in personal view. Private Web Parts are available only to the user who added the Web Part.


www.codecollege.NET

What is a Sharepoint List and which are all the list types?


A list is a collection of information items displayed in a site. The following are the List types : Announcements, Links, Contacts, Events, Tasks and Issues.


www.codecollege.NET

How many types of libraries are there in Sharepoint ? What are they?


There three libraries in Sharepoint, they are:
1. Document libraries
2. Form libraries
3. Picture libraries


www.codecollege.NET

What are the layers in the 3-tier application ?

Saturday, July 18, 2009


There three layers in 3-tier application are:
1. Presentation (UI)
2. Business ( code Logic )
3. Data (storage)


www.codecollege.NET

When is the ViewState available during the page life cycle ?


Viewstate is available after the Init() and before the Page_Load() or OnLoad().


www.codecollege.NET

Do you know any of 3rd party Logging Component ?


log4net is a open source tool to help the programmer output log statements to a variety of output targets.


www.codecollege.NET

What is a lapsed listener problem in .NET?


It is the one of the causes for the leaks in .net. It occurs when a subscriber signs up for a publisher's event, but fails to unsubscribe. The problem is it doesnt get Garbage collected as it still holds reference.

Best solution is to give a UnSubscribe() method.


www.codecollege.NET

What are the valid datasources of a datagrid?


Valid data sources for the DataGrid are:

•DataTable
•DataView
•DataSet
•DataViewManager


www.codecollege.NET

Can the data in the repeater control be edited?


No.


www.codecollege.NET

What are jagged arrays ?


A jagged array is an array of arrays. The elements of a jagged array is also an array.

The elements of a jagged array can be of different dimensions and sizes.


www.codecollege.NET

What is a diffgram in .net?


A Diffgram is an XML format that is used to identify current and original versions of data elements. Dataset uses this format to load,persist and serialize data.


www.codecollege.NET

How to make a property Readonly in vb.net?

Dim eno As Integer

Public ReadOnly Property EmployeeNo As Integer
Get
Return eno
End Get
End Property

How to make a property Readonly in c#?

private int eno;

public int EmployeeNo
{

get
{
return eno;
}

}

Daily Tips- Tip #12 - How to map aspx pages with ISAPI in IIS? or How to Register ASP.NET with IIS?


The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows us to update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool. It has many more functionalities like listing all asp.net versions running,etc.

It is available in %windir%\Microsoft.Net\Framework\version folder.

The simple command to do the registration is,
aspnet_regiis -i -enable


www.codecollege.NET

what are the types of validation controls in asp.net?


There are 6 types of validation controls in asp.net, they are:
1. RequiredFieldValidator
2. RangeValidator
3. Regular Expression
4. CompareValidator
5. CustomValidator
6. ValidationSummary


www.codecollege.NET

What is an Error Provider Control ? What is an Error Provider Control ? Give an example.


The Error Provider control is used in windows forms to show error messages, it is like a validation control in asp.net.
Ex:
private void txtEmpName_Validating(object sender,System.ComponentModel.CancelEventArgs e)
{

if (txtEmpName.Text == "")
{

errProv.SetError (txtEmpName,"Enter Employee Name");

}

}


www.codecollege.NET

What is Event Bubbling ? or What is Bubbled Event ?


Event bubbling is a technique of ASP.NET page framework which allows a child control to propagate events to its containers.
They are raise by controls like Datagrid,Repeater,Datalist to make the events of the child like that of top controls. There are 2 methods using which a control can participate in event bubbling , they are :
1. OnBubbleEvent
2. RaiseBubbleEvent.


www.codecollege.NET

What are the Types of Caching in asp.net ? Explain with examples.


There are 3 types of caching in asp.net , they are:
1. Output Caching
2. Fragment Caching
3. Data Caching

1. Output Caching:
This type of caching caches the dynamic output generated.

Ex:
<%@ outputcache duration="75" VaryByParam="none" %>

2. Fragment Caching
This type of caching caches the portion of the page generated.

Ex:
Here caching is done based on the user control CtrlCountries,

<%@ outputcache duration="90" VaryByControl="CtrlCountries" %>

3. Data Caching
This type of caching caches the data object programatically.
Ex:
In the below example dsEmp is a dataset.
Cache.Insert("EmployeeDetails", dsEmp, Nothing,DateTime.Now.AddMinutes(.5), TimeSpan.Zero)





www.codecollege.NET

What are the new Features in MOSS 2007?

Friday, July 17, 2009


1. Business Data Catalog
2. Document Management
3. Web Content Management
4. Office SharePoint Server 2007 Excel Services
5. InfoPath Forms Services
6. Enhanced Search
7. Enhanced User Profiles,etc
8. Single Sign-on


www.codecollege.NET

Daily Tips- Tip #11 - How will you prevent the browser from caching Aspx page?


You can do that by the following code,
<% Response.Cache.SetNoScore(); %>


www.codecollege.NET

What are the differences between Inline code and Code Behind Code?

















Sno
Inline
code
Code Behind
Code
1
Its
within .aspx file.
Its in a external class file.
2 Dynamically compiled.
Compiled prior to deployment and
linked with .aspx file.

what is a formatter in .net?


FOrmatter is an object that does encoding and serializing at one end and deserializing and decoding messages into data at the other end.
All formatters implement IFormatter interface.


Types:

1. Binary
2. SOAP
3. Custom



www.codecollege.NET

What are the differences between TypeOf() and GetType() ?

















Sno
TypeOf()
GetType()
1
Its an operator.
Its a method.
2 Can't be overloaded
Has lot of overloads.


www.codecollege.NET

What are the differences between Dll and Exe ?






















Sno
Dll
Exe
1 Objects of DLLs can be created Cant
2 In-Process  Out-Process
3

Cant be started

as a standalone.

Can
be.



www.codecollege.NET

What are Daemon threads and how can you create one?

Thursday, July 16, 2009


What?
It is a thread which runs in the background and stops when the programm is not running.

How to create one?
Thread.Isbackground=true




www.codecollege.NET

Daily Tips- Tip #10 - How to disable browser's back button using javascript?

Wednesday, July 15, 2009


Actually you cant disable the browser's back button, but if you are navigating between 2 pages , then you can give this functionality between them. You have to give the code in the following in the 1st page.
You can do that in 2 ways, they are:

1. <body onLoad="history.go(+1)">

2. function noBack(){window.history.forward()}
noBack();
window.onload=noBack;




www.codecollege.NET

What are PDB files? Where must they be located for debugging to work?


What are PDB files?
A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program.

Where must they be located for debugging to work?
You must deploy your PDB symbols to either the directory with the image or the directory where the symbols were originally built.



www.codecollege.NET

What is a nullable Type? How to assign a default value to it? Are nested nullable types allowed?


What are nullable types?
Nullable types are those which can represent a null in addition to the normal range of values. It is an instance of System.Nullable.

How to assign a default value to it?
Use the ?? operator to assign a default value when it is assigned to a non-nullable type.
Ex:
int? empid=null;
int tempid= empid ?? 1;

Are nested nullable types allowed?
No.




www.codecollege.NET

What is the Difference between imperative and interrogative code?



Interrogative:
Those statements which return values to the calling code are called Interrogative code.

Imperative:
Those statements which does not return values to the calling code are called imperative code.





www.codecollege.NET

What is the use of Checked and UnChecked operators?



They are used to control the overflow checking context for integral-type arithmetic operations and conversions.





www.codecollege.NET

What is a Resource File ? or What is a resx file ?


A resource file is an XML file which specify objects and strings inside XML tags.


For More Information see the following link,

http://msdn.microsoft.com/en-us/library/ekyft91f(VS.80).aspx




www.codecollege.NET

Is it possible to extend a struct?


No.







www.codecollege.NET

Is it possible to implement an interface to a structure?


Yes.







www.codecollege.NET

What is the control which can be used to reserve the space on web page for storing localized data?


It is a Localize control. It is a Literal control and it is used when you want to display localized text in a specific area on the page.


Ex:
<asp:Localize ID="Localize1" runat="server"></asp:Localize>




www.codecollege.NET

What are the Magic Tables in Sql server?


There are 2 magic table in sql server, they are:
1. Inserted
2. Deleted




www.codecollege.NET

What is an IIS metabase ?


It is a repository for most of the Internet Information Services (IIS) configuration values. It is a XML file and can be edited manually or programmatically.




www.codecollege.NET

How will you do an IIS backup/restore?


By clicking Action > Backup/Restore Configuration , and then giving the backup name.
Simillarly for Restore.




www.codecollege.NET

what are IIS Host headers?


IIS allows you to assign any number of sites to a single IP address and distinguish them by using host headers.




www.codecollege.NET

Where are the IIS log files stored?


By default, IIS log files are stored in the :\WINNT\system32\LogFiles\W3SVC# folder of the system running IIS.




www.codecollege.NET

What is the difference between managed and unmanaged code?


Managed Code:

Any code that runs under the CLR (common Language Runtime) is a managed code.

UnManaged Code:

Any code that is not running under the CLR is an unmanaged code.





www.codecollege.NET

If you want to restrict a user from entering non-numeric characters in a textbox, which event will you use?


You can use the following three events, but keypress is more effective,ie it will act even before the character appears in the text box.


1. keydown
2. keypress
3. keyup




www.codecollege.NET

What Is Kerberos?


Kerberos is a type of an authentication protocol which is created my Massachusetts Institute of Technology (MIT) which helps users to communicate through an insecure network by proving their identity to one another.




www.codecollege.NET

What is impersonation in ASP.NET?


Impersonation is when ASP.NET executes code in the context of an authenticated and authorized client.
Impersonation can significantly affect performance and scaling. It is generally more expensive to impersonate a client on a call than to make the call directly.


Ex:
<identity impersonate="true"
userName="domain\user"
password="password" />




www.codecollege.NET

What’s the use of SmartNavigation property?


SmartNavigation property is deprecated from .net2.0 onwards. Use the SetFocus method and the MaintainScrollPositionOnPostback property instead.





www.codecollege.NET

What is Reflection? What namespace is used for it? Explain with an example.


Reflection is a mechanism using which you can get the details about .NET assemblies at runtime. The namespace used for Reflection is System.Reflection.





www.codecollege.NET

What is the namespace which manages Viewstate of Asp.net server controls?


System.Web.UI.StateBag




www.codecollege.NET

What is strong-typing versus weak-typing?


Strong Typing : Checks the type of variables at compile time
Weak Typying : checks the type of variables at Run time.




www.codecollege.NET

How many classes can a single .NET DLL contain?


Unlimited.




www.codecollege.NET

A good site for Testers.

A good site for Testers.


http://art-of-testing.blogspot.com/


www.codecollege.NET

Load and Stress Testing

A website which does Web Application Load and Stress Testing,


www.neotys.com


www.codecollege.NET

A website which gives the country-wise visitor count

A website which gives the country-wise visitor count with the flags of the countries being displayed.


www.flagcounter.com




www.codecollege.NET

A good site for Testers.

A good site for Testers.


http://art-of-testing.blogspot.com/


www.codecollege.NET

A website which does Web Application Load and Stress Testing

A website which does Web Application Load and Stress Testing,


www.neotys.com


www.codecollege.NET

What is App Pool in IIS ?


An application pool is a group of one or more URLs that are served by a worker process or set of worker processes. Any Web directory or virtual directory can be assigned to an application pool.




www.codecollege.NET

what are the Differences between Panel and GroupBox in asp.net ?





















Sno
GroupBox
Panel
1 Has a visible caption No
2 Always displays a border  Border is determined by BorderStyle Property.
3

Doesnot support scrolling

Enables automatic scrolling using AutoScroll
property.



www.codecollege.NET

What is the use of the Assert Method?


Debug.Assert checks for a condition and displays a message if the condition is false.



www.codecollege.NET

Can two different Languages be used in a single .aspx page?


No.



www.codecollege.NET

How to find the .NET version i am using through code?


Response.Write(System.Environment.Version.ToString());



www.codecollege.NET

What are the different types of JITs in .NET ?


There are 3 types of JITs in .NET, they are

1. Pre-JIT (Compiles entire code into native code at one stretch)
2. Ecno-JIT (Compiles code part by part freeing when required)
3. Normal JIT (Compiles only that part of code when called and places in cache)



www.codecollege.NET

Can we use multiple ScriptManagers on a page?


No.



www.codecollege.NET

Can a static class be instantiated ?


No.



www.codecollege.NET

Can a static class contain non static members?


No.



www.codecollege.NET

How many types of CommandType options are there in Command object of ADO.NET?


There are 3 types of CommandType in Command object of ADO.NET. They are :

1. CommandType.Text
2. CommandType.TableDirect
3. CommandType.StoredProcedure


1. CommandType.Text:
Should be used when you pass a TSQL statement(select,insert,update,etc).


2. CommandType.TableDirect
You will specify the name of the table from which you want the records.


3. CommandType.StoredProcedure
Is used when you pass the name of a stored procedure.



www.codecollege.NET

How many types of Execute methods are there in ADO.NET's Command Object?


There are 4 types of Execute Methods ADO.NET's Command Object. They are :

1. ExecuteNonQuery();
2. ExecuteReader();
3. ExecuteScalar();
4. ExecuteXmlReader();




www.codecollege.NET

Can you store multiple data types in a System.Array?


No.






www.codecollege.NET

Which .NET type maps to the C# keyword 'int' ?


System.Int32;






www.codecollege.NET

What are the different methods to deploy an Assembly?


MSI Installer, a CAB archive, XCOPY command.






www.codecollege.NET

What is the smallest unit of execution in .NET?


Assembly.






www.codecollege.NET

What is the name of technique used to convert a value-type to a reference-type ?


Boxing.






www.codecollege.NET

What is default modifier for an Interface ?


public.






www.codecollege.NET

What is the default modifier for a Class?


private.






www.codecollege.NET

What is Default Authentication in ASP.NET?


Windows.






www.codecollege.NET

Can we inherit a static class ?


No.






www.codecollege.NET

What is default time duration for a session?


20 seconds.






www.codecollege.NET

Daily Tips- Tip #9 - How to enable javascript debugging in Visual Studio IDE?


You need to do 2 things for that.

1. Write debugger statement at the line from where you want to debug.
2. Enable javascript debugging in the browser property settings.






www.codecollege.NET

What are Attribute? What is the use of it? What are the types?


Attributes is feature using which you can add metadata to your classes. Metadata means giving declarative information about your classes, methods,etc.


Types:
1. Intrinsic
2. Custom


1. Intrinsic
The belong to .NET CLR.
2. Custom
They are the attributes developed the developer.






www.codecollege.NET

What is the use of params keyword? Give an example.

Tuesday, July 14, 2009


params is used on such situations where the number of arguments to a method is not known until runtime. If you prefix the params keyword followed by the type as array without size, then you can pass as many arguments as you want.


Ex:
using System;
using System.Collections.Generic;
using System.Text;

namespace ParamSample
{
class Program
{
public static void PrintWords(params String[] p)
{
for (int i = 0; i < p.GetLength(0); i++)
{
System.Console.WriteLine(p[i]);
System.Console.Read();
}
}

static void Main(string[] args)
{
PrintWords("1","2","3");
}
}
}



www.codecollege.NET

What is the use of the AssociatedControlID?


If you want to associate a control with Label, then you can give an access key to the label control and set the AssociatedControlID property of the Label to the control to which you want the label to associate. When you do so, upon clicking the AccessKey Focus will be set to the Associated Control.


Ex:
<form id="form1" runat="server">
<div>
<asp:Label ID="lblName" runat="server" AccessKey="N" AssociatedControlID="TextBox1"
Text="Name"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<br />
<asp:Button ID="Button1" runat="server" Text="Button" AccessKey="B" OnClick="Button1_Click" /></div>
</form>



www.codecollege.NET

Daily Tips- Tip #8 - How will set an Accesskey for a button?


You can do that by setting the AccessKey attribute of the button.


Ex:
<asp:Button ID="btnTest" runat="server" AccessKey="T" Text="Test" OnClick="btnTest_Click" />



www.codecollege.NET

Daily Tips- Tip #7 - How will you make a button the default button?


You can do that by setting the DefaultButton attribute of the form in which the button is present.


Ex:
<form id=f1 defaultbutton="btnSubmit" runat="server">
<asp:textbox id="textbox1" runat="server"/>
<asp:button id="button1" text="btnSubmit" runat="server"/>
</form>



www.codecollege.NET

What is the purpose of AutoEventWireup Page directive?


When set to true , it ensures that the event handlers for the page will be automatically called when the events occur on the page.



www.codecollege.NET

What is the difference between the Write and Warn methods of the TraceContext Class?


Write - Writes the message in default colour.
Warn - writes the message in red colour.



www.codecollege.NET

How will you enable tracing in a asp.net page?


By setting the following page directive,
Trace=True


Ex:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Trace="true" %>



www.codecollege.NET

How will you filter a DataView ?


You can do that by using the property,

RowFilter



www.codecollege.NET

How will you find a control in a page and access it?


You can find any control in a page using the following method,

FindControl(controlid);



www.codecollege.NET

What are the special folders in asp.net and their purpose?

























Sno
Folder
Purpose
1 App_Code This folder is for the Non-page class files that
are compiled together to create a single assembly.
2 App_Data For the Database files used by the application.
3

App_Themes

For the Themes used by the
application.
4

Bin
For the Compiled code
used by the application


 

What is Causes Validation property for?


It is a property which determines whether the validation that has to be done by the validation control should happen or not on the button click. Default value is True.



www.codecollege.NET

What is AutoPostBack ?


It is a property which determines whether a page is posted back to the server when the value of the control changes. Applicable for controls like check box,drop-down list,radio button or text box. Default value is false.



www.codecollege.NET

Daily Tips- Tip #6 - How will you Disable Validation for ASP.NET Server Controls ?

Monday, July 13, 2009


On some pages you will allow users to post even if validations fail. By doing this setting you ask asp.net to by pass validations both at the client and server

For example to bypass validations use this skip button,
<asp:Button id="Button1" runat="server"
Text="Skip" CausesValidation="False">
</asp:Button>

To disable validation at server:

change the validation control's Enabled property to false.

To disable validation at client:

Change the validation control's EnableClientScript property to false.



www.codecollege.NET

Daily Tips- Tip #5 - How will you know whether the page validation succeeded or not?


By calling

IsValid();


www.codecollege.NET

How will you know whether a page is involved in cross-page postback?


By calling

IsCrossPagePostBack();


www.codecollege.NET

How will you know whether the page request is the result of a callback?


By calling

IsCallBack();


www.codecollege.NET

Daily Tips- Tip #4 - How will you know whether the page is posted back or not?


By calling,

IsPostBack();



www.codecollege.NET

Can we have different access modifiers on get and set?


By calling

No. For a property access modifier is same for get and set.


www.codecollege.NET

How will you suppress the finalize method?


By calling

GC.SuppressFinalize();


www.codecollege.NET

What are the differences between Classes and Structures?
































Sno Class Structure
1 Reference Type Value Type
2 Stored in heap Stored in stack
3 Inheritance is available Not
4 Protected Modifier is allowed Not
5 Construtor is mandatory Not
5 Objects are destroyed in GC Not


 

What is SQL Cache Dependency in ASP.NET?


Is a feature which invalidates your cache when its dependent database table is changed. That is you cache some data from a table and the cache will automatically get invalidated when anything is changed in the table.


www.codecollege.NET

What are all the ways you can maintain state in asp.net?


Server-side:
1. Session
2. Application
3. Cache

Client-side:
1. Hidden fields
2. Hidden frames
3. View state
4. Cookies
5. Query String


www.codecollege.NET

What are the different modes ASP.NET sessions can be stored?


Asp.net session can be stored in 3 different modes:
1. In-Process
In this mode state is stored in asp.net worker process (aspnet_wp.exe). This is the default mode. The disadvantage is if IIS is restarted state will be lost.
2. State Server
In this mode state is stored in state server (which solves the IIS restart issue as the state server(aspnet_state.exe) can be kept in a separate machine). In this state is serialized and stored.
3. SQL server
Here state is serialized and stored in sql server.


www.codecollege.NET

What is scavenging ?


Scavenging is the process of removing items from cache when memory is scarce. Items are removed either when they are not accessed for some time or when they are marked as low priority when added to cache. Asp.net uses CacheItemPriority object to determine which items to be removed first.


www.codecollege.NET

what are sharepoint features ?


Features add new functionality to a SharePoint 2007 farm, site collection, or site.


www.codecollege.NET

From which base class do the Event receivers inherit from?


They inherit from the SpItemEventReciever or SPListEventReciever base class (both of which derive out of the abstract base class SPEventRecieverBase)


www.codecollege.NET

What are event receivers?


Event Receivers are classes which provide some functionality for an event happened. For Ex: adding an item to document library.


www.codecollege.NET

What is CAML, and what is the use of it?


What is CAML?
CAML is Collaborative Application Markup Language. CAML is the XML-based language that is used to build and customize Web sites based on SharePoint™ Team Services from Microsoft®.
Its Use:
It is generally used to Provide schema definition to the Web site provisioning system about how the site looks and acts, Define views and forms for data and page rendering or execution,Act as a rendering language that performs functions in the DLL like pulling a value from a particular field,Provide batch functionality for posting multiple commands to the server using protocol.


www.codecollege.NET

What are the safe control entries in Sharepoint?


A safe control entry is an entry in the web.config file you make when you want to use your custom assembly with your sharepoint webpart.


www.codecollege.NET

jQuery and Microsoft

Sunday, July 12, 2009


A good Article on jQuery and Microsoft is in the following link,
jQuery_and_Microsoft


www.codecollege.NET

best practices against hacking

Saturday, July 11, 2009


Hey guys,

It's important to think about security in order to avoid exploits by malicious third parties ..This link provide details on some types of hacking attempts and how to prevent them..

best-practices-against-hacking

Thanks & regards,
KannappaN Venkatachalam


www.codecollege.NET

What are the Differences between dataset.clone and dataset.copy?


Clone - Copies the structure of the DataSet.

Copy - Copies both the structure and data of the DataSet.


www.codecollege.NET

What are the different methods and Properties of DataReader which you have used in your project?






Read

GetString

GetInt32





Some good design pattern Links set 1






dofactory.com

wikipedia.org

sourcemaking.com



What is compile time binding and run time binding? (or) What is early/late binding? Explain with an example.

Thursday, July 9, 2009




An object is early bound when it is assigned to a variable declared to be of a specific
object type. Early bound objects allow the compiler to allocate memory and perform other

optimizations before an application executes.



' Create a variable to hold a new object.

Dim FS As FileStream

' Assign a new object to the variable.

FS = New FileStream("C:\tmp.txt", FileMode.Open)



By contrast, an object is late bound when it is assigned to a variable declared to
be of type Object. Objects of this type can hold references to any object, but lack
many of the advantages of early-bound objects.


Dim xlApp As Object

xlApp = CreateObject("Excel.Application")

Which method will be called from the following code? (or) Explain Polymorphism with override Modifier in c#.


using System;
using System.Collections.Generic;
using System.Text;

namespace OOPs21
{
class BaseClass
{
public virtual string ShowMe()
{

return "base";
}
}
class DerivedClass : BaseClass
{
public override string ShowMe()
{

return "derive";
}

public static void CallShowME(BaseClass objBC)
{
Console.Write(objBC.ShowMe());
}


public static void Main()
{
DerivedClass vardc = new DerivedClass();
CallShowME(vardc);
Console.Read();
}

}
}




Answer:

derive


www.codecollege.NET

Which method will be called from the following code? (or) Explain Polymorphism with New Modifier


using System;
using System.Collections.Generic;
using System.Text;

namespace OOPs21
{
class BaseClass
{
public string ShowMe()
{

return "base";
}
}
class DerivedClass : BaseClass
{
public new string ShowMe()
{

return "derive";
}

public static void CallShowME(BaseClass objBC)
{
Console.Write(objBC.ShowMe());
}


public static void Main()
{
DerivedClass vardc = new DerivedClass();
CallShowME(vardc);
Console.Read();
}

}
}




Answer:

base


www.codecollege.NET

How to use the new modifier in hiding base class method?


using System;
using System.Collections.Generic;
using System.Text;

namespace OOPs21
{
class BaseClass
{
public string ShowMe()
{

return "base";
}
}
class DerivedClass : BaseClass
{
public new string ShowMe()
{

return "derive";
}


public static void Main()
{
DerivedClass vardc = new DerivedClass();
Console.Write(vardc.ShowMe());
Console.ReadLine();
}

}
}



www.codecollege.NET

What is Pinvoke?






Platform invoke is a service that enables managed code to call unmanaged functions implemented in dynamic-link libraries (DLLs), such as those in the Win32 API. It locates and invokes an exported function and marshals its arguments (integers, strings, arrays, structures, and so on) across the interoperation boundary as needed.


www.codecollege.NET

Applied Development .NET interview Questions

1. what is a webservice and how it
works
2. what is a proxy
3. what is multilevel inheritance and multiple
inheritance
4. what is the use of multilevel inheritance
5. how ajax
works
6. what is mvp
7. what cons u need to take in designing database
table
8. what cons u need to take in writing stored procs
9. what are
indexes ,types
10. if a web app is running slowly how will u increase the
performance
11. how will u check the performance of methods in a class
12.
how will u either turn on or off methods ina class
13. i want to write some
code in all page_loads automatically how, will i do it
14. where(which layer)
will u write your excep hand
15. what is trace and debug
16. how will u
enable or disbale it
17. which design patterns u have used
18. what is
chain of responsibility
19. From which class Textbox control is
inherited
20. what is inner exception20.
21. what will u avoid when
writting sps



www.codecollege.NET

CapGemini .NET interview Questions

1. how will you mange sessions in asp.net
2.
what happens to the session when you go between pages
3. what is
autoeventwireup
4. what are infopath forms and how r they published
5.
where do a sharepoint webpart inherit form
6. what are the diff bet the 2
webparts
7. if u have 2 classes a,b and b is derived from a .in both
class's
constructor a mess box is called. If i create an object for B
then
which will be called first
8. how will u check whether the user is
supportig cookies
9. how will u do cookieless sessions
10. explain about
session management
11. when will u go for what type of session
management
12. caching, types, how
13. where are session details stored
between pages
14. when will u go for interface and when will u go for
abstract classes
15. how will u communicate bet user controls
16. how will u deploy a
webpart in sharepoint and what are the
diff


www.codecollege.NET

Aculis .NET interview Questions

1. can you declare a private
constructor
2. constructor calling hierarchy a>b>c
3.how will
singleton maintain sinlge instance when diff console apps
call
differently
4. when will u go for abstract class and interface
5. can you
do like this
interface a
{
}

class aCls :
a
{
}

class Me
{

a a1 = new aCls();
a1.
will this
produce all the methods or members of aCls?

6. what are the components of
a Factory class
7. exlpain chain of responsibility in detail
8. how will
you call a base class constructor from a derived class
9. how will you call a
method using reflection
10. what denotes () when you create an object
a a1
= new a();
11. is global.asax mandatory for a webapp
12. what is a
webpart
13. why are you creating a usercontrol for deploying in
sharepoint
14. have u used serialization
15. whats the diff bet binary and
xml serialization
16. if an object throws "cannot
be serialized error " what will you
do?


www.codecollege.NET

Photon Info Tech .NET and Sharepoint interview Questions

1. How will you decide which mode you should
go like Inproc, Stateserver , Sqlserver?
2. Have you configure SSO,
Sharedservices?
3. what are Webparts?
4. what is Infopath?
5. Explain
in details about BDC ?
6. have you used Sharepoint object model?

7. How will you deploy a sharepoint
webpart?




 


www.codecollege.NET

DELL .NET interview Questions

1. Garbage collectors in detail
2. Unique
identifiers
3. Delegates some practical example
4. In webfarms what
session management will u use
5. types of session management.
6.
indexes
7. how will u create a clustered index
8. what is a web.config
file
9. types of indexes
10. what is the lates version of asp.net
11.
what is the diff bet asp.net 2.0 and asp.net 3.0
12. what is the diff bet
.net2.0,3.0adn 3.5 and 3.7
13. how will u implement the following
abstract
class a{
get(){}
}
interface a{
get();
}
14. what is the diff
bet abstract class and interface
15. how will u manage sessions
16. what
are all the methods that get loaded in a page life cycle
17. where will you
be able to access the viewstate
18. if 2 applications(teams) are using the
same sessions variable , then how will u maintain the
consistency


www.codecollege.NET

What is the difference between ref & out parameters?


An argument passed to a ref parameter must first be initialized whereas argument passed to out parameter need not be initialized.


www.codecollege.NET

What is Active Directory? What is the namespace used to access the Microsoft Active Directories?


 Active Directory is simply defined as the meta data collection for users and objects and their configuration along with their management. Active Directory in Windows 2000 utilizes the Domain Naming Service (DNS) standard for naming objects.



Active Directory Service Interfaces (ADSI)
is a programmatic interface for Microsoft Windows Active Directory. It enables
your applications to interact with diverse directories on a network, using a
single interface. Visual Studio .NET and the .NET Framework make it easy to add ADSI functionality with the DirectoryEntry and DirectorySearcher components.





face=Arial>System.DirectoryServices
namespace is used to access MS Active Directory.


www.codecollege.NET

What are the different types of assemblies in .NET?


There are 3 types of assemblies in .net , they are

1. Private
2. Public or Shared
3. Satellite


www.codecollege.NET

Which namespace is the base class for all .net Class libraries?


System.object


www.codecollege.NET

What are Generics in .NET?


Generics allow you to define type-safe data structures, without committing to actual data types.


www.codecollege.NET

What does Ghosted and Unghosted mean in Sharepoint?


Ghosted:


Ghosted means that when SharePoint creates a new site it will reference the files in the related site definition upon site provisioning.


Unghosted:


Unghosted means that the site has been edited with an external editor, and therefore the customizations are instead stored in the database.



www.codecollege.NET

What is a SharePoint site definition?


A site definition is a group of files that reside on the Web server and that define a unique type of SharePoint site.


www.codecollege.NET

What is a content type?


A content type is a reusable collection of settings you want to apply to a certain category of content. Content types enable you to manage the metadata and behaviors of a document or item type in a centralized, reusable way.


www.codecollege.NET

From what base classes can a sharepoint webpart be created?


You can create a Webpart in sharepoint by inheriting from two base classes,
1. System.Web.UI.WebControls.WebParts
2. Microsoft.SharePoint.WebParts


www.codecollege.NET

Daily Tips- Tip #4 - How will you kill a user's session variable explicitly?

Wednesday, July 8, 2009


Session.Abandon()


www.codecollege.NET

What base class do all Web Forms inherit from?


System.web.UI.Page class.


www.codecollege.NET

Which Authentication methods are based on cookies?


1. Forms
2. Passport


www.codecollege.NET

Which Authentication method require Active Directory?

Digest.


www.codecollege.NET

What area the differences between Global.asax and Web.Config?

























Sno
global.asax
web.config
1 Class File Its an XML file
2 There can be only one for an application there can be many if under different sub-folders
3
Can have Application
and Session events

Can't
4
Need
to be recompiled when changes are made
No need to compile
when changes are made.


www.codecollege.NET

What are test cases you should go through in unit testing?


You need to check 3 test cases, which are the following,

1. Positive test cases (correct data, correct output)

2. Negative test cases (broken or missing data, proper handling)

3. Exception test cases (exceptions are thrown and caught properly)


www.codecollege.NET

What are the different Debugging tools which come with .NET ?


Two debugging tools come with .NET, they are :


1. CorDBG
– command-line debugger


2.  DbgCLR – graphic debugger.


www.codecollege.NET

What are the differences between const and readonly ?

























Sno
const
readonly
1 Can't be static. Can be instance level or static
2 evaluated at design time evaluated at run time
3
Initialized at declaration

Initialized at declaration and in constructor
4
must be of integral type or enumeration
In addition it can have complex types with new keyword and
enumerations are not allowed


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books