fundamentals of computing Flashcards

1
Q

Explain the concept of abstraction in programming

A

this is when you hide the complexity of a program by hiding unnecessary details from the user and showing only the necessary details.
The implementation of how the methods are worked on should be hidden within the class and not accessible outside of the class

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

What is the purpose of the operating system

A

Is a program that is used to manage computer hardware.
it can act as an intermediary between computer user and computer hardware

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

What is a compiler

A

Software we use to write computer code typically high level languages e.g c++ or Java and it converts it into lower level languages

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

What is a text editor

A

software/ programs used for writing code/ text etc

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

Name two categories of Memory

A

Primary memory
Secondary memory

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

What is primary memory

A

Primary memory is a type of computer memory which is accessed by the pre-processor, typically it stores data/info the comp. is working on.

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

difference between high level languages and low level languages is

A

H.L-
1)Programmer friendly
2)Low memory efficient
3) Debugging is easy
4)It is portable
5)It is easy to maintain
6)It needs a compiler/interpreter to translate it
7) Easy to understand
L.L-
1)Machine friendly
2) Not portable
3) Debugging is complex
4) Might be hard to maintain
5) High memory efficient
6) It needs an assembler for translation
7) Might be complex to understand

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

Difference between bit and byte

A

BIT-
smallest unit in a computer
represented in lowercase ‘b’
used in radio telecommunications
represented in either 0 or 1 form
BYTE - It can be understood as a collection of 8 bits but it is quite greater
it is used in storage media devices
it is represented in uppercase ‘B’

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

What is the role of the CPU?

A

It executes instructions.
It fetches information/instructions from the RAM, evaluates it then executes them

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

What is binary code

A

Base 2 number system whose patterns are ones and zeros

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

what is encryption

A

this is a form of cryptography where a plain text or file is converted into cipher, which can only be decoded by the receiver to whom the file was for

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

Two types of protocols

A

Stateless Protocols
Stateful protocols

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

What is Stateless protocol

A

A client sends a request to the server and the server sends back a response according to the current state.

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

Examples of stateless protocol

A

Hyper Text Transfer Protocol(HTTP), Domain Name System(DNS)

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

What is a stateful protocol

A

When a client sends a request to the server and the server doesn’t get the information it is sent again

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

types of stateful protocol

A

TCP
FCP - File Transfer Protocol

17
Q

What is a string?

A

another way of saying text/ anything enclosed by quotation marks is known as a string

18
Q

what is concatenation?

A

adding two strings together

19
Q

what is a variable

A

something that can store information and can be manipulated/ referenced

20
Q

What is an assembler

A

is a program that translates assembly code into machine code

21
Q

Two types of assembler

A

self assembler - translates code to machine code in the same computer
cross assembler - translates machine code for another computer

22
Q

Define the term stack in data structures

A

it refers to linear data structure in which it follows a particular order which an operations is performed can be LIFO(Last In First Out) or FILO(First In Last Out)

23
Q

What is computer networking

A

Process of connecting computers to promote data exchange and enable communication between them

24
Q

What are the building blocks of a computer network and explain what they are.

A

Node and Links.
Nodes are devices for data communication while links are wires or free space for wireless networks.

25
Q

What is a protocol

A

a set of rules that govern how data is transmitted over a network

26
Q

Types of protocols are?

A

TCP/IP(Transmission Control Protocol) - To send data from one computer to another
FTP - File transfer Protocol- sends file from local network to remote network

27
Q

Role of a modem in computer networking

A

A modem(modulator/demodulator) converts analog signal form to digital signal form and vice versa
It connects to the internet through your internet service provider

28
Q

what is a network, and what are the types of area network?

A

It allows computer or interconnected devices to communicate with each other over any medium.
WAN,LAN,PAN, MAN, VPN

29
Q

Why do we hard code data

A

if the data rarely changes
if we haven’t written the code that obtains the data from the appropriate code
NB: hard coding is writing source code instead of getting it from externally

30
Q
A