What is a Field in programming?
A variable that is associated with an object or class.
Define Inheritance in Object-Oriented Programming (OOP).
The mechanism where one class (child/subclass) derives attributes and behaviors from another (parent/superclass).
What are Instances?
Concrete occurrences of an object created from a class.
What are Methods?
Functions defined within a class that describe the behaviors of an object.
Define Objects in programming.
Instantiations of a class that bundle data (fields) and behaviors (methods).
What is a Record?
A data structure that groups related fields under one unit.
What is an Argument?
Actual value passed into a function/method when called.
What are Parameters?
Variables defined in a function/method declaration to accept arguments.
What is a Parameter List?
The list of parameters a method/function expects.
Define Parameter Value.
The actual data assigned to a parameter during execution.
What is Parameter Reference?
When a parameter points to the memory address of a variable instead of copying its value.
What does First Come First Served (FCFS) scheduling entail?
Requests handled in arrival order.
Describe the SCAN (Elevator Algorithm).
Head moves back and forth across the disk, servicing requests in order.
What is C-SCAN?
Head moves in one direction servicing requests, then jumps back to the start.
What is the LOOK scheduling algorithm?
Like SCAN, but only goes as far as the final request before reversing direction.
Define Declarative Paradigm.
Focus on what to solve, not how (e.g., SQL, Prolog).
What is Procedural Programming?
Step-by-step instructions; sequence, selection, iteration (e.g., C, Pascal).
What characterizes Object-Oriented Programming (OOP)?
Organizes code into classes and objects with inheritance and polymorphism (e.g., Java, Python, C++).
Define Logic Programming.
Uses facts and rules to derive conclusions (e.g., Prolog).
What is Functional Programming?
Emphasizes pure functions, immutability, recursion (e.g., Haskell, Lisp).
Describe Event-Driven Programming.
Execution flow determined by events like clicks or signals (e.g., JavaScript GUIs).
What is a Single Partition in memory allocation?
Entire memory allocated to one process.
Define Fixed Partition.
Memory divided into equal-sized partitions. Best for predictable workloads.
What is Dynamic Partition?
Memory divided as needed; can suffer from fragmentation.