Multiple choice technology programming languages

12.) What is a socket

  1. a) A port to connect printer

  2. b) A port to connect keyboard

  3. c) An abstraction to pass data across processes

  4. d) A hardware device

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A socket is an abstraction for inter-process communication (IPC) that allows processes to pass data to each other, whether on the same machine or across a network. It's a software endpoint, not a physical hardware port like printer or keyboard connections. Sockets support various communication protocols including TCP and UDP.