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