Free ebook on logic programming fundamentals, algorithms, data types, control structures, OOP, data structures, and complexity.
Free ebook + audiobook content
-
3. Data Types
+ Exercise: What are the most common data types in programming languages and how are they used? 3 minutes -
3.1. Data Types: Variables
+ Exercise: What are the most common data types that can be stored in a variable in programming? 3 minutes -
3.2. Data Types: Primitive Data Types
+ Exercise: What are some of the more common primitive data types found in most modern programming languages? 3 minutes -
3.3. Data Types: Composite data types
+ Exercise: Which of the following statements about composite data types in programming is true? 2 minutes -
3.4. Data Types: Declaration and assignment of variables
+ Exercise: What is a variable declaration in programming and how is it done? 3 minutes -
3.5. Data Types: Arithmetic Operators
+ Exercise: What are the most common data types in programming and how are they defined? 3 minutes -
3.6. Data Types: Logical Operators
+ Exercise: What is the role of logical operators in programming and how do they work? 3 minutes -
3.7. Data Types: Conditional Structures
+ Exercise: Which of the following statements correctly describes the IF statement in programming? 3 minutes -
3.8. Data Types: Repeating Structures
+ Exercise: Which of the following is a type of looping structure in programming and how does it work? 3 minutes -
3.9. Data Types: Functions
+ Exercise: What are the two main types of functions in programming and how are they defined? 3 minutes -
3.10. Data Types: Arrays
+ Exercise: What are Arrays in Logic Programming and how are they used? 3 minutes -
3.11. Data Types: Strings
+ Exercise: What is a string in programming and how is it represented? 3 minutes -
3.12. Data Types: File Manipulation
+ Exercise: What is the difference between manipulating text files and manipulating binary files in programming? 3 minutes -
3.13. Data Types: Error Handling
+ Exercise: What is the difference between syntax errors, logic errors and runtime errors? 4 minutes -
3.14. Data Types: Sorting Algorithms
+ Exercise: Which of the following is a correct description of data types in programming? 3 minutes -
3.15. Data Types: Search Algorithms
+ Exercise: Which of the following statements about search algorithms is true? 3 minutes -
3.16. Data Types: Recursion
+ Exercise: What is recursion in computer science and how does it work? 3 minutes
-
4. Variables and Constants
+ Exercise: What is the main difference between variables and constants in programming? 3 minutes -
5. Arithmetic Operators
+ Exercise: What are arithmetic operators in programming? 3 minutes -
6. Relational Operators
+ Exercise: What does the relational equality operator (==) do in programming? 4 minutes -
6.1. Relational Operators: Equality
+ Exercise: What is the main function of the equality operator in programming logic? 3 minutes -
6.2. Relational Operators: Inequality
+ Exercise: What does the inequality operator do in programming logic? 3 minutes -
6.3. Relational Operators: Greater than
+ Exercise: What is the function of the "greater than" operator in programming? 3 minutes -
6.4. Relational Operators: Greater than or equal to
+ Exercise: What is the role of the 'greater than or equal to' operator in programming and how is it used? 3 minutes -
6.5. Relational Operators: Less than
+ Exercise: What does the 'less than' (<) relational operator do in programming logic? 3 minutes -
6.6. Relational Operators: Less than or equal to
+ Exercise: What is the role of the "less than or equal to" relational operator in programming? 3 minutes -
7. Logical Operators
+ Exercise: Which of the following logical operators returns true only if both operands are false? 3 minutes -
7.1. Logical Operators: AND Operator
+ Exercise: What is the role of the AND logical operator in programming? 3 minutes -
7.2. Logical Operators: OR Operator
+ Exercise: What is the function of the logical OR operator in a programming language? 3 minutes -
7.3. Logical Operators: NOT Operator
+ Exercise: What does the NOT logical operator do in programming? 3 minutes -
7.4. Logical Operators: Operator Precedence
+ Exercise: What is the order of precedence of logical operators in programming logic? 3 minutes -
7.5. Logical Operators: Examples of using logical operators
+ Exercise: What is the role of logical operators in programming and how do they work? 3 minutes -
8. Decision Structures (IF, ELSE)
+ Exercise: What is the main role of the IF and ELSE decision structures in programming? 3 minutes -
9. Repetition Structures (FOR, WHILE)
+ Exercise: What is the main difference between FOR and WHILE looping structures in programming logic? 3 minutes
-
10. Vectors and Matrices
+ Exercise: What are vectors and matrices in logic programming and how are they used? 3 minutes -
11. Functions and Procedures
+ Exercise: What is the main difference between functions and procedures in programming? 3 minutes -
12. Recursion
+ Exercise: What is recursion in programming and how can it be used? 3 minutes -
13. String Manipulation
+ Exercise: Which of the following statements about string manipulation in Python is true? 3 minutes -
14. Files and Streams
+ Exercise: What is the role of files and streams in programming? 3 minutes -
15. Exceptions and Error Handling
+ Exercise: What is an exception in the context of programming? 3 minutes
-
16. Introduction to Object Oriented Programming
+ Exercise: What are the four fundamental principles of Object Oriented Programming (OOP)? 3 minutes -
17. Classes and Objects
+ Exercise: What is a class in object-oriented programming? 3 minutes -
17.1. Classes and Objects: Introduction to Classes and Objects
+ Exercise: What are classes and objects in object-oriented programming (OOP)? 3 minutes -
17.2. Classes and Objects: Attributes and methods of a class
+ Exercise: Which of the following statements is true about object-oriented programming? 3 minutes -
17.3. Classes and Objects: Instantiating Objects
+ Exercise: What is the purpose of a constructor in object-oriented programming? 3 minutes -
17.4. Classes and Objects: Constructors
+ Exercise: What is a constructor in object-oriented programming and what is its function? 3 minutes -
17.5. Classes and Objects: Encapsulation
+ Exercise: What is encapsulation in object-oriented programming? 2 minutes -
17.6. Classes and Objects: Inheritance
+ Exercise: What does inheritance allow programmers in object-oriented programming (OOP)? 2 minutes -
17.7. Classes and Objects: Polymorphism
+ Exercise: What is Polymorphism in Object Oriented Programming (OOP)? 3 minutes -
17.8. Classes and Objects: Association between classes
+ Exercise: Which of the following is a correct example of a type of association between classes in object-oriented programming? 3 minutes -
17.9. Classes and Objects: Composition of objects
+ Exercise: What is object composition in object-oriented programming? 3 minutes -
17.10. Classes and Objects: Static Methods
+ Exercise: What are static methods in object-oriented programming and how are they used? 3 minutes -
17.11. Classes and Objects: Class Methods
+ Exercise: What are class methods in object-oriented programming and how are they used? 3 minutes -
17.12. Classes and Objects: Method Overloading
+ Exercise: What is method overloading in object-oriented programming? 3 minutes -
17.13. Classes and Objects: Overriding Methods
+ Exercise: What is method overriding in object-oriented programming and how does it work? 3 minutes -
18. Inheritance and Polymorphism
+ Exercise: What are the four fundamental pillars of Object Oriented Programming (OOP) and what is the role of inheritance and polymorphism in this context? 3 minutes -
18.1. Inheritance and Polymorphism: Inheritance
+ Exercise: What is inheritance and polymorphism in object-oriented programming (OOP)? 3 minutes -
18.2. Inheritance and Polymorphism: Polymorphism
+ Exercise: What is polymorphism in object-oriented programming? 2 minutes
-
19. Encapsulation
+ Exercise: What is encapsulation in object-oriented programming (OOP)? 2 minutes -
19.1. Encapsulation: Variables
+ Exercise: What is encapsulation in object-oriented programming and what is the role of variables in this concept? 3 minutes -
19.2. Encapsulation: Data Types
+ Exercise: What is encapsulation in object-oriented programming (OOP)? 3 minutes -
19.3. Encapsulation: Operators
+ Exercise: What is the role of operators in encapsulation in object-oriented programming? 3 minutes -
19.4. Encapsulation: Control Structures
+ Exercise: What is the role of encapsulation in control structures in object-oriented programming? 3 minutes -
19.5. Encapsulation: Functions
+ Exercise: What is encapsulation in functions in programming and why is it important? 4 minutes -
19.6. Encapsulation: Arrays
+ Exercise: What is the principle of encapsulation in object-oriented programming and how can it be applied using arrays? 3 minutes -
19.7. Encapsulation: Objects
+ Exercise: Which of the following is a fundamental principle of object-oriented programming that helps maintain data integrity, promote code modularity, and facilitate code reuse? 4 minutes -
19.8. Encapsulation: Encapsulation
+ Exercise: What is encapsulation in object-oriented programming (OOP)? 3 minutes -
19.9. Encapsulation: Inheritance
+ Exercise: Which of the following Object Oriented Programming (OOP) concepts allows you to create a new class that inherits the properties and methods of an existing class? 2 minutes -
19.10. Encapsulation: Polymorphism
+ Exercise: What is polymorphism in object-oriented programming (OOP) and what are its main benefits? 3 minutes -
19.11. Encapsulation: Error Handling
+ Exercise: What is encapsulation in object-oriented programming and how does it relate to error handling? 3 minutes -
19.12. Encapsulation: Algorithms
+ Exercise: What is encapsulation in Object Oriented Programming (OOP)? 3 minutes -
19.13. Encapsulation: Data Structure
+ Exercise: What is the main benefit of encapsulation in object-oriented programming? 3 minutes -
19.14. Encapsulation: Complexity of algorithms
+ Exercise: What is the role of encapsulation in object-oriented programming and how does it relate to the complexity of algorithms? 3 minutes -
19.15. Encapsulation: Object Oriented Programming
+ Exercise: Which of the following is an accurate description of encapsulation in Object Oriented Programming? 3 minutes
-
20. Data Structures (Lists, Stacks, Queues)
+ Exercise: Which of the following statements correctly describes the data structure called "queue"? 3 minutes -
21. Sorting Algorithms
+ Exercise: Which of the following sorting algorithms works by dividing the list to be sorted into two parts: the sorted part and the unsorted part, where initially the sorted part is empty and the unsorted part contains all the elements? 3 minutes -
22. Search Algorithms
+ Exercise: What is the main difference between linear and binary search algorithms in programming? 3 minutes -
23. Complexity of Algorithms
+ Exercise: What is the complexity of an algorithm and how is it expressed? 3 minutes -
24. Concurrent Programming
+ Exercise: What is concurrent programming and what are its challenges? 3 minutes -
25. Parallel Programming
+ Exercise: What is parallel programming and what are its benefits and challenges? 3 minutes -
26. Distributed Programming
+ Exercise: What is distributed programming? 3 minutes
About the free ebook with audio
Complete Logic Programming Course for Beginners
Build a strong programming foundation with this free online ebook for aspiring developers. It introduces logic programming through the essential ideas that help computers solve problems: algorithms, data, conditions, repetition, functions, and structured program design.
Learn to think like a programmer
Start by understanding how algorithms turn a problem into clear, repeatable steps. Explore variables, constants, primitive and composite data types, arithmetic and relational operators, and logical expressions. The ebook explains how these elements work together to control a program's behavior.
Practice the reasoning behind conditional decisions, loops, arrays, strings, file operations, exceptions, sorting, searching, and recursion. These topics help you write programs that handle information accurately and respond reliably to different situations.
Move from core logic to object-oriented design
After mastering programming fundamentals, progress to object-oriented programming. Learn how classes and objects organize code, then examine attributes, methods, constructors, encapsulation, inheritance, polymorphism, associations, composition, static methods, method overloading, and method overriding.
Useful skills for continued study
- Develop algorithmic reasoning and problem-solving habits.
- Understand control structures and reusable functions.
- Work with common data structures such as lists, stacks, queues, vectors, and matrices.
- Recognize the role of algorithm complexity in efficient software.
- Discover introductory concepts in concurrent, parallel, and distributed programming.
Whether you are preparing for a first programming language or strengthening your computer science basics, this ebook provides a clear path from fundamental logic to broader software development concepts.
What logic programming concepts does this ebook explain?
It covers algorithms, variables, operators, conditions, loops, functions, recursion, and data handling.
Does the ebook cover object-oriented programming concepts?
Yes. It explains classes, objects, constructors, encapsulation, inheritance, and polymorphism.
Are sorting and search algorithms included in the ebook?
Yes. It introduces sorting, searching, and algorithm complexity concepts.
This ebook/audiobook includes:
4 hours and 43 minutes of audio content
Digital certificate of course completion (Free)
Exercises to train your knowledge
100% free, from content to certificate
Ready to get started?
In the app you will also find...
Over 5,000 free courses
Programming, English, Digital Marketing and much more! Learn whatever you want, for free.
Study plan with AI
Our app's Artificial Intelligence can create a study schedule for the course you choose.
From zero to professional success
Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.
You can also use the QR Code or the links below.








