A Level Computer Science Review Flashcards

5.0(1)
studied byStudied by 3 people
5.0(1)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/339

flashcard set

Earn XP

Description and Tags

Flashcards about Operating Systems, Memory Management, Interrupts, Scheduling, Software Development Models, Programming Paradigms, Assembly Language, and Object-Oriented Programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

340 Terms

1
New cards

What are the main functions of an operating system?

Managing hardware and software resources, providing a user interface, file management, interrupt handling, security, providing a platform for software to run, and providing utilities.

2
New cards

What resources does the operating system manage?

CPU, memory, disk drives, and printers.

3
New cards

What does the GUI of the file system allows the user to decide?

GUI allows the user to decide which directory a file should be saved in and what the file name will be.

4
New cards

What security features do operating systems provide?

Password-protected system accounts, a firewall, virus scanning and file encryption.

5
New cards

In what two ways operating systems provide user interaction?

Visually through a graphical user interface (GUI) or text-based through a command-line interface (CLI).

6
New cards

What functionality provide Utility programs?

File encryption, file compression, disk defragmentation, system backup, disk cleanup.

7
New cards

What are the benefits of memory management?

Efficient allocation of memory enables multitasking, maintains security, and improved efficiency using Paging, Segmentation and Virtual Memory.

8
New cards

What is paging?

Chunking the primary memory into equal-sized blocks.

9
New cards

What is internal fragmentation?

Unused space within a page.

10
New cards

Why is segmentation space-efficient?

Only allocating space depending on the amount an application needs

11
New cards

What causes external fragmentation?

Physical gaps reduce the maximum size of new Segments that can be allocated

12
New cards

What is virtual memory?

Using secondary storage as an extension of main memory.

13
New cards

What are the types of interrupts?

Hardware, software, and trap interrupts.

14
New cards

What is the purpose of interrupts?

Real-time event handling, device communication, and multitasking.

15
New cards

What is the interrupt process?

Interrupt Request (IRQ), Interrupt Acknowledge, Interrupt Service Routine (ISR) Lookup, ISR Execution, and Interrupt Exit.

16
New cards

What is scheduling?

Deciding which tasks to process, for how long, and in what order.

17
New cards

What are the scheduling categories?

Pre-emptive and non-pre-emptive.

18
New cards

What are pre-emptive Scheduling algorithms examples?

Round robin (RR) and Shortest Remaining Time First.

19
New cards

What are non-pre-emptive scheduling algorithms examples?

First Come First Serve and Shortest Job First.

20
New cards

What are the benefits of the Round Robin algorithm?

All processes get a fair share of the CPU; it is good for time-sharing systems, and predictable, as every process gets equal time.

21
New cards

What are the benefits of the Multi-Level Feedback Queues algorithm?

Smaller tasks are prioritised and creates a prioritisation system where similar-sized tasks are queued together

22
New cards

What are the benefits of the Shortest Job First algorithm?

It minimises waiting time and is efficient and fast for short processes.

23
New cards

What are the different types of operating systems?

Distributed, Embedded, Multi-tasking, Multi-user, Real-Time.

24
New cards

Example of Distributed Operating Systems

Hadoop.

25
New cards

Example of Embedded Operating Systems

IoT devices and household devices.

26
New cards

Example of Multi-Tasking Operating Systems

Windows, MacOS, and Linux.

27
New cards

Example of Multi-User Operating Systems

Windows, MacOS, and Linux.

28
New cards

Where are Real-Time Operating Systems used?

In industries like aerospace and automotive where low latency is critical to safety

29
New cards

What does BIOS mean?

Basic Input/Output System.

30
New cards

What does POST mean?

Power-On Self-Test

31
New cards

What is the purpose of a device driver?

To enable communication between an operating system and specific hardware devices.

32
New cards

What is a virtual machine (VM)?

It mimics a complete computer system within a physical machine

33
New cards

What are the uses of virtual machines?

Cross-platform compatibility, software testing, and legacy support.

34
New cards

Example of Cross-platform compatibility

Run MacOS apps on Windows or vice versa.

35
New cards

Example of Software testing

Safe, isolated environments for testing across multiple OS versions.

36
New cards

What is application software?

Software designed to perform a specific task or tasks for a user.

37
New cards

What is the purpose of Disk Defragmentation?

To rearrange the files on a hard drive to increase efficiency by putting files into contiguous blocks and minimizing empty spaces

38
New cards

What is the purpose of File Management?

To organize, search, rename, and relocate files stored on the system.

39
New cards

What is the purpose of System Cleanup?

To free up space on the system by removing unnecessary files and data.

40
New cards

What is the purpose of Security utilities?

To protect the computer system from various threats like viruses, malware, and spyware

41
New cards

What are the characteristics of Open Source Software (OSS)?

Users can view, modify, and distribute the source code.

42
New cards

What are the characteristics of Closed Source Software (CSS)?

The source code is hidden and proprietary.

43
New cards

What do translators do?

Convert source code from a high-level language to a low-level language.

44
New cards

What are the three main types of translators?

Interpreters, Compilers, Assemblers.

45
New cards

What do Interpreters do?

Interpret source code line-by-line and executes it on the fly

46
New cards

What do Compilers do?

Translates the entire source code into machine code at once and then executes it.

47
New cards

What do Assemblers do?

Assemblers translate assembly language into machine code.

48
New cards

What are the four stages of compilation?

