MODULE 1: Lesson 1 Flashcards

1
Q

What are the two major components of a computer?

A

Hardware and software

  1. Hardware refers to the physical or tangible components of a computer system, such as the monitor, keyboard, and motherboard.
  2. Software is a program that a computer uses to function which
    is kept in a hardware device like a hard disk and is
    intangible.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Two types of memory

A

Main memory and secondary memory.

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

Comparison between main and secondary memory

A

Main memory - fast in speed, expensive in price, low in capacity, and is volatile.

Secondary memory - slow in speed, cheap in price, high in capacity, and is not volatile.

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

What is Input/output devices?

A

The I/O devices allow computer systems to interact with the outside world by moving data into and out
of the system.

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

These are the instructions for the processor.

A

Programs

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

Types of computer programs:

A

• System programs
• Application programs
• Compilers

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

This is a standardized communication technique for expressing instructions to a computer. Like human languages, each language has its syntax and grammar. These instructions are translated into machine language that can be understood by
computers.

A

Programming language

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

Two categories of programming language:

A

  1. High-Level Languages
    ⚬ User-friendly
    ⚬ Platform-independent
    ⚬ Abstract from low-level details
  2. Low-Level Languages
    ⚬ Closer to machine code
    ⚬ Platform-dependent
    ⚬ Efficient but harder to program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In late middle ages, The first device known to carry out calculations was the _____. It was invented in Asia but was used in ancient Babylon, China, and throughout Europe until the late middle ages. The abacus uses a system of sliding beads on a rack for addition and subtraction.

A

Abacus

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

Pascaline was a calculating device invented in 1642 by ______, a French philosopher and a mathematician. It had eight movable dials on wheels that could calculate sums up to eight figures long. It can only perform addition and subtraction operations like abacus

A

Blaise Pascal

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

Gottfried von Leibniz invented a device that was able to add, subtract, multiple, and divide in the ______.

A

17th Century

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

(Back in the _______), Charles Babbages, an English mathematician and physical scientist, designed two calculating machines the difference engine and analytical engine. The difference engine could automatically perform complex operations, such as squaring numbers. The first complete difference engine was completed in 2008 and is on display at the Computer History Museum in Mountain View, Californina. Most of Babbage’s work is known through the writings of his colleague, Ada Augusta, Countess of Lovelace. Augusta us considered to be the first computer programmer.

A

Early and mid 1800s

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

At the end of the _____ , US Census officials needed help in accurately tabulating the census data. Herman Hollerith invented a calculating machine that ran on electricity and used punched cards to store data. Hollerith founded the Tabulating Machine Company, which later became known as IBM.

A

19th Century

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

In the year “1944” The first computer-like machine was the _____ . It was built by IBM and Harvard University under the leadership of Howard Aiken. Punched cards were used to feed data into the machine. Mark I was 52 feet long, weighed 50 tons, and had 750, 000 parts.

A

Mark I

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

In 1946 the __ (__ __ __ __ ___) was built at the University of Pennsylvania. It contained 18, 000 vacuum tubes and weighed some 30 tons

A

ENIAC (Electronic Numerical Integrator and Calculator)

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

The computers that we know today use the design rules given by John von Neumann in ______ . His design included components such as arithmetic logic unit, control unit, memory, and input/output devices. Neumann’s design makes it possible to store the programming instruction and the data in the same memory space.

A

late 1940s

17
Q

The ___ ( __ ___ ___ ) was built in 1951 and sold to the US Census Bureau.

A

UNIVAC (Universal Automatic Computer)

18
Q

Invention of smaller, faster, more reliable, and more energy- efficient computer transistors. This era also saw the emergence of the software development industry with the introduction of FORTRAN and COBOL, two early programming languages. Later on, transistors were replaced by tiny integrated circuits or chips that are smaller and cheaper than transistors and can contain thousands of circuits on a single chip. They give computers tremendous processing speed.

A

1956

19
Q

In ___ , Microprocessors was invented. It is an entire CPU on a single chip.

A

1970

20
Q

____ and ____ designed and built the first Apple computer in the garage in the year 1977.

A

Stephen Wozniak and Steven Jobs

21
Q

IBM introduced its personal computer (PC)

A

1981

22
Q

Clones of the IBM PC made the personal computer even more affordable.

A

1980s

23
Q

In ___ until today, People from many walks of life were able to afford computers. As of today, modern-day computers are very powerful, reliable and easy to use. It also has advanced features.

A

Mid 1990s

24
Q

The program development life cycle

A

Step 1: problem definition.
• A problem definition is a clearly
defined problem that is already
half the solution.

Step 2: problem analysis.
• Break down the problem into
smaller parts
• identify the input (data you
start with) and output (the
desired result).

Step 3: Algorith design and Representation.
• Create a step-by-step plan to
solve the problem.
• Algorithms can be written in
plain language, as a picture
(flowchart), or in a code-like
way (pseudocode).

STEP 4: Coding and Debugging.
After constructing the algorithm,
it is now possible to create the
source code. Using the algorithm
as a basis, the source code can
now be written using the chosen
programming languag

25
Q

Two ways of expressing our solution:

A

EXPRESSING OUR SOLUTION
THROUGH HUMAN LANGUAGE:

  1. Get the list of names, let’s call this
    nameList
  2. Get the name to look for, let’s call this the
    keyname
  3. Compare the keyname to each of the
    names in nameList
  4. If the keyname is the same as a name in
    the list, add 1 to the count
  5. If all the names have been compared,
    output the result.

EXPRESSING OUR SOLUTION
THROUGH A PSEUDOCODE:

  1. Get nameList.
  2. Get keyname.
  3. Set count=0.
  4. Compare keyname to nameList.
  5. If keyname = name in nameList, then
    count + 1 6. Else, display count.
26
Q

a schematic representation of a sequence of operations, as in a manufacturing process or computer program. a graphical representation of the sequence of operations in an information system or program.

A

Flowchart

27
Q

TYPES OF ERRORS

A

  1. COMPILE-TIME ERROR OR SYNTAX ERRORS.
    A syntax error occurs if
    there is a syntax error in
    the code.
  2. RUNTIME ERRORS.
    Compilers are not perfect,
    and so they cannot catch all
    errors at compile time. This
    is especially true for logic
    errors, such as infinite loops.
    This type of error is called
    runtime error.