Unit 1: Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

56 Terms

1
New cards

Computer programming

It is creating step by step by step instructions using a programming language so a computer can perform tasks and solve problems ( giving instructions to the computer

2
New cards

what are the 10 stages of Programming Process

Requirements gathering

Analysis

Design

Implementation (coding)

Testing

Deployment

Maintenance

Documentation

Version control

Project management

3
New cards

Requirements Gathering

Understand what the user/client needs

4
New cards

Analysis

examine the requirements and possible solutions ( examine & analyze requirements)

5
New cards

Design

plan the program, algorithm, data, and interface (creating plan)

6
New cards

Implementation/code

write the actual code (writing a code)

7
New cards

Testing

find and fix errors (identify and fix detects)

8
New cards

Deployment

release the program to users ( maintain document)

9
New cards

Maintainance

update, improve, and fix the program

10
New cards

Documentation

record information about the program

11
New cards

Version control

track changes in the code

12
New cards

Project management

plan and monitor the project

13
New cards

What are the Programming process in C

Problem definition

Algorithm

Pseudocode / Flowchart

Code writing

Compilation

Testing and Debugging

Optimization

14
New cards

Problem definition

clearly identify what problem the C program needs to solve (understand the problem)

15
New cards

Algorithm design

create step by step solution to solve the problem (step by step for solving the problem)

16
New cards

Pseudocode /Flowchart

Represent the programs logic and structure before coding

17
New cards

Code writing

write the actual C code based on the algorithm

18
New cards

Compilation

Use C compiler to convert the C code into a machine-readable format

19
New cards

Testing and Debugging

run the program and find and fix errors /

20
New cards

Optimization

improve the programs performance and efficiency if needed

21
New cards

Procedural Programming

focuses on using procedures /functions to perform specific tasks. (step by step instructions or procedures to solve a problem)


22
New cards

What are the Important Characteristics of procedural programming

Functions

Global Variables

Sequential Execution

Limited data abstraction

Code Reusability

Top down design

23
New cards

Funtions

perform specific operations. (instructions)

24
New cards

Global Variables

variables accessible from different parts of the program

25
New cards

Sequential Execution

instructions execute step by step

26
New cards

Code Reusability

functions can be reused

27
New cards

Top down design

breaks a large problem into small problems

28
New cards

Object-oriented Programming

focuses on objects, which contain data and actions

29
New cards

What are the 2 types of programming

Procedural Programming

Object - Oriented Programming

30
New cards

Variable

is a name given to a storage area where a program can store data/value (storage area)

31
New cards

Assignment operator

it is used to assign or store a value in a variable

32
New cards

What are the Rules of Naming Variables

  1. Cannot start with a number

  2. Cannot contain spaces

  3. Cannot use special characters

  4. Variable is Case Sen


33
New cards

+

Adds two operands

34
New cards

-

subtracts second operand from the first

35
New cards

*

multiplies both operands

36
New cards

/

divides numerator by denomerator

37
New cards

%

modulus operator and remainder of after an integer division

38
New cards

++

increment operator increases the integer

39
New cards

—

decrement operator decreases the integer value by one

40
New cards

Algorithm

is a step by step procedure used to solve a problem or perform a task

41
New cards

What are the Characteristics of Algorithm

  1. Well defined

  2. Finite

  3. Input

  4. Output

  5. Deterministic

  6. Feasible

  7. Correctness


42
New cards

Well defined

Clear steps

43
New cards

Finite

must eventually end

44
New cards

Input

receives data

45
New cards

Output

produce a result

46
New cards

Deterministic

same input gives the same output every time it’s executed

47
New cards

Feasible

practical to perform

48
New cards

correctness

produces the correct result

49
New cards

pseudocode

informal way of writing an algorithm using simple, human readable instructions. It is not tied to a specific language

50
New cards

IPO model

identify the data that goes into a program, what the program does, and what result in produces

(what goes in, what happens, what comes out

51
New cards

Flowchart

is a visual representation of an algorithm or process. It uses symbols and arrows to show the sequence of steos

52
New cards

start/end

Oval, start or end

53
New cards

process

rectangle, action/Calculation

54
New cards

Input /output

parallelogram, input or output

55
New cards

decision

Diamond, Question/condition

56
New cards

arrow

arrow line, direction/flow