Lexical Analysis, Syntax Analysis, Code Generation, and Optimisation.

49
New cards

What is Lexical analysis?

Studying the words or vocabulary of a language.

50
New cards

What is Syntax analysis?

Makes sure tokens adhere to the syntax rules of the programming language

51
New cards

What is Code generation?

This step takes the AST and traverses it to generate object code that can be executed by the computer

52
New cards

What is Optimisation?

Modifies the code to make it more efficient without changing its functionality

53
New cards

What is a code library?

A collection of pre-written code, classes, procedures, scripts, configurations, and more.

54
New cards

What is the use of Linkers?

These combine different code files and libraries into a single executable. They resolve references between files, ensuring everything points where it should

55
New cards

What is the use of Loaders?

These are system tools that load executable files into memory so they can be run by the operating system

56
New cards

What are the steps in the Waterfall Lifecycle Model?

Requirement Gathering and Analysis, System Design, Implementation, Integration and Testing, Deployment, and Maintenance.

57
New cards

What are the steps in the Agile (extreme programming) Model?

Identify user stories and requirements, Plan the sprint (Sprint Planning), Design the solution, Develop the features, Test continuously, Review progress (Sprint Review), Reflect on process (Sprint Retrospective), Release and Repeat

58
New cards

What are the steps in the Spiral Model?

Planning, Risk analysis, Engineering, Evaluation and feedback

59
New cards

What are the steps in the Rapid Application Development (RAD) Model?

Requirement planning, User design and prototyping, Construction or iterative development, Cutover or deployment, Maintenance and updates

60
New cards

What is Procedural Paradigm?

Structured around procedure calls.

61
New cards

What is Object-Oriented Paradigm?

Organises code around objects (which combine data and functionality) rather than functions

62
New cards

What is Assembly Paradigm?

Low-level mnemonic representation of machine code for a specific computer architecture.

63
New cards

What is Assembly Paradigm Strengths?

Direct control over hardware

64
New cards

What is Assembly Paradigm Weaknesses?

Extremely steep learning curve

65
New cards

What is Procedural Paradigm Strengths?

Efficient execution of straightforward tasks A clear flow of control (top to bottom)

66
New cards

What is Procedural Paradigm Weaknesses?

Can become unwieldy for large programs

67
New cards

What is Object-Oriented Paradigm Strengths?

Enhances modularity with encapsulation Enables real-world modelling using objects

68
New cards

What is Object-Oriented Paradigm Weaknesses?

Can lead to unnecessary complexity

69
New cards

Where does assembly language sit?

Between high-level languages and machine code.

70
New cards

What is the Little Man Computer (LMC)?

Hypothetical computer model used for understanding the fundamental operations and mechanics of a computer

71
New cards

What are addressing modes?

Ways in which an instruction in assembly language or machine code can access data stored in memory.

72
New cards

What are the main types of addressing modes?

Immediate, Direct, Indirect, and Indexed

73
New cards

What are classes?

Used as blueprints or templates that can be used to create objects within Object Oriented Programming or OOP

74
New cards

What is the result of Instantiation?

Creates an object from a specific instance of a class and has its own state and behaviours

75
New cards

What is an Object?

A representation of a real-world entity

76
New cards

What is the Constructor?

Special method within a class that is automatically called when an object of that class is created (instantiated)

77
New cards

What are Methods?

Functions associated with objects or classes that define the behaviour and actions that objects can perform

78
New cards

What are Public Methods?

Accessible and can be invoked by any code within the same class or from any external classes

79
New cards

What are Private Methods?

Only accessible within the same class and cannot be invoked by external code or other classes

80
New cards

What is an Attribute?

Refers to a data member or a property associated with an object or a class

81
New cards

What is Inheritance?

Allows a class to inherit the properties and behaviours (methods and attributes) of another class

82
New cards

What is Encapsulation?

The practice of grouping data (attributes) and methods (functions) within a class

83
New cards

What is Polymorphism?

A concept in programming that allows objects to take on different forms or behaviours

84
New cards
What is a data type in programming?
A classification of data into groups according to the kind of data they represent.
85
New cards
What are the basic data types?
Integer, Real, Char, String, Boolean.
86
New cards
What does the Integer data type represent?
Whole numbers, either positive or negative.
87
New cards
What does the Real data type represent?
Numbers with a fractional part, either positive or negative.
88
New cards
What does the Char data type represent?
A single character such as a letter, digit or symbol.
89
New cards
What does the String data type represent?
A sequence of characters.
90
New cards
What does the Boolean data type represent?
True or false values.
91
New cards
What is casting in programming?
The process of converting one data type to another.
92
New cards
Why is casting important?
To ensure correct data types for operations, like performing calculations.
93
New cards
What is binary?
A system of representing information using only two digits: 0 and 1.
94
New cards
What is a bit?
The smallest unit of digital information, representing an 'off' (0) or an 'on' (1) state.
95
New cards
What is a byte?
A grouping of 8 bits that can represent more complex information.
96
New cards
What is the purpose of the Most Significant Bit (MSB) in signed binary numbers?
To indicate whether the number is positive (0) or negative (1).
97
New cards
What is the difference between signed and unsigned binary numbers?
Unsigned represents only positive numbers
98
New cards
signed can represent both positive and negative.
99
New cards
What is two's complement?
A method for representing negative binary numbers.
100
New cards
What is binary addition?
The process of summing numbers in base-2, using only 0 and 1.