SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice question 19 of 25
A programmer is writing code using C. Which paradigm could the programmer be using?
Full set: 137 questionsThe C programming language is fundamentally a procedural programming language. This paradigm focuses on procedures or functions that perform operations on data. C is also a statically-typed language, meaning that the data type of every variable must be declared at compile time, and type checking is performed before the program is executed. The type of a variable is fixed and cannot change during runtime. This combination of a procedural paradigm with static typing is a defining characteristic of C.
A. C is not a dynamically-typed language; variable types are fixed at compile time.
C. C is primarily procedural, not functional. It also does not use dynamic types.
D. While C can be used to write event-driven applications, its core paradigm is procedural, not inherently event-driven.
1. Kernighan, B. W., & Ritchie, D. M. (1988). The C Programming Language (2nd ed.). Prentice Hall. Chapter 1, "A Tutorial Introduction," introduces C through its procedural nature with functions. Chapter 2, "Types, Operators, and Expressions," details its static type system.
2. ISO/IEC 9899:2018. (2018). Information technology — Programming languages — C. Section 6.2.5, "Types," specifies the static nature of types in the C standard.
3. Stanford University. (n.d.). CS107: Programming Paradigms. Course materials describe C as a procedural language and contrast its static type system with the dynamic types of languages like Python.
Keep practicing
Take the free SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice questions
- Question 1Which characteristic distinguishes a markup language from other languages?
- Question 2A program calculates the average miles per gallon given miles traveled and gas consumed H…
- Question 5Which characteristic specifically describes an object-oriented language?
- Question 6Which is one characteristic of an object-oriented language that is not a characteristic o…
- Question 7Which operation should be used to check if the difference of two values is greater than 1?
- Question 9A program allows the user to play a game. At the end of each game, the program asks the u…
