Lecture 4 Flashcards

1
Q

?

is exactly mnemonic character string used to represent something else.

A

name

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

name = ?

Names

A

identifier

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

? vary by different languages: foo, foo_bar, foo-name, fooBar, etc

Names

A

Valid names

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

?

is a word that is special only in certain contexts.

Names

A

keyword

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

?

is a name with fixed purpose

Names

A

Reserved words

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

Most newer languages prefer ?.

Names

A

reserved words

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

? limitations are different for different languages

Names

A

Length

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

?

: maximum of 31 characters

Names - Language examples

A

FORTRAN 95

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

?

: no limit but only the first 63 are significant; also, external names are limited to a maximum of 31 characters: maximum of 31 characters

Names - Language examples

A

C99

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

?

: no limit and all are significant.

Names - Language examples

A

C#, Ada, and Java

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

?

: no limit, but implementers often impose one.

Names - Language examples

A

C++

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

?

usually are non-alphanumeric characters

Names

A

Special Characters

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

?

all variable names must begin with dollar sign.

Names - Special Characters

A

PHP

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

?

all variable names begin with special characters, which specify the variable’s
type

Names - Special Characters

A

Perl

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

?

all variable names begin with special characters, which specify the variable’s
type

Names - Special Characters

A

Perl

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