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