final part 1 Flashcards

(16 cards)

1
Q

is a popular programming language
developed by Guido van Rossum released in 1991

A

python

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

who is the developer of python

A

Guido van Rossum

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

what the use of python

A

used for:
* Web development (server-side),
* Software development,
* Mathematics, and
* System scripting

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

s a name used to identify a variable,
function, class, module or other object. An identifier starts
with a letter A to Z or a to z or an underscore (_) followed
by zero or more letters, underscores and digits (0 to 9

A

pythpn identifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • Python does not allow punctuation characters such as
A

@, $, and % within identifiers

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

Python Class names start with an

A

an uppercase letter

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

All
other identifiers start with a

A

lowercase letter.

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

Starting an identifier with a single leading underscor

A

indicates that the identifier is private identifier

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

Starting an identifier with two leading underscores

A

indicates a strongly private identifier.

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

If the identifier also ends with two trailing underscores

A

he identifier is a language-defined special name

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

A variable can have a short name

A

(like x and y) or a more
descriptive name (age, carname, total_volume)

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

A variable name must start with a

A

letter or the underscore
character

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

A variable name cannot start with a

A

number

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

A variable name can only contain alpha-numeric
characters and underscores

A

(A-z, 0-9, and _ )

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

Variable names are case-sensitive

A

(age, Age and AGE
are three different variables)

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

A variable name cannot be any of the Python keywords