An ordered set of instructions. It reads input, follows rules, and produces output.
Workspace
Delphi
Windows desktop business apps Pascal style OOP and rapid UI tools
Definition first
What Delphi means
Delphi is a programming language for writing exact instructions, often used for Windows desktop business apps Pascal style OOP and rapid UI tools. Start with one mental model: input goes through steps and becomes output.
Project.dprRun Compile in Delphi IDEHabit Keep form events thin and move logic into testable unitsA 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.
Delphi or Free Pascal is the place that actually runs code from Project.dpr.
First readable code
Program output
entry point output syntax WritelnWriteln(42);
Output 42Language lineage
Delphi family tree
See where Delphi comes from, which languages feel close, and what to learn next.
desktop apps, forms, and legacy business tools
Zero base path
Question bank
Search before practice
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Delphi practice 1
Delphi question 1. Choose the statement that matches printing a value.
Delphi practice 2
Delphi question 2. Choose the statement that matches naming a value.
Delphi practice 3
Delphi question 3. Choose the statement that matches reusable function.
Delphi practice 4
Delphi question 4. Choose the statement that matches basic collection.
Delphi practice 5
Delphi question 5. Choose the statement that matches printing a value.
Delphi practice 6
Delphi question 6. Choose the statement that matches naming a value.
Delphi practice 7
Delphi question 7. Choose the statement that matches reusable function.
Delphi practice 8
Delphi question 8. Choose the statement that matches basic collection.
Delphi practice 9
Delphi question 9. Choose the statement that matches printing a value.
Delphi practice 10
Delphi question 10. Choose the statement that matches naming a value.
Delphi practice 11
Delphi question 11. Choose the statement that matches reusable function.
Delphi practice 12
Delphi question 12. Choose the statement that matches basic collection.
Delphi practice 13
Delphi question 13. Choose the statement that matches printing a value.
Delphi practice 14
Delphi question 14. Choose the statement that matches naming a value.
Delphi practice 15
Delphi question 15. Choose the statement that matches reusable function.
Delphi practice 16
Delphi question 16. Choose the statement that matches basic collection.
Delphi practice 17
Delphi question 17. Choose the statement that matches printing a value.
Delphi practice 18
Delphi question 18. Choose the statement that matches naming a value.
Multiple choice
Delphi practice 1
Delphi question 1. Choose the statement that matches printing a value.
Writeln(42);
Reference
Patterns for Project.dpr
Compile in Delphi IDEentry point output syntax Writeln
Program output
Writeln(42);
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types var
Values and names
var total: Integer; begin total := 42; Writeln(total); end.
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection Array
Functions and collections
function Add(a, b: Integer): Integer; begin Result := a + b; end; var scores: array[0..1] of Integer; begin Writeln(Length(scores)); end.
- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks