Common Data Types in Programming Languages

Table of Contents

1. Types in Programming Languages

1.1. Integer   drill programming_types

1.1.1. Front

What is an Integer type in programming?

1.1.2. Back

A data type that represents whole numbers without fractional parts. Examples: -5, 0, 42

1.2. Float   drill programming_types

1.2.1. Front

What is a Float type in programming?

1.2.2. Back

A data type that represents numbers with decimal points or in exponential notation. Examples: 3.14, -0.001, 2.5e-4

1.3. String   drill programming_types

1.3.1. Front

What is a String type in programming?

1.3.2. Back

A data type that represents a sequence of characters. Examples: "Hello, World!", "OpenAI", "12345"

1.4. Boolean   drill programming_types

1.4.1. Front

What is a Boolean type in programming?

1.4.2. Back

A data type that represents two possible values: true or false. Used for logical operations and control flow.

1.5. Array   drill programming_types

1.5.1. Front

What is an Array type in programming?

1.5.2. Back

A data structure that stores a collection of elements of the same type in a contiguous block of memory. Elements can be accessed by their index. Example: [1, 2, 3, 4, 5]

1.6. List   drill programming_types

1.6.1. Front

What is a List type in programming?

1.6.2. Back

A data structure that stores a collection of elements, often of different types. Unlike arrays, lists can dynamically grow or shrink in size. Example: [1, "two", 3.0, true]

1.7. Dictionary/Hash   drill programming_types

1.7.1. Front

What is a Dictionary or Hash type in programming?

1.7.2. Back

A data structure that stores key-value pairs, allowing fast lookup of values based on their unique keys. Example: {"name": "Alice", "age": 30, "city": "New York"}

1.8. Set   drill programming_types

1.8.1. Front

What is a Set type in programming?

1.8.2. Back

A data structure that stores a collection of unique elements without any specific order. Useful for membership testing and eliminating duplicate entries. Example: {1, 2, 3, 4, 5}