Chapter 1 Flashcards
What is a programming language?
What are the different levels of programming languages?
hardware > machine language > assembly language > high-level language
What is a programming paradigm?
basic assumptions, ways of thinking, or methodologies that are commonly accepted by members of a group or community
Give four examples of programming paradigms.
object-oriented, imperative, logic, and functional
How is a program written in machine language?
How are machine language instructions processed by the CPU?
Is it possible to have conditions and loops in code written in machine language?
no
How is a program written in assembly language different from a program written in machine language?
machine language is composed of 1’s and 0’s only
assembly language uses characters and numbers
Is code written in assembly language executed in sequential order?
What is needed to execute a program in assembly language?
an assembler
What is the function of an assembler?
What are the three elements that every single high-level programming language is able to handle?
All high-level programming languages require that a variable be defined with a specific data type. (T or F)
What is the function of a compiler?
Is the compiler the one running the program?
no
How did punch cards work? (bonus)
What are the registers in the CPU? How do they play a role in the execution of instructions in a computer? (bonus)
When a value is stored in a variable, what actually happens in the computer? Where is it stored and how does the computer refer to the place it is stored?
Are there languages that support more than one paradigm?
yes
Give two examples of object-oriented programming languages.
C++ and Java
What is the programming paradigm of Scheme?
functional?
What is the key idea of procedural programming?
What is the key idea of object-oriented programming?
What is the key idea of functional programming?
What is the key idea of logic programming?
What are the main features of procedural programming?
What are the main features of object-oriented programming?
What are the main features of functional programming?
What are the main features of logic programming?
Inheritance is a feature of imperative programming. (T or F)
F
Instance variables are available in imperative programming. (T or F)
What is a language?
What is a high-level programming language?
What is a low-level programming language?
Is Java low-level or high-level?
high-level