Intro to programming language-ICT Flashcards
What is a programming language?
These are sets of instructions that tell the computer what to do.
List 2 types of computer programs
low level language and high level language
What are translators?
A translator is a program that converts source code into machine code
List 3 types of translators
compiler, interpreter, and assembler
List 8 examples of computer high-level programs
BASIC
FORTRAN
PASCAL
Logo
COBOL
C++
D-base
ALGOrithmetic
What is the syntax?
Syntax is a set of grammatical rules used in computer programming
How do computers understand humans?
Computers understand humans through the use of translators to convert High Level Languages to Low Level Languages
What is another name for high level languages and machine language
High level languages are called source code
Machine language is called object code
Why do they call HLLs human-oriented?
HLLs are human-oriented because they are understood by humans.
Define Interpreters, Compilers and Assemblers.
Interpreters are translators that convert HLL to machine language line by line or one instruction before the other.
Compilers are translators that convert HLL to Machine language all at once.
Assemblers are translators that convert Assembly language to Machine language.
A translators is a program that converts one language form to another.
List the types of system software
Operating system
Executive programs
Translators
Bootstrap loader
Utility programs
What is a computer language?
This is a system of instructions and commands that the computer understands and executes.
What is a program?
This is a set of instructions that enable the computer to perform given tasks.
What is programming?
This is the act of giving the computer codes to perform a specific task
How many types of computer languages are there and name them
There are two types of computer languages, namely:
Low Level Language
High Level Language
Briefly define machine language
This language is understood by computers which cannot be understood or utilised by humans, it consists of binary digits, 0’s and 1’s. It is very fast to execute.
Briefly define assembly language
Unlike machine language the instructions and variables have names instead of numbers. It is translated into machine language with an assembler. It consists of letters, mnemonics and symbols.
Briefly define HLLs
High Level Languages are human understandable languages. It allows programmers to write programs that aren’t dependent on the CPU design.
Examples: fortran, BASIC, COBOL, C, C++, Java, Pascal
What are the two divisions of LLLs?
The two divisions of LLLs are assembly language and machine language.
Assembly language is made up of symbols, letters, and mnemonics. A machine language consists of 0’s and 1’s.
Briefly define the two divisions of LLLs
Assembly language is made up of symbols, letters, and mnemonics. A machine language consists of 0’s and 1’s.
Differentiate between HLLs and LLLs
this is supposed to be in a tabular form but there isn’t a way to add a table
HLLs are human understandable languages while LLLs are machine understandable languages
HLLs allow programmers to write programs that aren’t dependednt on CPU design while LLLs programs are machine dependent.
HLLs use human languages like French and English while LLLs use machine language(0’s and 1’s)
HLL: programs written in HLL need to be translated into machine language while codes written in LLL are directly understood by the computer.