COMPSCI LECTURE ( 2ND TERM)

studied byStudied by 37 people
5.0(3)
Get a hint
Hint

It includes a wide variety of languages used to communicate with computers.

Programming languages are a subset of _________.

1 / 77

flashcard set

Earn XP

Description and Tags

78 Terms

1

It includes a wide variety of languages used to communicate with computers.

Programming languages are a subset of _________.

Computer Language

New cards
2

TWO GROUPS OF COMPUTER LANGUAGE

High-level languages and Low-level languages

New cards
3

designed to be easier to use, more abstract, and more portable than low-level languages.

high-level languages

New cards
4

are machine oriented and require extensive knowledge of computer hardware and its configuration.

Low-level languages

New cards
5

The term low level means_____ to the way in which the machine has been built.

closeness

New cards
6

Low-level languages are further classified into?

Machine Language and Assembly Language.

New cards
7

is the lowest form of computer language and the only language that is directly understood by the computer.

Machine Language (also called machine code)

New cards
8

Machine language is nothing but numeric codes written as strings of _____ and _____.

0’s(zero) and 1’s(one).

New cards
9

it is the most efficient language for computers.

Machine Language

New cards
10

essentially a symbolic version of machine language.

Assembly Language

New cards
11

In Assembly language, Each operation code is given a symbolic code such as ____ and _____

ADD for addition and MUL for multiplication.

New cards
12

In assembly language each line of the program corresponds to ____instruction in machine code.

one (1)

New cards
13

programming languages that look like natural language text (their construct is closer to human language) and are so-called because they are independent of the particular computer.

High-level languages

New cards
14

Characteristics of High-level languages:

Codes (statements) usually resemble__________and these languages tend to be easier to learn and understand than a low-level language.

English sentences or mathematical expressions

New cards
15

Characteristics of High-level languages:

A single statement in a high-level language is translated into its ______.

equivalent machine code instructions

New cards
16

A computer can only understand programs written in machine code.

Program Translators

New cards
17

To run a program written with a higher-level language, it has to be _____. This process is done through the use of program translators.

Translated into its machine code equivalent

New cards
18

There are _____ classifications of system software used for translating programs from a high-level to its low-level equivalent.

3

New cards
19

3 classifications of system software are used for translating programs from high-level to their low-level equivalent.

high level language ----> program translator ----> Machine code

New cards
20

It transforms high-level language-written source code into a particular computer’s machine or assembly language code.

Compiler

New cards
21

A program that is specifically used to translate assembly language source codes into machine language.

Assembler

New cards
22

An assembler takes____(assembly language instructions) and directly converts them to ___ (operation codes/machine codes) straightforwardly.

mnemonic codes and opcodes

New cards
23

Assembler examples include:

MASM, TASM, NASM, and FASM.

New cards
24

A program that directly executes a source code.

Interpreter

New cards
25

It reads the source code one line at a time and then executes it: no object code is produced, and so the program has to be interpreted each time it is ran.

Interpreter

New cards
26

This is the lowest level of programming language. Instructions and data are in the form of machine language. Only binary numbers are used (zeros and ones)

First-Generation Programming Language

New cards
27

The _______are still considered low-level programming languages, though there is a significant improvement in terms of coding ease. Assembly language belongs to this generation.

Second-Generation Programming Language

New cards
28

High-level programming language. Instructions were written using English-like keywords.

Third-Generation Programming Language

New cards
29

Dubbed as a very high-level programming language, fourth-generation programming languages took advantage of the computer’s multimedia processing in program development.

Fourth-Generation Programming Language

New cards
30

languages were used initially in artificial intelligence applications. It aimed at computers to solve problems with little or without intervention from the programmers.

Fifth-Generation Programming Language

New cards
31

A ____ is a fundamental style of computer programming.

programming paradigm

New cards
32

There are four main paradigms:

Object-Oriented Programming Imperative Programming Functional Programming Logic Programming

New cards
33

creating objects as program components.

Object-Oriented Programming

