An ordered set of instructions. It reads input, follows rules, and produces output.
Loading...
Loading...
Workspace
structured programming education and classic application foundations
Definition first
Pascal is a programming language for writing exact instructions, often used for structured programming education and classic application foundations. Start with one mental model: input goes through steps and becomes output.
main.pasRun fpc main.pas && ./mainHabit Write declarations clearly and keep begin end blocks balancedAn ordered set of instructions. It reads input, follows rules, and produces output.
A value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
Free Pascal is the place that actually runs code from main.pas.
First readable code
writeln(42);
Output 42Language lineage
See where Pascal comes from, which languages feel close, and what to learn next.
Zero base path
Question bank
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Pascal question 1. Choose the statement that matches printing a value.
Pascal question 2. Choose the statement that matches naming a value.
Pascal question 3. Choose the statement that matches reusable function.
Pascal question 4. Choose the statement that matches basic collection.
Pascal question 5. Choose the statement that matches printing a value.
Pascal question 6. Choose the statement that matches naming a value.
Pascal question 7. Choose the statement that matches reusable function.
Pascal question 8. Choose the statement that matches basic collection.
Pascal question 9. Choose the statement that matches printing a value.
Pascal question 10. Choose the statement that matches naming a value.
Pascal question 11. Choose the statement that matches reusable function.
Pascal question 12. Choose the statement that matches basic collection.
Pascal question 13. Choose the statement that matches printing a value.
Pascal question 14. Choose the statement that matches naming a value.
Pascal question 15. Choose the statement that matches reusable function.
Pascal question 16. Choose the statement that matches basic collection.
Pascal question 17. Choose the statement that matches printing a value.
Pascal question 18. Choose the statement that matches naming a value.
Multiple choice
Pascal question 1. Choose the statement that matches printing a value.
writeln(42);
Reference
fpc main.pas && ./mainentry point output syntax writeln
writeln(42);
variables assignment types var
var total: integer; begin total := 42; writeln(total); end.
function collection Array
function Add(a, b: integer): integer; begin Add := a + b; end; var scores: array[1..2] of integer; begin writeln(2); end.