ThatQuiz Test Library Take this test now
C (programming language) - Quiz
Contributed by: Collins
  • 1. When was the C programming language created?
A) 1980
B) 1989
C) 1965
D) 1972
  • 2. Who created the C programming language?
A) Alan Turing
B) Dennis Ritchie
C) Ken Thompson
D) Bjarne Stroustrup
  • 3. What language was C developed as a successor to?
A) Fortran
B) B
C) A
D) Assembly
  • 4. At which institution was C initially developed?
A) Bell Labs
B) Stanford University
C) Xerox PARC
D) MIT
  • 5. What is the primary use of C in operating systems?
A) Kernels
B) Web browsers
C) Graphical user interfaces
D) Office suites
  • 6. Which organization has standardized C since 1989?
A) Internet Engineering Task Force
B) American National Standards Institute
C) IEEE
D) World Wide Web Consortium
  • 7. What type of programming language paradigm does C belong to?
A) Strictly object-oriented
B) Imperative procedural
C) Purely functional
D) Logic-based
  • 8. How are statements terminated in C?
A) Periods
B) Colons
C) Semicolons
D) Newlines
  • 9. How are blocks grouped in C source code?
A) Indentation
B) Curly braces
C) Parentheses
D) Square brackets
  • 10. Where must all executable code be contained in C?
A) Top-level statements
B) Global scopes
C) Classes
D) Functions
  • 11. How are parameters normally passed in C?
A) By value
B) By name
C) By need
D) By reference
  • 12. How is pass-by-reference achieved in C?
A) With references
B) With keywords
C) With pointers
D) With aliases
  • 13. What kind of type system does C have?
A) Static
B) Duck
C) Dynamic
D) Inferred
  • 14. How is run-time polymorphism achieved in C?
A) Using classes
B) Using function pointers
C) Using virtual inheritance
D) Using interfaces
  • 15. How are arrays defined and accessed in C?
A) Angle-bracket notation
B) Curly-brace notation
C) Parentheses notation
D) Square-bracket notation
  • 16. What do unions support in C?
A) Overlapping members
B) Operator overloading
C) Garbage collection
D) Inheritance
  • 17. What type does C lack a dedicated version of?
A) String type
B) Character type
C) Integer type
D) Array type
  • 18. What kind of strings does C provide syntax for?
A) Length-prefixed strings
B) Reference strings
C) Immutable strings
D) Null-terminated strings
  • 19. What is included in C for macro definition and conditional compilation?
A) The C preprocessor
B) The C compiler
C) The linker
D) The standard library
  • 20. How is modularity supported in C?
A) Using modules
B) Processing files separately
C) Using namespaces
D) Using packages
  • 21. Which external library provides object orientation for C?
A) POSIX library
B) Boehm garbage collector
C) Standard library
D) GLib Object System
  • 22. Which external library provides garbage collection for C?
A) GLib Object System
B) Malloc library
C) ANSI collector
D) Boehm garbage collector
  • 23. In which index has C typically ranked as the most or second-most popular language since 2000?
A) TIOBE index
B) Stack Overflow Index
C) GitHub Octoverse
D) PYPL index
  • 24. What book served for many years as the de facto standard for C?
A) Modern C
B) The C Standard
C) The C Programming Language
D) Programming in C
  • 25. Which organizations jointly standardize C after ANSI?
A) ISO and IEC
B) ANSI and W3C
C) IEEE and W3C
D) GNU and FSF
Created with That Quiz — the site for test creation and grading in math and other subjects.