New cards
34

uses a series of terms or statements to solve a problem.

Imperative Programming

New cards
35

treats programming as the evaluation of mathematical functions.

Functional Programming

New cards
36

implements logical statements as the body of code.

Logic Programming

New cards
37

A list of instructions for carrying out a process step-by-step

Algorithm

New cards
38

Two kind of algorithm

Pseudocode Flowchart

New cards
39

in pseudocode Read symbol is?

knowt flashcard image
New cards
40

in pseudocode OUTPUT symbol is? (this is different from what we know from the class of sir Jan)

knowt flashcard image
New cards
41

Notation Commonly Used in Flowcharting

knowt flashcard image
New cards
42

a software, which makes a computer to actually work. It is the software that enables all the programs we use.

Operating System

New cards
43

The OS organizes and controls the____. OS acts as an ____ between the application programs and the machine hardware.

hardware and interface

New cards
44

OPERATING SYSTEMS DOES?

Control and allocate memory

Prioritizing system requests,

Control input, and output devices,

Facilitate networking, and

Manage file systems.

New cards
45

functioned without any operating system.

Single-user system(directly operates the computer) programmer/User as operator

Paper tape or punched cards

Preparing a computer for a single user usually requires a considerable amount of time.

Early Systems - Bare Machine (the 1950s)

New cards
46

_____Operating Systems are those which Perform all the instructions in a Sequence Manner

Instructions that are given by the user will be executed by using the FIFO Manner means First in First Out.

All the Instructions that are Entered First in the System will be Executed First and the Instructions that are Entered Later Will be Executed Later.

Serial Processing

New cards
47

Reduce setup time by batching jobs with similar requirements.

Add a card reader, Hire an operator

The operator groups similar jobs together and executes them sequentially.

A batch is entered into the computer and software called the supervisor

Need to distinguish job from job and data from the program.

Batch Processing (1960’s)

New cards
48

is a technique to execute a number of programs simultaneously by a single processor.

Multiprogramming

New cards
49

is a logical extension of multiprogramming.

Time-sharing, or multitasking,

New cards
50

In this, the CPU time is shared by different processes, so it is called a_____.

“Time-sharing System”

New cards
51

This type is the most popular among operating systems.

These are operating systems that are commonly installed on personal computers and notebooks.

The purpose of these operating systems is to allow users to run word processors, spreadsheets, internet browsers, video games, and other types of programs conveniently.

Personal Computer Operating Systems

New cards
52

A server is a computer that provides services to other computers in a computer network.

The server can be a high-end workstation or a simple personal computer.

A server operating system allows users to share and access different computer resources such as printers and disk drives.

Server Operating Systems

New cards
53

These are operating systems installed on small electronic devices such as watches and mobile phones, to larger machines such as cars and airplanes.

Embedded Operating Systems

New cards
54

it handles heavy input-output operations and execute multiple jobs at the same time.

Mainframe Operating Systems

New cards
55

Compact operating systems running on smart cards.

A smart card is a card containing a tiny CPU chip for processing and data storage (thus the term ‘smart’).

Examples of smart cards include ATMs and credit cards.

Smart Card Operating Systems

New cards
56

The modern operating system uses two interfaces, the ____ and the ____

command-line interface (CLI) and Graphical User interface (GUI).

New cards
57

also known as the command interpreter uses a prompt for users to enter commands through the keyboard.

Command-line interface

New cards
58

An operating system implements and uses graphical symbols such as forms, menus, and cons for users to perform common computer operations.

Compared to CLI, this interface provides a much more user-friendly environment for users to work on.

Graphical User Interface (GUI)

New cards
59

A collection of numbers together with operations on those numbers and the properties that the operation satisfies

Number System

New cards
60

a writing system for expressing numbers using digits or symbols in a constant manner

a way to represent numbers

Number System

New cards
61

Different numeration system used by different cultures?

Tally Number System Babylonian Numeration System Egyptian Number System

New cards
62

simplest number system ever used

