100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary A Level Computer Science revision notes - 1.2.4 Types of Programming Language

Beoordeling
-
Verkocht
-
Pagina's
5
Geüpload op
23-08-2024
Geschreven in
2023/2024

Revision notes for 1.2.4 Types of Programming Language from topic 1.2: Software and software development. Included in OCR A Level Computer Science Paper 1. These notes were originally written in Markdown language and converted to a pdf.

Meer zien Lees minder
Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Study Level
Publisher
Subject
Course

Documentinformatie

Geüpload op
23 augustus 2024
Aantal pagina's
5
Geschreven in
2023/2024
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

1.2.4 Types of Programming Language
(a) Need for and characteristics of a variety of programming
paradigms.
Programming Paradigms
• different approaches to using a programming language to solve a problem
• most modern programming languages allow for more than one paradigm
Imperative
• code clearly specifies the actions to be performed
• e.g. procedural, object-oriented
Declarative
• focuses on stating the desired result
• details on how to obtain the result are abstracted from the user
• e.g.
functional: programs are made by reusing a set of functions, lines of code consist
of function calls that are often combined within each other
logic: statements are written to describe the problem to be solved, queries are
used to find answers based on rules of the problem




(b) Procedural languages.
Procedural programming
• uses a sequence of instructions
• traditional data types are built into the language (e.g. integers, strings)
• provides data structures (e.g. dictionaries, arrays)
Structured programming
• a subsection of procedural programming
• four main programming structures define the control flow of a program
Sequence
• code is run line-by-line from the top to the bottom of a program

, Selection
• certain sections of code will run if a specific condition has been met
• e.g. if statements, switch ... case statements
Iteration
• sections of code that will repeatedly be executed a set number of times or while a
condition is met
• e.g. for loops, while loops
Recursion
• when function call themselves
• until a condition (base case) is met which does not call the function
Advantages
• relatively easy to learn and interpret
• executes straightforward tasks efficiently
Disadvantages
• large programs will be difficult to manage
• lack of modularity may lead to code redundancy




(c) Assembly language (including following and writing simple
programs with the Little Man Computer instruction set). See
appendix 5d.
Assembly Language
• low level language
• next level up from machine code
• uses mnemonics which are abbreviations for machine code instructions
• each mnemonic is represented by a numeric code


Mnemonic Instruction Function
ADD add adds the value at the given memory address to the value
in the accumulator
SUB subtract subtracts the value at the given memory address from
the value in the accumulator
STA store stores the value in the accumulator at the given memory
address
€3,53
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
alinat

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
alinat Rugby High School
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
1 jaar
Aantal volgers
0
Documenten
9
Laatst verkocht
-
alinanotes

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen