programming languages test 1

programming languages test 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

For what new line of computers was PL/I designed?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (121)

Section 1

(50 cards)

For what new line of computers was PL/I designed?

Front

IBM system/360

Back

What is exception handling?

Front

process of responding to an exception during computation

Back

What features of SIMULA 67 are now important parts of some object-oriented languages?

Front

data abstraction (encapsulation?)

Back

What control flow statements were added to Fortran IV to get Fortran 77?

Front

logical loops control statements (if and else)

Back

What language was the first to support the three fundamental features of object oriented programming?

Front

small talk these features are encapsulation, inheritance and polymorphism

Back

What programming language has dominated scientific computing over the past 60 years?

Front

FORTRAN

Back

Chapter 2

Front

good luck

Back

orthogonality

Front

simplicity

Back

Why was the slowness of interpretation of programs acceptable in the early 1950s?

Front

Because of the lack of floating point hardware Floating-point arithmetic operations were done in software

Back

What are the three general methods of implementing a programming language?

Front

compilation ( a compiler transfers one language to another ), pure interpretation ( execute instructions directly) , and hybrid interpretation ( a combination of the 2 )

Back

Why were linguists interested in artificial intelligence in the late 1950s?

Front

natural lanu

Back

On what programming language was COBOL based?

Front

FLOW-MATIC

Back

How is the cost of compilers for a given language related to the design of the language?

Front

Back

Which version of Fortran was the first to have any sort of dynamic variables?

Front

Back

What two professional organizations together designed ALGOL 60?

Front

Back

What have been the strongest influences on programming language design over the past 60 years?

Front

machine architecture usability

Back

In what year did the COBOL design rpocess begin?

Front

1959

Back

What was the source of all of the control flow swtatements of Fotran I?

Front

704 instructions

Back

What two programming language definciencies were discovered as a result of the research in software devlopment in the 1970s?

Front

type checking control statements

Back

What data structure that appeared in COBOL originated with Plankalkul?

Front

heirachal data structures (records)

Back

Which version of Fortran was the first to have character string handling?

Front

Fortran 77

Back

Where was Lisp developed? By whom?

Front

John McCarthy and Marvin Minsky at MIT

Back

What was the primary application area of computers at the time Fortran was designed?

Front

scientific

Back

What is aliasing?

Front

Aliasing is having more than one reference variable that refer to the same object (for example, r and q in the previous question.)

Back

In what year was Plankalkul designed? In what year was that design published?

Front

1948 was published 1942-1945 designed?

Back

What does a linker do?

Front

Connects together compiled object files into a single program.

Back

Whic produces faster program ececutation, a compiler or a pure interpreter?

Front

compiler

Back

What are the three fundamental feartures of an object- oriented programming language?

Front

data abstraction, inheritance, and dynamic method binding ( polymorphism )

Back

What does it mean for a program to be reliable?

Front

should return specific output based on any input. Performs correctly under all circumstantions.

Back

Why is the von Neumann bottleneck important?

Front

It is an important problem concerning computer architecture. Processing speed is limited by the data transfer rate in computers. Only so much data at a time is able to be passed at a time.

Back

Why is type checking the parameters of a subprogram important?

Front

So operations are't done unexpectedly on incompatible types

Back

What role does the symbol table play in a compile?

Front

It holds details and resources associated with the program

Back

What language was designed to describe the syntax of ALHOL?

Front

Backus naur form BNF

Back

What are the advantages in implementing a language with a pure interpreter?

Front

Debugging operations can be more descriptive

Back

What missing language element of Algol 60 damaged its chances for widespread use?

Front

lack of input and output statements with formating

Back

In what version of AlGOL did block structure appear?

Front

ALGOL 60

Back

PL/I was designed to replace what two languages?

Front

COBOL and FORTRAN

Back

In what year was the Fortran design project begun?

Front

May 1954

Back

How were the psuedocodes of the early 1950s implemented?

Front

through machine code

Back

What user group was the target of the first version of Basic?

Front

Liberal Arts Students

Back

What hardware capability that first appeared in the IBM 704 computer strongly affected the evolution of programming languages? Explain why.

Front

Back

Speed coding was invented to overcome two significant shrotcomings of the computer hardware of the early 1950s. What were they?

Front

No index registers No floating-point hardware

Back

What organization was most responsible for early success of COBOL (in terms of extent of use)?

Front

