Programming Standards Flashcards
(5 cards)
1
Q
What is scope?
A
The part of the program that has access to the variable. If a variable is declared within a block of code (like Main()), it’s only visible within that method. The variable comes into existence when it’s declared, and “dies” at the end of the method/structure. These variables are known as local objects.
2
Q
What does // do?
A
Creates a single line comment
3
Q
what does /**/ do?
A
Creates a multi line comment
4
Q
What is Camel Case?
A
Starts variable names with a lower case and capitalizes remaining important words (firstName)
5
Q
What is Pascal Case?
A
Capitalizes all words and is used for class names, namespaces, and methods (MyClassName)