Why Programming Trivia Matters
Whether you're preparing for a technical interview, a coding competition, or just love computer science โ programming quiz questions test your foundational knowledge of languages, algorithms, and computing history.
Programming Languages โ Key Facts
- ๐ Python โ Created by Guido van Rossum in 1991. Most popular language for AI, data science, and automation.
- ๐ JavaScript โ Created by Brendan Eich in 1995 in just 10 days. The only language that runs natively in browsers.
- โ Java โ Created by James Gosling at Sun Microsystems in 1995. "Write once, run anywhere."
- ๐ฆ Rust โ Created by Mozilla in 2010. Known for memory safety without garbage collection.
- ๐ PHP โ Created by Rasmus Lerdorf in 1994. Powers over 75% of all websites.
- ๐ Ruby โ Created by Yukihiro Matsumoto in 1995. Famous for Ruby on Rails framework.
Computer Science Fundamentals
Data Structures
- ๐ Array โ Fixed-size sequential collection; O(1) access by index.
- ๐ Linked List โ Dynamic size; O(n) access; O(1) insertion at head.
- ๐ฆ Stack โ LIFO (Last In, First Out); used for function calls and undo operations.
- ๐ Queue โ FIFO (First In, First Out); used for task scheduling.
- ๐ณ Binary Tree โ Hierarchical structure; each node has at most 2 children.
- #๏ธโฃ Hash Table โ Key-value pairs; O(1) average lookup; used in dictionaries/objects.
Algorithms
- ๐ Binary Search โ O(log n); searches sorted arrays by halving the search space.
- ๐ซง Bubble Sort โ O(nยฒ); simple but inefficient; rarely used in production.
- โก Quick Sort โ O(n log n) average; most commonly used sorting algorithm in practice.
- ๐ Merge Sort โ O(n log n) guaranteed; used when stability is required.
- ๐บ๏ธ Dijkstra's Algorithm โ Finds shortest path in weighted graphs.
Web Development Facts
- ๐ HTML โ HyperText Markup Language; structures web content (not a programming language).
- ๐จ CSS โ Cascading Style Sheets; styles web pages.
- โ๏ธ HTTP โ HyperText Transfer Protocol; port 80. HTTPS uses port 443 with SSL/TLS encryption.
- ๐ก REST โ REpresentational State Transfer; architectural style for APIs using HTTP methods (GET, POST, PUT, DELETE).
- ๐ WebSocket โ Full-duplex communication protocol for real-time applications.
Computing History
- ๐ป First computer: ENIAC (1945) โ weighed 30 tonnes, filled a room.
- ๐ Internet invented: ARPANET went live in 1969; Tim Berners-Lee invented the WWW in 1989.
- ๐ต First iPhone: Released by Apple on June 29, 2007 โ revolutionized mobile computing.
- ๐ค First AI program: Logic Theorist (1956) by Allen Newell and Herbert Simon.
- ๐ง Linux kernel: Created by Linus Torvalds in 1991 โ powers most servers and Android phones.
50 Programming Quiz Questions
Languages
- What does HTML stand for? (HyperText Markup Language)
- Which language runs in web browsers natively? (JavaScript)
- What does CSS stand for? (Cascading Style Sheets)
- Who created Linux? (Linus Torvalds, 1991)
- What does SQL stand for? (Structured Query Language)
Concepts
- What is OOP? (Object-Oriented Programming โ using classes and objects)
- What is a function that calls itself? (A recursive function)
- What does RAM stand for? (Random Access Memory)
- What is the binary representation of the number 10? (1010)
- What is a Boolean? (A data type with only two values: true or false)