Skip to content

Flashcards

Card 1

Q: What is int? A: A type for whole numbers.

Card 2

Q: What is a list? A: An ordered, changeable collection.

Card 3

Q: What does lambda do? A: It creates a small anonymous function.

Card 4

Q: What is a higher-order function? A: A function that takes or returns another function.

Card 5

Q: What is a generator? A: An iterable that produces values on demand.

Card 6

Q: What is a closure? A: A function that remembers outer variables.

Card 7

Q: What is type discipline? A: The rules a language uses for checking types.

Card 8

Q: What is a type hint? A: Optional syntax that describes a value's intended type.

Card 9

Q: What is a dataclass? A: A convenient way to define simple data objects.

Card 10

Q: What is a concrete type? A: A fully known specific type.

Card 11

Q: What is recursion? A: A function calling itself on a smaller input.

Card 12

Q: What is operational semantics? A: A step-by-step description of program execution.

Card 13

Q: What is a protocol? A: A description of shared behavior.

Card 14

Q: What is polymorphism? A: One piece of code working with many types.

Card 15

Q: What does map do? A: It applies a function to each item.

Card 16

Q: What does dict store? A: Key-value pairs.

Built from Markdown with VitePress.