COMPX101 Written Test 1 Flashcards

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

1/86

flashcard set

Earn XP

Description and Tags

23rd of April test

Last updated 11:14 PM on 4/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

87 Terms

1
New cards

๐Ÿ’ป COMPUTER BASICS

2
New cards

Motherboard

Houses key components (CPU, RAM, storage) and provides input/output ports and power connections.

3
New cards

Input Devices

Devices used to enter data (keyboard, mouse, scanner, microphone, camera).

4
New cards

Output Devices

Devices that display or output results (monitor, printer, speaker, projector, headphones).

5
New cards

๐Ÿง  MEMORY & STORAGE

6
New cards

Computer Memory

Physical devices that store data, instructions, and results (temporary or permanent).

7
New cards

Main Memory

Memory where programs and data are loaded before being processed by the CPU.

8
New cards

RAM (Random Access Memory)

Volatile memory; temporary storage that loses data when power is off.

9
New cards

ROM (Read Only Memory)

Non-volatile memory; permanent storage that cannot be modified easily.

10
New cards

Serial Access

Data cannot be accessed directly; must go through sequence.

11
New cards

Memory Cell

Stores a single bit (0 or 1).

12
New cards

Memory Address

Unique binary identifier for each memory location.

13
New cards

Byte Addressable Memory

Each byte has its own unique address.

14
New cards

Bus

System that transfers data between computer components.

15
New cards

โš™๏ธ CPU (CENTRAL PROCESSING UNIT)

16
New cards

CPU

Component of a computer that executes instructions and processes data.

17
New cards

Control Unit (CU)

Controls and coordinates CPU operations.

18
New cards

Arithmetic Logic Unit (ALU)

Performs calculations and logical operations.

19
New cards

Registers

Small, fast storage inside CPU for temporary data.

20
New cards

Word Size

Amount of data CPU can process at once (e.g., 32-bit, 64-bit).

21
New cards

๐Ÿงพ REGISTERS

22
New cards

Memory Address Register (MAR)

Stores address of memory location to access.

23
New cards

Memory Data Register (MDR)

Stores data being read/written.

24
New cards

Program Counter (PC)

Stores address of next instruction.

25
New cards

Instruction Register (IR)

Holds current instruction being executed.

26
New cards

General Purpose Registers

Temporary storage for calculations.

27
New cards

๐Ÿ” INSTRUCTION CYCLE

28
New cards

Instruction Cycle

Fetch โ†’ Decode โ†’ Execute process.

29
New cards

Fetch

Get instruction from memory.

30
New cards

Decode

Interpret instruction.

31
New cards

Execute

Perform the instruction.

32
New cards

๐Ÿงฎ VARIABLES & DATA TYPES (C#)

33
New cards

Variable

Storage location for data.

34
New cards

Declaration

Type Name = Value;

35
New cards

int

Whole numbers.

36
New cards

double

Decimal numbers with high precision.

37
New cards

char

Single character.

38
New cards

bool

True or false.

39
New cards

string

Sequence of characters (text).

40
New cards

๐Ÿ”„ TYPE CONVERSION

41
New cards

Conversion

Changing data from one type to another using Convert class.

42
New cards

Parse

Converts string โ†’ numeric types (int, double).

43
New cards

Concatenation

Combining values using โ€œ+โ€.

44
New cards

๐ŸŽฏ CASTING

45
New cards

Implicit Casting

Automatic, no data loss (int โ†’ double).

46
New cards

Explicit Casting

Manual, possible data loss (double โ†’ int).

47
New cards

โš ๏ธ EXCEPTIONS

48
New cards

Exception

Error during program execution.

49
New cards

Try-Catch

Method in programming that handles errors safely (try = test, catch = handle error).

50
New cards

๐Ÿ”€ CONTROL STRUCTURES

51
New cards

Sequence

Statements executed in order.

52
New cards

Selection

Decision-making (if/else).

53
New cards

Iteration

Repeating code (loops).

54
New cards

๐Ÿ” LOOPS

55
New cards

For Loop

Runs fixed number of times.

56
New cards

While Loop

Runs while condition is true.

57
New cards

Do-While Loop

Runs at least once before checking condition. Executes the code in it before it checks the condition.

58
New cards

Counter-Controlled Loop

Runs specific number of times (while loop with a counter or the for loop).

59
New cards

Sentinel-Controlled Loop

Runs until condition is met (while loop that runs while it is true)

60
New cards

Increment (i++)

Increases loop variable.

61
New cards

๐ŸŽฒ RANDOM NUMBERS

62
New cards

Random Numbers

Numbers with no predictable pattern.

63
New cards

True Random Numbers

Generated from physical processes (slow, unpredictable).

64
New cards

Pseudo-Random Numbers

Generated using algorithms, mostly using the time (fast, predictable with seed).

65
New cards

Seed

Starting value for pseudo-random generation.

66
New cards

๐Ÿž DEBUGGING

67
New cards

Debugging

Finding and fixing errors in code.

68
New cards

Breakpoint

Pauses execution at a line.

69
New cards

Step Into

Goes inside methods.

70
New cards

Step Over

Skips method details.

71
New cards

Step Out

Exits current method.

72
New cards

๐Ÿ› ๏ธ COMPILERS & CODE

73
New cards

Compiler

Converts high-level code to machine code.

74
New cards

Machine Code

Binary instructions executed by CPU.

75
New cards

Assembler

Converts assembly language to machine code.

76
New cards

Source Code

Human-readable program code.

77
New cards

๐Ÿ–ฅ๏ธ OPERATING SYSTEM

78
New cards

Operating System (OS)

Software that manages hardware and software resources.

79
New cards

OS Functions

Controls programs, manages memory, provides user interface.

80
New cards

Examples

Windows, Linux, macOS, Android, iOS.

81
New cards

๐Ÿ”„ PROGRAM EXECUTION FLOW

82
New cards

Program Execution

OS loads program โ†’ program runs โ†’ control returns to OS.

83
New cards

๐Ÿงช WRAMP INSTRUCTION CYCLE

84
New cards

WRAMP Cycle

  1. Fetch instruction

  2. Decode instruction

  3. Increment Program Counter (PC)

  4. Execute instruction

85
New cards

zap emoji EXTRA CODING CONCEPTS

86
New cards

Modulus (%)

Finds remainder (used for even/odd checks).

87
New cards

"\n"

New line in output.