We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,078 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

I was asked in a .NET interview What is the difference between Pascal,Camel and hunga

I am not sure why such question was asked to me and is it anywhere related to .NEt also.

2
Contributors
2
Replies
4 Minutes
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
jigneshdesai
Newbie Poster
7 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This .NET interview question is mainly asked to test if you have used coding standards in your project. All the above three are naming conventions which are followed in programming languages to ensure a proper and neat code. Below is the explanation of each naming convention.

Pascal Notation- In this naming convention all starting letter of the words are in Upper Case and other characters are lower case.

Example:

CustomerCode

Camel Notation- In this naming convention first character of all words, except the first word are Upper Case and other characters are lower case.

Example:

customerCode

Hungarian notation - In this naming convention the variable name starts with group of small letter which indicate data type.

Example:

bCheck

( b indicates its a boolean type),

iCount

( i indicated its a integer data type)

khadakbist
Light Poster
30 posts since Feb 2011
Reputation Points: 7
Solved Threads: 10
Skill Endorsements: 0
Question Answered as of 2 Years Ago by khadakbist

I knew the answer it was just the vocabulary which i was not aware of. Thanks Khadak.

jigneshdesai
Newbie Poster
7 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0891 seconds using 2.66MB