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

Summary Cos 1521 Chapter 9-14 Exam Summaries

Beoordeling
5,0
(1)
Verkocht
-
Pagina's
16
Geüpload op
06-05-2020
Geschreven in
2019/2020

Hi Everyone, I hope that exam studying is going great for you. I compiled summaries from the textbook for each chapter so you dont need too. I work very hard on these and added multiple diagrams as well. I study at UNISA and I am not a huge fan of theory so this makes it easy for me to study just what is important and go into depth about it. Goodluck and all the best. I hope these help, they are totally worth it!

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

Instelling
Vak

Documentinformatie

Geüpload op
6 mei 2020
Aantal pagina's
16
Geschreven in
2019/2020
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

Chapter 9 Programming Languages
To write a program for a computer, we must use a programming language. A computer language is a
set of predefined words that are combined into a program according to predefined rules.

Machine Languages

These are the programming languages available at an earlier stage. Made up of streams of 1’s and
0’s. The only language understood by the computer is machine language. Machine language has two
drawbacks. First, it is machine dependant. Second, it is very tedious to write programs in this
language and even more difficult to spot errors.

Assembly Languages

This is the next evolution, it replaces binary code with instructions and address with symbols or
mnemonics(also known as symbolic languages). An assembler is used to translate this into machine
language. Ex STORE Number1 RF means Store Register F into Number 1

High Level Languages

Assembly languages greatly improved programming efficiency but they still required programmers
to concentrate on the hardware they were using. There was a desire to improve efficiency and
change focus from the computer to the problem being solved. These are portable so the
programmer can focus on the program and not the computer. This language is easier for a human to
understand.




Translation

This is the method to convert higher level languages into machine language so that the computer
can understand the code. There are two types: compilers and interpreters.

- Compilers: translate the whole source program into the object program.

, - Interpreters: translates each line of the source program into the corresponding line of object
program and executing the line.




Translation Process:
- Lexical Analyzer: reads source code, symbol by symbol and creates a list of tokens in the
source language. Ex C, C++, Java
- Syntax Analyzer: Parses a set of tokens to follow instructions Ex
- Semantic Analyzer: Checks sentences created by the syntax analyser making sure of no
ambiguity.
- Code generator: Instructions are converted to a set of machine language instructions for the
computer

Programming Paradigms: Programming Languages approach they use to solve a problem




Procedural Paradigm: In the procedural paradigm (or imperative paradigm) we can think of a
program as an active agent that manipulates passive objects. We encounter man y passive objects in
our daily life: a stone, a book, a lamp, and so on. A passive object cannot initiate an action by itself,
but it can receive actions from active agents. A program in a procedural paradigm is an active agent
that uses passive objects that we refer to as data or data items. To manipulate a piece of data, the
active agent (program) issues an action, referred to as a procedure.

Examples: FORTRAN, COBOL, Pascal, C, Ada
- FORTRAN: Designed by a group of IBM engines under Jack Backus in 1957.

, - COBOL: Designed by a group of computer scientists under Grace Hopper of US Navy
- Pascal: Invented by Niklaus Wirth in 1971, named after Blaise Pascal
- C: Developed by Dennis Ritchie at Bell in 1970
- Ada: Named after Augusta Ada Byron, Assistance to Charles Babbage. Made for the US
Department of Defence

Object Oriented Paradigm: Deals with active objects instead of passive objects
- Classes are used to for a set of methods to react to outside stimuli
- Methods
- Inheritance
- Polymorphism: Meaning many forms. Treat several operations with the same name that can
do different things in related classes.
- Examples: C++ & Java
- C++: Bjarne Stroustup at Bell to improve C
- Java: Developed by Sun microsystems. Based on C & C++. Supports multithreading.

Functional Paradigm: Considered a mathematical function.
- Examples: LISP & Scheme
- LISP: Designed by a team of researchers at MIT in early 1960s.Everything is considered a list
- Scheme: a standardised version of LISP made by MIT in 1970s

Declarative Paradigm: Uses principle of logical reasoning to answer queries
- Based on deduction
- PROLOG is an example: Developed by A. Colmerauer in France 1972 Made up of facts &
Rules.

Common Concepts

- Identifiers: The name of objects.
- Data Types: A set of values and operations that can be applied to those values.
Simple: Cannot be broken into smaller data types. Have been defined in imperative
languages:
Integer – Whole number
Real – Number with fraction
Character – Symbol type
Boolean – True or false
Composite: Set of elements in which each element is a simple type or composite type:
Array: Set of elements each of the same type
Record: Set of elements in which element can be of different type

- Variables: The names for memory locations. (Initialization stores a value in a variable and
declaration sets a variable with a given name and type.
- Literals: A predetermined value used in a program
- Constants: A constant is similar to a variable but the value cannot be changed.
- Input:
- Output:
- Expressions: A sequence of operands and operators that reduce to a single value.

Operators(a language specific token that requires an action to be taken)
€8,77
Krijg toegang tot het volledige document:

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


Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
5 jaar geleden

5,0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
examsummaries29 University of South Africa (Unisa)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
11
Lid sinds
5 jaar
Aantal volgers
11
Documenten
8
Laatst verkocht
2 jaar geleden

4,8

5 beoordelingen

5
4
4
1
3
0
2
0
1
0

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