[Week 2] Fundamentals of Programming

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

64 Terms

1
New cards

Programming

When software instructions are written

2
New cards

Two types of software

Application Software
System Software

3
New cards

Application Software

comprises all the programs you apply to a task

4
New cards

System Software

comprises the programs that you use to manage your computer

5
New cards

three major operations of hardware and software

Input
Processing
Output

6
New cards

Input

data items enter the computer system and place in memory, where they can be processed

7
New cards

Computer System

a combination of all components needed to process and store data using a computer. composed of multiple pieces of hardware and software.

8
New cards

Hardware

equipment or the physical devices associated with a computer

9
New cards

Software

computer instructions that tells the hardware what to do

10
New cards

Programs

software is ______, which are instruction sets written by programmers.

11
New cards

Data items

include all the text, numbers, and other raw material that are entered into and processed by a computer

12
New cards

Processing

may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.

13
New cards

Central Processing Unit (CPU)

hardware component that perform tasks like organizing or sorting them, checking them for accuracy, or performing calculations with them

14
New cards

Output

after data item have been processed, the resulting information is usually sent out to an output device

15
New cards

Information

data items that have been processed and output

16
New cards

Storage Device

hard drive, flash media, or cloud-based device. this is where you store your output

17
New cards

Programming Language

you write computer instructions in a ________

18
New cards

Program Code

instructions written using a programming language

19
New cards

Coding the program

when a programmer writes instructions (program development cycle)

20
New cards

Syntax

rules governing its word usage and punctuation

21
New cards

Syntax Errors

mistakes in a language's usage

22
New cards

Computer Memory

this is where program instructions are stored and is a computer's temporary internal storage

23
New cards

Random Access Memory (RAM)

is a form of internal, volatile memory. its contents are lost when the computer is turned off or loses power.

24
New cards

Volatile

its contents are lost when the computer is turned off or loses power.

25
New cards

Nonvolatile

contents are persistent and are retained even when power is lost.

26
New cards

Machine Language

after a computer program is typed using a programming language statements and stored in memory, it must be translated to ________

27
New cards

Source Code

programming language statements

28
New cards

Object Code

translated machine language statements

29
New cards

Compiler/Interpreter

software that programming language use to translate source code into machine language

30
New cards

Binary Language

machine language is also called as ______ and is represented as a series of 0s and 1s.

31
New cards

Runs/Executes

when instructions are carried out, a program __________

32
New cards

Program Development Cycle

1. Understand the problem.
2. Plan the logic.
3. Write the code.
4. Translate the code
5. Test the program.
6. Put the program into production.
7. Maintain the program.

33
New cards

Understanding the problem

professional computer programmers write programs to satisfy the needs of users or end users.

34
New cards

Documentation

consists of all supporting paperwork for a program

35
New cards

Planning the logic

the heart of the programming process lies in this step

36
New cards

Algorithm

is the sequence of steps or rules you follow to solve a problem

37
New cards

Desk-checking

process of walking through a program's logic on paper before you actually write the program

38
New cards

Code the program/Write the code

source code for a program can only be written after the logic is developed

39
New cards

Translate the code

the programmer's english-like high-level programming language will be translated into the low-level machine language so that the computer will understand

40
New cards

Run the program

a program that is free of syntax errors is not necessarily free of logical errors.

41
New cards

Put the program into production

after being tested and debugged, the program is now ready for the organization to use.

42
New cards

Maintain the program

after programs are put into production, making necessary changes is called maintenance

43
New cards

Pseudocode

is an english-like representation of the logical steps it takes to solve a problem

44
New cards

Pseudo

means false

45
New cards

Code

to _______ a program means to put in a programming language

46
New cards

Flowchart

is a pictorial representation of the same logical steps

47
New cards

start and end with stop

programs begin with ______ _______________; these two words are always aligned

48
New cards

module name

whenever a ______ ________ is used, it is followed by a set of parentheses

49
New cards

modules

______ being with the module name and end with return. the module name and return are always aligned

50
New cards

program statement

each ______ performs one action-- for example, input, processing or output

51
New cards

program statement

______ are intended a few spaces more than start or the module name

52
New cards

single line, continuation lines

each program statement appears on a ____ if possible. when this is not possible, ______ are indented

53
New cards

lowercase letters

program statements begin with ______

54
New cards

end statements

no punctation is used to ___________

55
New cards

Parallelogram

represents an input and output symbol which indicates an input and output operation

56
New cards

Rectangle

processing symbol that contains a processing statement

57
New cards

Flowlines/Arrows

used to show correct sequence of statements or to connect the steps

58
New cards

Oval/Racetrack Shaped

Terminal symbols/start/stop symbol

59
New cards

After the flowchart or pseudocode has been developed, the programmer needs to:

1. Buy a computer
2. Buy a language compiler
3. Learn a programming language
4. Code the program
5. Attempt to compile it
6. Fix the syntax errors
7. Compile it again
8. Test it with several sets of data
9. Put into production

60
New cards

Loop

repetition of a series of steps

61
New cards

predetermined value

A better way to end a program is to set a ______ that stops the program

62
New cards

Sentinel Value

represents an entry or exit point

63
New cards

Procedural Programming

focuses on the procedures that programmers create

64
New cards

Object-oriented programming

focuses on objects or things and describes their features (also called attributes) and behaviors.