scripting from doc

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/72

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:57 AM on 6/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

73 Terms

1
New cards

Purpose of a variable: To store data that can be used and changed during program execution

2
New cards

How to save a value to a variable: Use an assignment statement, e.g., x = 5

3
New cards

Programming expression: A combination of variables, values, and operators that computes a value, e.g., a + b * 2.

4
New cards

Identifier: A name used to identify a variable, function, or other entity in code

5
New cards

Valid identifier: Must start with a letter or underscore, followed by letters, digits, or underscores; cannot be a reserved word.

6
New cards

Literal: A fixed value written directly in code, like 5, "hello", or 3.14

7
New cards

Operator: A symbol that performs an operation on one or more operands, e.g., +, -, *, /.

8
New cards

Precedence rules: Determine the order in which operations are performed; e.g., multiplication/division before addition/subtraction.

9
New cards

Integer vs. float: An Integer is a whole number; a float is a number with a decimal point.

10
New cards

Dividing two integers: Result is an integer in some languages (integer division), or a float in others (true division). Integer and float division yield a float

11
New cards

Dividing a nonzero float by zero: Results in infinity or an error, depending on the language.

12
New cards

Convert an item’s type: Use type conversion functions, e.g., int("5") or float(3)

13
New cards

Modulo operator: Returns the remainder after division, e.g., 7 % 3 is 1.

14
New cards

Variable vs. constant: A Variable can change value; a constant cannot.

15
New cards

How an array works: Stores multiple values in a single variable, accessed by index.

16
New cards

Index reference: Refers to the position of an item in an array, starting at 0 in most languages.

17
New cards

Purpose of data types: Define the kind of data (integer, float, string, etc.) and what operations can be performed.

18
New cards

Compiled vs. interpreted language: Compiled languages are translated to machine code before running; interpreted languages are run line-by-line by an interpreter.

19
New cards

Compiled languages: C, C++, Java (to bytecode), Go.

20
New cards

Interpreted languages: Python, JavaScript, Ruby.

21
New cards

Statically vs. dynamically typed: Statically typed languages require variable types at compile time; dynamically typed languages determine types at runtime.

22
New cards

Statically typed languages: C, Java.

23
New cards

Dynamically typed languages: Python, JavaScript.

24
New cards

Object-oriented vs. non-object-oriented: Object-oriented languages use objects and classes; non-object-oriented do not.

25
New cards

Object-oriented languages: Java, Python, C++.

26
New cards

Not object-oriented: C, older BASIC.

27
New cards

Markup vs. programming/scripting language: Markup languages (such as HTML) describe the structure and presentation; programming/scripting languages perform computations and implement logic.

28
New cards

Programming library: A collection of pre-written code for common tasks

29
New cards

Why use libraries: To save time and avoid rewriting code for common functions

30
New cards

Libraries compiled or precompiled: Can be either; some are compiled, some are precompiled, and some are interpreted

31
New cards

Uses Programming Elements (20%)Functions & Control Structures

32
New cards

Branch vs. loop: Branch (if/else) chooses between actions; loop repeats actions.

33
New cards

If-else branch: Executes one block if the condition is true, another if false.

34
New cards

Equality operator: Checks if two values are equal (==); works for most data types, but behavior may vary (e.g., floats).

35
New cards

Four relational operators:

36
New cards

Three logical operators: and, or, not.

37
New cards

Precedence rules: Logical NOT > AND > OR; arithmetic before comparison.

38
New cards

Infinite loop: Created when the loop condition never becomes false, e.g., while True:.

39
New cards

Sentinel value: A Special value that signals the end of input or a loop.

40
New cards

Three parts of a loop: Initialization, condition, and update.

41
New cards

While vs. do/while loop: While checks the condition before the loop; do/while checks after (runs at least once).

42
New cards

Control structure guaranteed to run once: Do/while loop.

43
New cards

Loop for unknown iterations: While loop.

44
New cards

Loop for known iterations: For loop.

45
New cards

Function: A named block of code that performs a task.

46
New cards

Why functions are useful: Organize code, avoid repetition, improve readability.

47
New cards

Function call: Executes the function.

48
New cards

Parameters and arguments: Parameters are variables in a function definition; arguments are values passed in.

49
New cards

Define but don’t call the function: Code is not executed.

50
New cards

Return statement: Sends a value back from a function.

51
New cards

Explains Logic and Outcome of Algorithms (40%)Software Design, Algorithms, UML

52
New cards

Binary search: Efficiently finds an item in a sorted list by repeatedly dividing the search interval in half.

53
New cards

Linear search: Checks each item in a list sequentially until the item is found or the end of the list is reached.

54
New cards

SDLC: Software Development Life Cycle; a process for developing software.

55
New cards

Four phases of SDLC: Analysis, Design, Implementation, Testing.

56
New cards

Activities in each phase:

57
New cards

Analysis: Gather requirements.

58
New cards

Design: Plan solution, create diagrams.

59
New cards

Implementation: Write code.

60
New cards

Testing: Verify and validate the solution.

61
New cards

Phase for writing code: Implementation.

62
New cards

Waterfall vs. Agile: Waterfall is sequential, while Agile is iterative and flexible.

63
New cards

UML: Universal Modeling Language, a standard way to visualize system design.

64
New cards

Structural UML diagrams: Class, object, component, deployment diagrams.

65
New cards

Behavioral UML diagrams: Use case, sequence, activity, state diagrams.

66
New cards

Activity diagrams: Show workflows of stepwise activities.

67
New cards

UML diagrams in analysis: Use case, activity.

68
New cards

UML diagrams in design: Class, sequence.

69
New cards

UML diagrams in implementation: Component, deployment.

70
New cards

UML diagrams in testing: Activity, sequence.

71
New cards

Use case diagram: Shows the system’s functional requirements and interactions.

72
New cards

Class diagram: Shows classes, attributes, methods, and relationships.

73
New cards

Sequence diagram: Shows object interactions in time sequence.