programming procedures and languages

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

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:29 PM on 4/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

4 Terms

1
New cards

Procedural programming 🟢

A programming paradigm is the way a language is used to achieve wanted outcome of code used in said language.

A program is divided into multiple sections called modules, subroutines, or block structures, and the aim is to improve clarity, quality, and development time of a computer program.

2
New cards

Objected Oriented Programming Language (OOPs) 🔴

OOPs is a way of writing code by organizing it around “objects”. Think of objects as self contained units that bundle together data and behavior.

Side note - class: acts as a blueprint or template for creating objects (instances). The class defines defines the structure, properties, and behaviors. Parent: the main class that other classes can inherit code from.

Encapsulation -

you bundle data into one CLASS, protect it, and control how it is changed. There are three levels of access, public, protected, and private.

Think of a car — you use the steering wheel and pedals without needing to know how the engine works manually


Inheritance -

Lets one “classacquire the properties and methods of another class. It’s how you avoid rewriting the same code over and over again - build it once in a “parent”, reuse it everywhere.

Use it when there’s a clear “is-a” relationship—a dog IS an animal, in order to eliminate repeated code across similar classes


Polymorphism - “many forms”

Multiple classes acquiring properties from the parent class(one interface), and behaving in its own customized way(many behaviors).

Dog speak - woof

Cat speak - meow


Abstraction - what you expose to users

Sets simple/natural rules that users must follow. This is done by hiding complex code from the user, all the user needs to do is follow simple controls/if not, it won’t work and they won’t know why.

Press gas pedal - car moves forward 🚗

Turn steering wheel - car turns

Press brake - car stops

<p>OOPs is a way of writing code by organizing it around “objects”. Think of objects as self contained units that bundle together <strong>data</strong> and <strong>behavior.</strong></p><p>Side note - <strong>class</strong>: acts as a <strong>blueprint</strong> or template for <strong>creating objects</strong> (instances). The class defines <strong>defines</strong> the structure, properties, and behaviors. <strong>Parent: </strong>the <strong>main class</strong> that other classes <strong>can inherit</strong> code from.</p><p><strong>Encapsulation</strong> -</p><p>you <strong>bundle</strong> data into one <strong>CLASS</strong>, <strong>protect</strong> it, and <strong>control</strong> how it is changed. There are three levels of access, <strong>public</strong>, <strong>protected</strong>, and <strong>private</strong>.</p><p>Think of a car — you use the steering wheel and pedals without needing to know how the engine works manually</p><div data-type="horizontalRule"><hr></div><p><strong>Inheritance</strong> -</p><p>Lets one “<strong>class</strong>” <strong>acquire</strong> the properties and methods of another class. It’s how you <strong>avoid rewriting</strong> the same code over and over again - <strong>build it once</strong> in a “<strong>parent</strong>”, reuse it everywhere.</p><p>Use it when there’s a clear “is-a” relationship—a dog IS an animal, in order to eliminate repeated code across similar classes</p><div data-type="horizontalRule"><hr></div><p><strong>Polymorphism</strong> - “many forms”</p><p><strong>Multiple classes acquiring</strong> properties from the <strong>parent class</strong>(one interface), and <strong>behaving in its own</strong> customized way(many behaviors).</p><p>Dog <strong>speak</strong> - woof</p><p>Cat <strong>speak - </strong>meow</p><div data-type="horizontalRule"><hr></div><p><strong>Abstraction</strong> - what you expose to users</p><p><strong>Sets simple/natural rules</strong> that users must follow. This is done by <strong>hiding complex code</strong> from the user, all the user needs to do is <strong><em>follow simple controls</em></strong>/if not, it won’t work and they won’t know why.</p><p>Press gas pedal - car moves forward <span data-name="car" data-type="emoji">🚗</span></p><p>Turn steering wheel - car turns</p><p>Press brake - car stops</p><p></p>
3
New cards

Types of programming language - programming languages can be complied or interpreted 🟢

Compiler-based language

A compiler takes the entire program in one go

The compiler is faster to execute therefore it’s better for production work

C, C++, C#, Scala, and Java

Interpreter-based language

An interpreter takes a single line of code at a time

Best suited for software development

Python, Ruby, PHP, and perl

4
New cards

Programming concepts 🟡

Variables - a storage location and an associated name that contains a quantity or information, that is, a value.

Amount - int num - string name

In some programming languages it is important to specify the type of value that will be stored in the variable which is known as the data type

Control structures - controls the flow of the program structure. They direct the programs flow depending on a decision, causing it to jump from one line to another or re run a section of code.

If (age >=18)

“a person can vote”

else

“A person cannot vote”

Data structures

A way of storing and organizing data in a way that it can be used efficiently. Lists, dictionary, arrays, etc,

To store a list of contacts for 100 people, instead of creating 100 variables, a data structure like a list or array can be used to store these contacts.

Syntax

Dines a set of rules that specify the combinations of symbols that are correctly structured statements or expressions in that language in order to assign values to variables

String name = “Jack Ford”

Symbols, characters, and words in a programming language that have special meanings and rules to enable the compiler to understand the instructions.