making use of single stroke to represent objects

Tally Number System

New cards
63

used only two symbols to represent a one and a ten

used to measure time and angles

Babylonian Numeration System

New cards
64

uses symbols such as man, pointing-finger, fish heel bone, lotus flower, to represent numbers that are the power of ten

Egyptian Number System

New cards
65

method of counting that uses only one symbol – has the same value regardless of its position

Non-positional Number System

New cards
66

symbols have different values depending on their position in the number

values are determined through: the digit itself, the position of the digit in the number, the base of the number system

Positional Number System

New cards
67

determines how many times a digit will be multiplied by itself on its position radix point (decimal point) divides the whole numbers from fractional numbers

Power

New cards
68

Number System Commonly Used in the Field of Computing

Decimal System (base 10) Binary System (base 2) Octal System (base 8) Hexadecimal System (base 16)

New cards
69

Defines the number of symbols used in the number system

Base 10 (Decimal) – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9Base 2 (Binary) – 0,

Indicated by a subscript .

Radix or Base

New cards
70

The digit that has the greatest effect on the value of the number

Most Significant Digit (MSD)

New cards
71

The digit that has the least effect on the value of the number

Least Significant Digit (LSD)

New cards
72

Commonly Used Number Systems in Computing

Decimal (N10) Binary (N2 ) Octal (N8 ) Hexadecimal (N16)

New cards
73

how to compute for Non-Decimal to Decimal (n2,n8,n16 ---> n10)

multiply the given by its base

<p>multiply the given by its base</p>
New cards
74

how to compute Decimal To Non-Decimal (n10 --->n12)

divide the given from its base and the remainder is the answer

<p>divide the given from its base and the remainder is the answer</p>
New cards
75
Other Conversions ( n2 <----> n8)

group the binary from groups containing a 3 numbers per groups and add the binary who has value in its 2nd power equivalent

<p>group the binary from groups containing a 3 numbers per groups and add the  binary who has value in its 2nd power equivalent</p>
New cards
76

Non-Decimal to Another NonDecimal Base ( n8--->n10)

since there is no direct conversion from ocatl to hexa.

you will need first to convert the octal to binary and conver the binary to hexa

<p>since there is no direct conversion from ocatl to hexa.</p><p>you will need first to convert the octal to binary and conver the binary to hexa</p>
New cards
77

Addition in Different Number Systems

The addition of numbers (in any base) follows a common rule. We just take note of the base of the numbers being added. We take for example the addition of decimal numbers (base 10) 563 and 347. Observe that if the sum of the digits is greater than or equal to the base of the numbers, we subtract the base from the sum and a carry is produced.

<p>The addition of numbers (in any base) follows a common rule. We just take note of the base of the numbers being added. We take for example the addition of decimal numbers (base 10) 563 and 347. Observe that if the sum of the digits is greater than or equal to the base of the numbers, we subtract the base from the sum and a carry is produced.</p>
New cards
78

Subtraction in Different Number Systems

Rule: The base of the number system is important in subtraction. When we borrow, we subtract 1 from the preceeding digit but we add the value of the base to the borrowing digit.

<p>Rule: The base of the number system is important in subtraction. When we borrow, we subtract 1 from the preceeding digit but we add the value of the base to the borrowing digit.</p>
New cards

Explore top notes

note Note
studied byStudied by 63 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
4.0(1)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 58 people
... ago
5.0(1)
note Note
studied byStudied by 126 people
... ago
4.5(2)
note Note
studied byStudied by 163 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (58)
studied byStudied by 29 people
... ago
5.0(1)
flashcards Flashcard (62)
studied byStudied by 34 people
... ago
5.0(4)
flashcards Flashcard (30)
studied byStudied by 10 people
... ago
5.0(2)
flashcards Flashcard (74)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (57)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (173)
studied byStudied by 119 people
... ago
5.0(2)
flashcards Flashcard (80)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (61)
studied byStudied by 3 people
... ago
5.0(1)
robot