Programming Languages Exam Questions and Answers, Exams of Advanced Education

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

2025/2026

Available from 11/11/2025

Favorgrades
Favorgrades 🇺🇸

2.6

(5)

13K documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE 240 Selgrad Exam With 100%
Correct Answers 2025/2026
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
pf3

Partial preview of the text

Download Programming Languages Exam Questions and Answers and more Exams Advanced Education in PDF only on Docsity!

CSE 240 Selgrad Exam With 100%

Correct Answers 2025/

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?

  • Correct Answer-Simula, designed by Ole-Johan Dahl and Kristen Nygaard at NCC between 1962- What language was the successor to Simula? - Correct Answer-Smalltalk, designed at Xerox led by Alan Kay. Who developed C++? - Correct Answer-Developed by Bjarne Stroustrup in 1980 at Bell Labs Who developed Java? - Correct Answer-Developed at Sun Microsystems by James Gosling, Patric Naughton, Chris Warth, Ed Frank, and mike Sheridan.