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