source and machine code
source and machine code
CLASSROOM RULES
★I will always focus during the lesson.
★I will always keep all the required
stationery handy.
★I will ask for help whenever needed.
★I will only speak when asked.
★I will keep myself positive and make
sure that I take the responsibility of
my own learning.
• S u c c e s s C r i t e r i a : I can accurately define source code and machine code .
• I can correctly identify examples of source code
• I can explain the basic relationship between source code and machine code.
code and machine code and Understand that code (both
source and machine) is a set of instructions
Today’s Thought
Starter Activity
"Human vs. Robot" Instructions:
•Activity: Divide the class into pairs.
•Pair 1:
•Write the steps to make a paper airplane or drawing a simple picture.
Pair 1: Write the instructions in everyday, conversational language (e.g.,
"Fold the paper in half, then fold the corners down...").
•Pair 2: Write the instructions in a very precise, step-by-step, almost
robotic language (e.g., "Rotate paper 90 degrees clockwise, fold edge A
to edge B...").
• S u c c e s s C r i t e r i a : I can accurately define source code and machine code .
• I can correctly identify examples of source code
• I can explain the basic relationship between source code and machine code.
code and machine code and Understand that code (both
•Programming Language: A formal language with a set of rules used to write instructions for a
computer.
•Compiler: A program that translates source code into machine code in one go, creating an
executable file.
•Interpreter: A program that executes source code line by line, without creating a separate
executable file.
•Assembler: A program that translates assembly language (a low-level language) into machine
code.
• S u c c e s s C r i t e r i a : I can accurately define source code and machine code .
• I can correctly identify examples of source code
• I can explain the basic relationship between source code and machine code.
code and machine code and Understand that code (both
High-Level Abstraction:
•Programming languages provide abstractions
that hide the complexities of the underlying
hardware.
•Binary Representation:
• Machine code is expressed in binary form,
consisting of sequences of 0s and 1s. This binary
representation directly corresponds to the
electrical signals that the CPU processes.
• High-Level Languages:
High-level programming languages (e.g., Python,
Java, C++) are designed to be more abstract and
easier for humans to use.
• S u c c e s s C r i t e r i a : I can accurately define source code and machine code .
• I can correctly identify examples of source code
• I can explain the basic relationship between source code and machine code.
code and machine code and Understand that code (both
source and machine) is a set of instructions
Video
2. Is machine code the same for every computer? Why or why not?
3. Give an example of a programming language that is typically compiled, and one that is typically interpreted..
•Answer: Source code is written in a human-readable programming language, while machine code is the low-level,
binary language that the computer's CPU directly executes.
2. Is machine code the same for every computer? Why or why not?
No, machine code is not the same for every computer. It's specific to the CPU architecture. Different CPUs (like Intel
x86 and ARM) have different instruction sets.
3. Give an example of a programming language that is typically compiled, and one that is typically interpreted..
•Compiled: C, C++, Go, Rust.
•Interpreted: Python, JavaScript, Ruby.
• S u c c e s s C r i t e r i a : I can accurately define source code and machine code .
• I can correctly identify examples of source code
• I can explain the basic relationship between source code and machine code.
code and machine code and Understand that code (both
source and machine) is a set of instructions
Lesson Outcome/Self-Reflection:
Have we achieved the learning
objectives?
I am a bit confused I can do the
I know I am not clear on this
and need more help tasks confidently