Untitled Deck Flashcards

(85 cards)

1
Q

What is a Field in programming?

A

A variable that is associated with an object or class.

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

Define Inheritance in Object-Oriented Programming (OOP).

A

The mechanism where one class (child/subclass) derives attributes and behaviors from another (parent/superclass).

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

What are Instances?

A

Concrete occurrences of an object created from a class.

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

What are Methods?

A

Functions defined within a class that describe the behaviors of an object.

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

Define Objects in programming.

A

Instantiations of a class that bundle data (fields) and behaviors (methods).

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

What is a Record?

A

A data structure that groups related fields under one unit.

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

What is an Argument?

A

Actual value passed into a function/method when called.

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

What are Parameters?

A

Variables defined in a function/method declaration to accept arguments.

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

What is a Parameter List?

A

The list of parameters a method/function expects.

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

Define Parameter Value.

A

The actual data assigned to a parameter during execution.

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

What is Parameter Reference?

A

When a parameter points to the memory address of a variable instead of copying its value.

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

What does First Come First Served (FCFS) scheduling entail?

A

Requests handled in arrival order.

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

Describe the SCAN (Elevator Algorithm).

A

Head moves back and forth across the disk, servicing requests in order.

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

What is C-SCAN?

A

Head moves in one direction servicing requests, then jumps back to the start.

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

What is the LOOK scheduling algorithm?

A

Like SCAN, but only goes as far as the final request before reversing direction.

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

Define Declarative Paradigm.

A

Focus on what to solve, not how (e.g., SQL, Prolog).

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

What is Procedural Programming?

A

Step-by-step instructions; sequence, selection, iteration (e.g., C, Pascal).

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

What characterizes Object-Oriented Programming (OOP)?

A

Organizes code into classes and objects with inheritance and polymorphism (e.g., Java, Python, C++).

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

Define Logic Programming.

A

Uses facts and rules to derive conclusions (e.g., Prolog).

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

What is Functional Programming?

A

Emphasizes pure functions, immutability, recursion (e.g., Haskell, Lisp).

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

Describe Event-Driven Programming.

A

Execution flow determined by events like clicks or signals (e.g., JavaScript GUIs).

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

What is a Single Partition in memory allocation?

A

Entire memory allocated to one process.

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

Define Fixed Partition.

A

Memory divided into equal-sized partitions. Best for predictable workloads.

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

What is Dynamic Partition?

A

Memory divided as needed; can suffer from fragmentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does Multiple Partition entail?
Combines strategies, multiple jobs can run simultaneously.
26
Define Page Table.
Maps virtual addresses to physical memory.
27
What is a Page Register?
Holds the base address of a page table.
28
What is a Base Register?
Holds the starting address of a process in memory.
29
What does the Limit Register do?
Defines the size of a process’s memory allocation.
30
What is a Translation Lookaside Buffer (TLB)?
Cache for page table entries to speed up translation.
31
Define Address Binding.
Process of mapping logical addresses to physical memory.
32
What is the New state in a process life cycle?
Process created.
33
What does the Ready state signify?
Waiting to be assigned to CPU.
34
Define the Running state.
Currently executing.
35
What does the Waiting state indicate?
Waiting for I/O or event.
36
What does the Terminated state mean?
Finished execution.
37
What is a For Loop?
Count-controlled loop.
38
Define Count Controlled Loop.
Loops based on a counter.
39
What is a While Loop?
Repeats while condition is true.
40
What is a Do-While Loop?
Executes at least once before checking condition.
41
What does an If-Else statement do?
Selection statement for decision-making.
42
What is a Select/Case structure?
Multi-branch decision structure.
43
Describe Bubble Sort.
Repeatedly swaps adjacent elements until sorted.
44
What is Selection Sort?
Finds smallest element and places it in order.
45
Define Insertion Sort.
Builds sorted array by inserting elements in order.
46
What is Merge Sort?
Divide-and-conquer sorting algorithm.
47
Describe Quick Sort.
Divide-and-conquer using pivot partitioning.
48
What is Radix Sort?
Non-comparison sort based on digit positions.
49
Define Binary Search.
Repeatedly divides sorted array in half.
50
What is Linear Search?
Checks each element sequentially.
51
What is the Association of Computing Machinery (ACM)?
Professional society with code of ethics.
52
What does IEEE stand for?
Technical organization with code of ethics, standards.
53
What do Codes of Ethics emphasize?
Honesty, privacy, professionalism, and responsibility.
54
What is the Software Development Life Cycle (SDLC)?
Phases: planning, analysis, design, implementation, testing, maintenance.
55
What is the Computer Problem-Solving Process?
Define → Analyze → Design → Implement → Test.
56
Define Pseudocode.
Informal way to describe algorithms in structured English.
57
What are Flowcharts?
Graphical representation of algorithm flow.
58
What does an Absolute Path represent?
Full path from root directory.
59
Define Relative Path.
Path relative to current directory.
60
What is the role of Directories?
Organizational structure for files.
61
What is a LAN?
Local Area Network (small, local).
62
Define WAN.
Wide Area Network (large scale).
63
What is a MAN?
Metropolitan Area Network (citywide).
64
What is a Star topology?
All nodes connect to central hub.
65
Describe Bus topology.
All nodes share a single communication line.
66
What is a Mesh topology?
Every node connects to every other.
67
Define Ring topology.
Nodes connected in a circle.
68
What characterizes Tree topology?
Hierarchical structure.
69
What is CPU Scheduling?
Determines order of process execution.
70
Define Turnaround Time.
Time from submission to completion of process.
71
What is Process Management?
OS management of running processes.
72
What is Context Switching?
Saving/restoring CPU state when switching processes.
73
Define Multiprogramming.
Running multiple processes simultaneously.
74
What is Batch Processing?
Execution of jobs without manual intervention.
75
What is Integer Division?
Division with truncation of remainder.
76
What does Round Robin scheduling entail?
Each process given equal time slices.
77
True or False: Preemptive Scheduling allows the OS to interrupt a process.
True
78
True or False: Non-Preemptive Scheduling allows a process to run until finished or blocked.
True
79
What does IoT stand for?
Internet of Things.
80
Define Abstract Data Type (ADT).
Model for data (stack, queue).
81
What is a Multi-Core Processor?
CPU with multiple processing units.
82
Describe Von Neumann Architecture.
Control Unit, Memory, ALU, I/O system.
83
What is an Instruction Register?
Holds current instruction.
84
What does the Program Counter hold?
Holds address of next instruction.
85
Define PCB (Process Control Block).
Stores process info (state, registers, program counter).