DoD (Pentagon0

Back

What two common data structures were cinluded in Plankalkul

Front

arrays and records

Back

Why is readability important to writability?

Front

you write what you read and read what you write.

Back

In what way are Scheme and Common Lisp opposites of each other?

Front

Common LISP allows for static scoping and dynamic scoping Scheme only uses static scoping. Scheme is relatively small while common LISP is large and complex

Back

What is the name of the category of programming languages whose structure is dictacted by the von development in the 1970s

Front

imperative

Back

Why was Basic an important language in the eaerly 1980s?

Front

small memory usage it was easy to use

Back

What dialect of Lisp is used for introductory programming courses at some universities?

Front

Scheme

Back

What is an example of two language design criteria that are in direct conflict with each other?

Front

readability and writability

Back

Section 2

(50 cards)

What is an abstract class?

Front

Back

What are the concurrent program units of Ada called?

Front

tasks

Back

What is multiple inheritance?

Front

Back

What is an overriding method?

Front

Back

Chapter 3 / 12

Front

Back

What innovation of data structuring was introduced in ALGOL 68 but is often credited to Pascal?

Front

User defined data types

Back

Describe a situation where dynamic binding is a great advantage over static binding.

Front

Back

What is a nonprocedural language?

Front

You specify what you want but not how to get it.' SQL

Back

For what application area is JavaScript most iwdely used?

Front

Web services

Back

Why doe c++ include the features of C that are known to be unsafe?

Front

C++ was more about building on top of than reconstructing.

Back

What definciencyof the swithc statement of C is addressed with the changes maed by C# to that statement?

Front

Back

What operators in C were modeled on similar operators in ALGOL68?

Front

for and switch statements, in its assigning operators, and in its treatment of pointer

Back

What do the Ada and COBOL languages have in common?

Front

Both popularized by DoD

Back

What characteristic does Ruby share with Smaltalk?

Front

Object oriented languages

Back

What data structures are built ito Lua?

Front

tables

Back

What data structure does Python use in oplace of arrays?

Front

lists

Back

What populates the smalltalk world?

Front

objects

Back

What languages introduced the case statement?

Front

Algol-W

Back

What is a polymorphic variable?

Front

Back

What Ada construct provides support for abstract data types?

Front

packages

Back

What is the primary application for Objective-C?

Front

Mac OS X and iOS

Back

What is the message protocol of an object?

Front

Back

What is the output of an XSLT processor?

Front

Back

PHP's primary data structure is a combination of what two data structures from other languages?

Front

PHP's arrays are a combination of JAvaScript's arrays and Perl's hashes

Back

What characteristic of Ruby's arithmetic operators makes them unique among those of other languages?

Front

All operations are done via method calls

Back

What are the inputs to an XSLT procesor?

Front

Back

Where are servlets executed?

Front

web server

Back

What is the primary application area for which Ada was designed?

Front

embedded systems

Back

What three concepts are hte basic for objectt-oriented programming?

Front

Encapsulation Inheritance Polymorphism

Back

What characteristic of JAva is most evident in Javascript.

Front

Syntax

Back

To what is a JSP document conveted by a JSP processor?

Front

Back

What is the difference between a class variable and an instance variable?

Front

Back

What is a nesting clas?

Front

Back

What two languages was the original version of Perl meant to replace?

Front

Cobol and Fortran IV

Back

From where are Smalltalk objects allocated?

Front

Back

What is the primary platform on which C# is used?

Front

Back

What design criterion was used extensively in ALGOL 68?

Front

orthogonality

Back

What are two characteristics of C that make it less safe than PAscal?

Front

Incomplete type checking flexibility

Back

What is an avbstract method?

Front

Back

What array structure is included in C# but not in C. C++, or Java?

Front

non zero bound array. index can start < 0

Back

Is Lua normally compiled, purely interpreted, orimpurely interpreted?

Front

purely interpreted

Back

What is the relationship between JavaScript and PHP in terms of their use?

Front

Used for webservices

Back

What was the first application for Java?

Front

Sun Microsystems

Back

Describe briefly the seven design issues used in this chapter for object oriented languages

Front

Back

What are the two kinds of statements that populate a Prolog database?

Front

facts and rules

Back

How does the typing system of PHP and JavaScript differ from that of Java?

Front

PHP and Javascript are dynamic typing

Back

Describe the three characteristic features of object oriented languages?

Front

Back

What is a virtual method?

Front

Back

From what language does Objective-C borrow its syntax for method calls?

Front

smalltalk

Back

What element of the JSTL is related to a subprogram?

Front

Back

Section 3

(21 cards)

which category of C++ reference variables is always aliases

Front

Back

What are the advantages of named constants?

Front

Back

After language design and implementation, what are the four times binding can take place in a program?

Front

Back

What are the advantages and disadvantages of dynamic scoping?

Front

Back

Explain how smalltalk messages are bound to methods

Front

Back

Define binding and binding time

Front

Back

what are the advantages and disadvantages of dynamic type biding?

Front

Back

Some programming languages are typeless. What are the obvious advantages and disadvantages of having no types in a language?

Front

Back

What is the purpose of the let constructs in functional languages?

Front

Back

What are design issues for anmes?

Front

Back

Describe the encapsulation of an F# let inside a function and outside all functions.

Front

Back

How is a reference to a nonlocal variable in a static scoped program connected to its definition?

Front

Back

Which category of c++ reference variables is always aliases?

Front

Back

Write a simple assignment statement with one arithmetic operator in some language you know. For each component of the statement list the various bindings that are required to determine the semantics when the statement is executed

Front

Back

Define static binding and dynamic binding

Front

Back

what are the advantages and disadvantages of implicit declarations

Front

Back

What is the referencing environment of a statement?

Front

Back

what is the l value of a variable? what is the r value?

Front

Back

What is the referencing environment of a statement?

Front

Back

what is an alias?

Front

Back

Define static, stack dynamic, explicit heap dynamic and implicit heap dynamic variables What are their advantages and disadvantages

Front

Back