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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does // do?

A

Creates a single line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does /**/ do?

A

Creates a multi line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Camel Case?

A

Starts variable names with a lower case and capitalizes remaining important words (firstName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Pascal Case?

A

Capitalizes all words and is used for class names, namespaces, and methods (MyClassName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly