Intro to programming language-ICT Flashcards

1
Q

What is a programming language?

A

These are sets of instructions that tell the computer what to do.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List 2 types of computer programs

A

low level language and high level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are translators?

A

A translator is a program that converts source code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List 3 types of translators

A

compiler, interpreter, and assembler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List 8 examples of computer high-level programs

A

BASIC
FORTRAN
PASCAL
Logo
COBOL
C++
D-base
ALGOrithmetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the syntax?

A

Syntax is a set of grammatical rules used in computer programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do computers understand humans?

A

Computers understand humans through the use of translators to convert High Level Languages to Low Level Languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is another name for high level languages and machine language

A

High level languages are called source code
Machine language is called object code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why do they call HLLs human-oriented?

A

HLLs are human-oriented because they are understood by humans.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define Interpreters, Compilers and Assemblers.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

List the types of system software

A

Operating system
Executive programs
Translators
Bootstrap loader
Utility programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a computer language?

A

This is a system of instructions and commands that the computer understands and executes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a program?

A

This is a set of instructions that enable the computer to perform given tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is programming?

A

This is the act of giving the computer codes to perform a specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How many types of computer languages are there and name them

A

There are two types of computer languages, namely:
Low Level Language
High Level Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Briefly define machine language

A

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.

17
Q

Briefly define assembly language

A

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.

18
Q

Briefly define HLLs

A

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

19
Q

What are the two divisions of LLLs?

A

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.

20
Q

Briefly define the two divisions of LLLs

A

Assembly language is made up of symbols, letters, and mnemonics. A machine language consists of 0’s and 1’s.

21
Q

Differentiate between HLLs and LLLs

A

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.