.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is cyclomatic complexity and why is it important?

Posted By :Shashi Ray     Posted Date :July 22, 2009    Points :10   Category :.NET Framework 
Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally measure the complexity of a program. It directly measures the number of linearly independent paths through a programs source code.
The concept, although not the method, is somewhat similar to that of general text complexity measured by the Flesch-Kincaid Readability Test.
Cyclomatic complexity is computed using a graph that describes the control flow of the program. The nodes of the graph correspond to the commands of a program. A directed edge connects two nodes, if the second command might be executed immediately after the first
command. By definition,
CC = E - N + P
where
CC = cyclomatic complexity
E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components

You can also find related Interview Question to What is cyclomatic complexity and why is it important?  below: 

what is cyclomatic complexity ?

  
Cyclomatic complexity of a piece of code is the number of different paths available in the execution of the program.

If there is no branching (if-else or switch statement) and looping (while, for & do-while loop), then the statements will execute linearly in the function. Hence cynclomatic complexity = 1;

A Branching breaks the linear flow of execution in two parts increasing the Cyclomatic complexity of the program. Same goes for the looping statements.

Hence the more level of indentation we have in our program the more will be the Cyclomatic complexity. (More...)

Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?

  
Properties are important because WebParts allow levels of personalization for each user. WebPart properties make it possible for a user to interact, adjust, and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire.
Each custom property that you have must have the appropriate get and set accessor methods.
(More...)

what is the important change in web.config when we can use Allow server Side Code in Pages?

  
For Allow server side scipt / Inline code in server pages, add this below tag In web.config.









(More...)

What are the Important points to remember on indexers

  
Indexers are always created with this keyword.

· Parameterized property are called indexer.

· Indexers are implemented through get and set accessors for the [ ] operator.

· ref and out parameter modifiers are not permitted in indexer.

· Indexer is an instance member so can't be static but property can be static.

· Indexers are used on group of elements.

· Indexer can be overloaded.
(More...)

Why are application pools important?

  
They provide a way for multiple sites to run on the same server but still have their own worker processes and identity. (More...)

Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?

  
Properties are important because WebParts allow levels of personalization for each user. WebPart properties make it possible for a user to interact, adjust, and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire.
Each custom property that you have must have the appropriate get and set accessor methods.
(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

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 Interview Question 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    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend