A computer is a programmable device that can store, retrieve, and process data using its central processing unit (CPU) and memory. An operating system manages the computer's activities and resources. There are different types of programming languages at different levels of abstraction from the hardware, including machine language, assembly language, procedural languages, and object-oriented languages. Event handling in programming allows a program to respond to user interactions like button clicks through listener interfaces.