PROG LANG MIDTERM

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Lexical Analysis

Reading the source code character from left to right & organizing them into tokens also known as regular expressions.

2
New cards

Lexical Analyzer

collects characters into logical groupings.

3
New cards

Tokens

Words or symbols in a sentence, which can include keywords, variables, and numbers.

4
New cards

Lexemes

A sequence of characters matched by a pattern to form a token.

5
New cards

Syntax Analysis/Parsing

The process of analyzing a string of symbols according to the rules of formal grammar.

6
New cards

Camel Case

A naming convention where all words of a multiple-word name except the first are capitalized (example: myFirstCode).

7
New cards

Snake Case

A naming convention where words are written in lowercase and separated by underscores (example: monthlysalarypay).

8
New cards

Pascal Case

A naming convention where each word starts with a capital letter (example: PythonClass).

9
New cards

Function Naming Convention

Use lowercase words and separate them by underscores, known as snake case. (function, pyt_function)

10
New cards

Variable Naming Convention

Use lowercase single letters, words, or words separated by underscores for readability. (z, var, pyt_variable)

11
New cards

Class Naming Convention

Start each word with a capital letter without separating words with underscores, known as Pascal case. (Model, PythonClass)

12
New cards

Method Naming Convention

Use lowercase words separated by underscores, known as snake case. (class_method, method)

13
New cards

Constant Naming Convention

Use uppercase single letters, words, or words separated by underscores. (CONSTANT, PYTH_CONSTANT, PYTHON_LONG_CONSTANT)

14
New cards

Module Naming Convention

Use a short, lowercase word or words separated by underscores to improve readability.(module.py, python_module. py)

15
New cards

Package Naming Convention

Use a short, lowercase word or words. Do not separate words with underscores. (package, pythonpackage)

16
New cards

Binding

An association between an attribute and an entity, occurring when a value is assigned to a variable.

17
New cards

Binding Time

The time at which a binding takes place.

18
New cards

Type Bindings

Variables must be bound to a data type before being referenced in a program.

19
New cards

Explicit Declaration

A statement that lists variable names and specifies their particular type.

20
New cards

Implicit Declaration

Associating variables with types through default conventions rather than explicit statements.

21
New cards

Dynamic Type Binding

Occurs when the variable type is not specified by a declaration statement.

22
New cards

Scope

The range of statements wherein a variable is visible.

23
New cards

Global Scope

Variables declared in the global scope are accessible from anywhere in the program.

24
New cards

Local Scope

Variables declared inside a function or block are local and can only be accessed within that function.

25
New cards

Enclosing Scope

The scope of a function that encloses another function.

26
New cards

Built-in Scope

Contains all the functions and variables that are built into Python.