quick revision P1 CS

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

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:58 AM on 6/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

Data protection act 1998

data must be used fairly and legally, for clear purposes, and collected only for said purposes. Data must be accurate and up-to-date, and people have the right to view data or delete data when requested. Exceptions for this are when there are suspicions of crime or security threat.

2
New cards

Computer misuse act 1990

access to computer which is unauthorised, or accessing computer with intent to facillitate a crime or with unauthorised modification

3
New cards

Copyright, Design, Patents Act 1988

Producer’s rights to their words, such as that work cannot be illegally downloaded, copied, or shared without consent.

4
New cards

Regulation of investigatory powers act 2000

authorities may conduct surveillance on private data and internet data with assistance from ISP.

5
New cards

1NF

no repeating attributes, so must be atomic (one attribute cannot consist of two data items). Cannot be many-to-many as data will repeat.

6
New cards

2NF

1NF and no partial dependencies, so must depend on entirety of composite key and not just part of it (e.g. middle table with both classID and studentID)

7
New cards

3NF

2NF and no non-key dependencies (transitive dependency, where one non-primary attribute can be defined using another non-primary attribute)

8
New cards

SQL order in ascending/descending order

SELECT

FROM

WHERE

ORDER BY … DESC/ … ASC

9
New cards

combine 2 tables

SELECT

FROM

JOIN

ON

WHERE

10
New cards

create table

CREATE TABLE table name

( fieldname1 variable-type NOT NULL PRIMARY KEY,

fieldname2 variable-type,

fieldname3 variable-type)

11
New cards

add column

ALTER TABLE

ADD

12
New cards

remove column

ALTER TABLE

DROP

13
New cards

change data type of column

ALTER TABLE

MODIFY

14
New cards

rename column

ALTER TABLE

RENAME COLUMN … TO …;

15
New cards

create linked table

CREATE TABLE tablename

( fieldname1 type,

fieldname2 type,

fieldname3 type,

FOREIGN KEY key REFERENCES table(key)

FOREIGN KEY key REFERENCES table(key)

PRIMARY KEY (key1, key2)

)

16
New cards

insert data using SQL

INSERT INTO table (field if necessary),

VALUES (attribute1, attribute2…)

17
New cards

update table

UPDATE table

SET attribute = ‘x’,…,

WHERE key = ‘…’

18
New cards

NIC

connects device to network, provides MAC address

19
New cards

Hub vs switch vs router

Hub forwards using a single network, causing a lot of collisions. Switch forwards using MAC address within a single network. Router routes packets using IP address across different networks.

20
New cards

<div> tags

create blocks of HTML content that can be formatted independently using CSS

21
New cards

classes and identifier

#identifier (unique to one element per page), .classes (identifies more than one element per page)

22
New cards

why is Javascript needed

minimises number of files opened, makes code cleaner, can affect multiple HTML code with one line