Unit 1: Basic Terminologies and Problem Solving Steps Flashcards

1
Q

Define: Computer

A

Programmable machine designed to follow/process data/instructions at an enormous speed

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

Define: Computer program (software)

A

List of instructions, stored in the computer memory to direct the computer system to perform a task

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

Define: Hardware

A

Computer equipment, e.g. keyboard, mouse, etc.

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

Define: Software

A

Computer programs, e.g. operating system, application software

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

Define: Computer system

A

Combination of hardware and software

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

Define: Input devices

A

Devices used to input information into the CPU of the computer, e.g. keyboard, mouse, etc.

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

Define: Output devices

A

Devices used to make the computer-processed data/information available at the output, e.g. monitor, printer, etc.

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

What is the standard output of a computer system?

A

Computer monitor

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

What is the standard input of a computer system?

A

Keyboard

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

Define: Internal memory (primary storage)

A

Holds both program instructions and data

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

What is internal memory (primary storage) composed of?

A

Random Access Memory (RAM, also known as main memory) and Read-Only Memory (ROM)

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

Define: Random Access Memory (RAM)

A

Volatile (requires constant power to maintain the stored information, erased when the computer is turned off). Stores data and associated instructions for any application program

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

Define: Read-Only Memory (ROM)

A

Non-volatile (data items are retained even if the computer is turned off). Stores start-up instructions and the likes for a computer system

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

Where does any data go when being inputted through the input device

A

Directly to the RAM

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

Define: External memory

A

Non-volatile, suitable for long-term storage (also called secondary storage), e.g. floppy disk, SSD, flash memory, etc.

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

Define: Central Processing Unit (CPU)

A

Composed of two units: ALU (Arithmetic and Logic Unit) and CU (Central Unit). The CPU has some memory which are called the registers and the present-day CPU uses cache memory too (this is not considered as part of the internal memory)

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

Define: Cache memory

A

Auxiliary memory, generally inaccessible, from which high-speed retrieval of data is possible

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

Define: Control Unit (CU)

A

Part of the CPU. Controls the computer resources, also called processor

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

Define: Arithmetic and Logic Unit (ALU)

A

Part of the CPU. Performs mathematical operations

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

Define: The CPU operations

A

The CPU performs fetch/decode/execute cycle in order to process information

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

Define: Fetch (1st CPU operation)

A

From Ram, the CPU’s CU fetches the next encoded instruction in the sequence of program instructions (each instruction is encoded in the form of a number)

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

Define: Decode (2nd CPU operation)

A

The CU decodes the instruction and generates an electronic signal

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

Define: Execute (3rd CPU operation)

A

The electronic signal is routed to the appropriate component of the computer (such as the ALU, a disk drive, or some other device). The signal causes the component to perform an operation

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

True or False: A CPU consists of an ALU, scanner, and a processor

A

False

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

Instructions and data are stored in…

A

The memory

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

An operating system is…

A

Software that provides a convenient and efficient interface between the user and the hardware

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

What does RAM contain?

A

Currently running program instructions and data used by those programs

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

A byte is a sequence of how many bits?

A

8

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

What values can a bit contain?

A

0 (OFF, FALSE) or 1 (ON, TRUE)

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

What happens if a computer needs to store a large number that cannot fit into a single byte?

A

The computer uses more than one adjacent bytes

31
Q

What are the three main categories of programming languages

A

Low level, mid level, and high level

32
Q

Define: Low level language (machine language)

A

Computer hardware understands this language only, written using two alphabets (0 and 1), memory efficient language with very fast execution time, tedious to write

33
Q

What is low level language used to develop?

A

Operating systems, device drivers, databases, and applications that require direct hardware access

34
Q

True or False: Low level language is machine (CPU/Processor) dependent

A

True

35
Q

Define: Mid level language (assembly language)

A

Assigns short names to commands (e.g. ADD, MOV) instead of raw binary, easier than machine language, must be translated to machine language, the “assembler” (computer program) translates the assembly language into machine language, still in use

36
Q

True or False: Mid level language is machine (CPU/Processor) dependent

A

True

37
Q

What is mid level language used to develop?

A

Operating systems, device drivers, compilers, and other programs that require direct hardware access

38
Q

Define: High level language (source code)

A

Uses English-like commands and instructions along with some mathematical symbols (i.e. area = 5 * 5 * 3.1415;), easier than machine language, must be translated into machine language using compiler

