Programming Languages and Code
From idea to code
Why programming languages exist
Computers understand binary, but humans need a more readable way to write instructions. Programming languages help people express algorithms in a way computers can translate and execute.
Source code
The text a programmer writes is called source code. It may later be translated by a compiler or interpreter into instructions the computer can follow.
Programming is precision writing
Small wording or punctuation changes can change what a program does, so code must be written carefully.
What is source code?
Source code is the human-readable program text.
Correct answer: The text written in a programming language
Why do humans use programming languages instead of writing binary directly?
Languages provide structure and readability.
Correct answer: Programming languages are easier for humans to read, write, and debug
Programming language terms
Which term refers to the rules for writing valid code?
Syntax is the grammar of a programming language.
Correct answer: Syntax
What is one advantage of source code being human-readable?
Readable code is easier to maintain and understand.
Correct answer: It makes programs easier to create and debug