Keywords Flashcards

1
Q

Keywords

A

Set of 84 words reserved for c++

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

C++ language

A

Keywords, special identifiers and set of operators

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

Rules for naming identifiers

A
  • can’t be keyword
  • can be composed by letters, numbers and _
  • can’t contain symbols and whitespace
  • must start with letter or _, not numbers
  • case sensitive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Naming variables

A

Should begin with lowercase, and if it’s one word, whole should be lowercase

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

Naming functions

A

Should begin with lowercase, if it has multiple words shold be separated by underscore, or the first letters of the second word should be capitilized

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

Naming with underscores

A

Should be avoided, reserved for os library

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

Identifiers

A

Should make it clear what the value they hold means

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

Use comments

A

To clarify when variable holds lots of values

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