39
Q

True or False: High level language is machine (CPU/Processor) dependent

A

False

40
Q

Define: Compiler

A

A general compiler translates the entire source code into a machine-code file (known as object-code), and the machine-code file is then executed. C++ uses a compiler

41
Q

Define: Interpreter

A

A special compiler called that reads one statement from the source code, translates it to the machine code, and then executes it right away. Perl, Matlab, Python, use interpreters. A statement from the source code may be translated into several machine instructions

42
Q

Is java a compiled, interpreted, or virtual machine programming language?

A

Virtual machine

43
Q

Define: Virtual machine programming language

A

A language run through a virtual machine (VM) that is a software implementation of a computer that executes programs like a real machine

44
Q

Define: Procedure

A

A list of instruction to tell the computer what to do in step-by-step order, it is a collection of statements that are grouped together to perform an operation (in OOP, procedures are known as methods)

45
Q

Define: Procedural programming

A

Centered on procedures, data items are commonly passed from one procedure to another, the procedures are developed to operate on the program’s data

46
Q

Define: Object-oriented programming (OOP)

A

Centered on creating objects rather than procedures,

47
Q

Define: Objects

A

A combination of data and procedures, the procedures associated to the object manipulate the object’s data (data in an object are known as attributes, fields, data members, or instance variables. Procedures in an object are known as methods, member-functions, or member-methods), codes outside the objects interact with object’s methods

48
Q

Define: Class

A

A program-structure (or blueprint or program-code-template) that allows a programmer to define the characteristics of an object that needs to be created, a class may contain methods only or attributes only

49
Q

True or False: Assembly language is a high level language

A

False

50
Q

True or False: The source code in Java is compiled into Java Virtual Machine code called bytecode, which is machine-independent

A

True

51
Q

True or False: If you modify your code, written in high level language, you must compile it for the change to be effective

A

True

52
Q

Fill in the Blank: ________ is the physical aspect of the computer that can be seen

A

Hardware

53
Q

Fill in the Blank: ________ is the brain of a computer

A

CPU

54
Q

Why do computer use zeros and ones?

A

Because digital devices (e.g., computer) have two stable states and those states can be well represented by 0 and 1

55
Q

Fill in the Blank: _______ translates high-level language program into machine language program

A

A compiler

56
Q

Fill in the Blank: ________ is a program that runs on a computer to manage and control a computer’s activities and provides interface between the user and the computer hardware

A

Operating system

57
Q

True or False: In the RAM section, any two memory locations can NOT have the same address (location)

A

True

58
Q

True or False: When a programmer defines a class, the programmer decides on the name of the class

A

True

59
Q

Which hardware component stores the data and instructions?

A

Random Access Memory (RAM)

60
Q

What are the steps in the engineering problem solving process?

A

Specification, design, implementation, testing

61
Q

Describe the ‘specification’ step in the engineering problem solving process

A

Precise statement of what the system will do. Includes functional specifications, input/output specifications, and performance specifications

62
Q

Describe the ‘design’ step in the engineering problem solving process

A

Decompose the system into parts and describe how the components communicate with each other

63
Q

Define: Algorithm

A

An ordered sequence of well-defined instructions (NOT a computer program) that gives an initial state, performs some task, and halts in finite time

64
Q

Define: Unified modeling language (UML)

A

The standard modeling language for object-oriented program design

65
Q

Define: Class diagram

A

Shows the different objects, their relationship, their behaviors, and attributes. Used in UML

66
Q

Define: Flowchart

A

Uses specific diagrams connected by arrows to represent the control-flow of any procedure/method/function

67
Q

Describe the ‘implementation’ step in the engineering problem solving process

A

Where the programmer writes and compiles the code, easiest part

68
Q

Define: Syntax error

A

Mistakes that the programmer has made that violate the rules of the programming language

69
Q

Describe the ‘testing’ step in the engineering problem solving process

A

Ensures the implementation fulfils the specification, second most important step

70
Q

True or False: A computer program is the implementation of an algorithm

A

True

71
Q

True or False: An algorithm refers to a step-by-step solution to solve a specific problem

A

True

72
Q

Writing code is done during which step of the engineering problem solving process?

A

Implementation

73
Q

In which problem solving steps, syntactical (grammatical) errors are corrected?

A

Implementation