

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of questions and answers related to programming languages, covering topics such as programming paradigms, imperative/procedural programming, object-oriented programming, functional/applicative paradigms, and logic/declarative paradigms. It also includes questions about the history and development of various programming languages like fortran, pascal, c, c++, java, and lisp. This material is useful for students studying computer science or software engineering, offering a concise review of key concepts and historical context in programming language design and implementation. It serves as a valuable resource for exam preparation and understanding fundamental principles.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Why are most programming languages similar to each other? - Correct Answer--They share the same mathematical foundation (Boolean) -Similar Functionality -Based on the same hardware and instruction sets -Common design goals -Designers share their design experiences What is a programming Paradigm? - Correct Answer-A set of basic principles, concepts, and methods for how a computation or algorithm is expressed. Define the imperative/procedural programming paradigm. - Correct Answer-it expresses computation by fully specified and fully controlled manipulation of named data in a stepwise fashion. Describe the process of a imperative/procedural program. (Stored Program Concept - von Neumann machine) - Correct Answer--Data values are initially stored in variables -Variables are read from memory -Then manipulated in the ALU -Then stored back in the same or different variable locations -Finally, values are sent to the I/O devices Name some imperative/procedural programming languages. - Correct Answer--Fortran - Algol -Ada -Pascal -C Object-Oriented paradigm - Correct Answer-basically the same as imperative/procedural except that variables are put into classes of objects. Objects are the main building blocks of programs. -Smalltalk -C++ -Java -C# Describe the Functional/Applicative paradigm - Correct Answer--No concept of memory locations -Takes a number of values as input and produce a single return value -Return value cannot be stored to memory, it has to be used as final output or immediately as the parameter value of another function -Based on Lambda Calculus List some functional paradigms - Correct Answer--ML -SML -Lisp/Scheme
Describe the Logic/declarative paradigm - Correct Answer--Set of facts, rules and questions -The facts are given a rulebase, and if the question finds a match, we receive a yes for the answer. -Prolog Why was machine language difficult to use and remember? - Correct Answer- Instructions had to be written in binary What is the name of the type of language that makes use of mnemonics as a replacement for binary programming? - Correct Answer-Assembly language -MIPS What is an assembler? - Correct Answer-An assembler translates an assembly language program into machine language program (binary). What invention was credited to Grace Hopper? - Correct Answer-The first widely known compiler, called A0 in 1951. FORTRAN was developed by who and used what type of notation? - Correct Answer- Developed by John Backus crew, it used the Backus-Naur Form to define the syntax of a programming language. Define Structured programming - Correct Answer-a technique for organizing programs in a hierarchy of modules. Modules had a single entry and exit point, with control being passed without unconditional branches. (sequential, conditional branch, and iteration) Who developed Pascal? - Correct Answer-Niklaus Wirth between 1968 and 1970. Who developed C? - Correct Answer-invented and implemented by Dennis Ritchie at DEC between 1969 and 1973. First introduced Object-Oriented programming concepts were found in which language?