9618 Computer Science
AS Content
Chpater 1 Information representation
1.1 Data representation
1.2 Multimedia
1.3 Compression
Chapter 2 Communication
2.1 Networking
2.2 The internet
Chpater 3 Hardware
3.1 Computers and their components
3.2 Logic Gates and Logic Circuits
Chapter 4 Processor Fundamentals
4.1 Central Processing Unit (CPU) Architecture
4.2 Assembly Language
4.3 Bit manipulation
Chapter 5 System Software
5.1 Operating Systems
5.2 Language Translators
Chapter 6 Security, privacy and data integrity
6.1 Data Security
6.2 Data Integrity
Chpater 7 Ethics and Ownership
7.1 Ethics and Ownership
Chapter 8 Databases
8.1 Database Concepts
8.2 Database Management Systems (DBMS)
8.3 Data Definition Language (DDL) and Data Manipulation Language (DML)
Chapter 9 Algorithm Design and Problem-solving
9.1 Computational Thinking Skills
9.2 Algorithms
Chapter 10 Data Types and Records
10.1 Data Types and Records
10.2 Arrays
10.3 Files
10.4 Introduction to Abstract Data Types (ADT)
Chapter 11 Programming
11.1 Programming Basics
11.2 Constructs
11.3 Structured Programming
Chapter 12 Software Development
12.1 Program Development Life cycle
12.2 Program Design
12.3 Program Testing and Maintenance
A2 Content
Chapter 13 Data Representation
13.1 User-defined data types
13.2 File organisation and access
13.3 Floating-point numbers, representation and manipulation
Chpater 14 Communication and internet technologies
14.1 Protocols
14.2 Circuit switching, packet switching
Chpater 15 Hardware
15.1 Processors, Parallel Processing and Virtual Machines
15.2 Boolean Algebra and Logic Circuits
Chapter 16 Operating System
16.1 Purposes of an Operating System (OS)
16.2 Translation Software
Chpater 17 Security
17.1 Encryption, Encryption Protocols and Digital certificates
Chpater 18 Artificial intelligence (AI)
18.1 Artificial Intelligence (AI)
Chapter 19 Computational thinking and problem solving
19.1 Algorithms
19.2 Recursion
Chapter 20 Further programming
20.1 Programming Paradigms
20.2 File Processing and Exception Handling
Mr. Theo
-
+
首页
20.1 Programming Paradigms
## Imperative (procedural) programming language Programs with an explicit sequence of commands that update the program state, with or without procedure calls - Imperative languages use variables - … which are changed using (assignment) statements - … they rely on a method of repetition / iteration. - The statements provide a sequence of commands for the computer to perform - … in the order written / given - … each line of code changes something in the program run. ## Declarative programming language Programs that specify the desired result rather than how to get to it - Instructs a program on what needs to be done instead of how to do it - ... using facts and rules - … using queries to satisfy goals. - Can be logical or functional - Logical - states a program as a set of logical relations - Functional – constructed by applying functions to arguments / uses a mathematical style ##### Low-level Programs using the instruction set of a processor ## Object-Oriented Programming (OOP) Programs using the concepts of class, inheritance, encapsulation and polymorphism ###### Instance - an occurrence of an object // a specific object based on the class // an instantiation of a class. ###### Inheritance - the capability of defining a new class of objects that has all the attributes and methods from a parent class. - Methods and properties / attributes contained in one class/ super class / base class - Are made available to / reused by another class/ derived class ###### Polymorphism - allows the same method to take on different behaviours depending on which class is instantiated // methods can be redefined for derived classes. ###### Encapsulation - putting properties and methods inside a class // ensures sensitive data is hidden from users by hiding values of a structured data object inside a class. ###### Getter - method that is used to return the value of a property. ###### Setter - method that is used to update the value of a property. ###### Properties - the data items / attributes - the data types // characteristics - defined in a class ###### Methods - the procedures/ functions / programmed instructions in a class / super class / base class - … implementing the behaviours - … that act on the properties / attributes | *Program code example* | *Programming paradigm* | | ------------------------------------------------------------ | ----------------------- | | male(john).<br>female(ethel).<br>parent(john, ethel). | Declarative | | FOR Counter = 1 TO 20<br> X = X * Counter<br>NEXT Counter | Procedural / imperative | | Start: LDD Counter<br> INC ACC<br> STO Counter | Low-level / assembly | | public class Vehicle<br>{<br> private speed;<br> public Vehicle()<br> {<br> speed = 0;<br> }<br>} | Object oriented / (OOP) |
Theo
2025年5月30日 13:36
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
Word文件
PDF文档
PDF文档(打印)
分享
链接
类型
密码
更新密码
有效期