Program Language Systems - Chapter 8

Program Language Systems - Chapter 8

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

How are computations in functional programming languages accomplished?

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

4 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

How are computations in functional programming languages accomplished?

Front

By evaluating expressions and functions

Back

What is the general form of a two-way selector?

Front

if control_expression then clause else clause

Back

What is a control structure?

Front

A control statement and the collection of statements whose execution it controls

Back

How are computations in imperative-language programs accomplished?

Front

By evaluating expressions and assigning the resulting values to variables

Back

In fact, it was proven that all algorithms that can be expressed by flowcharts can be coded in a programming language with only _____ control statements.

Front

Two

Back

How are control expressions specified if the then reserved word (or some other syntactic marker) is not used to introduce the then clause?

Front

In parentheses

Back

What are the two additional linguistic mechanisms that are necessary to make the computations in programs flexible and powerful?

Front

Some means of selecting among alternative control flow paths (of statement execution) and some means of causing the repeated execution of statements or sequences of statements

Back

In functional programming languages, what are the flow of execution among the expressions and functions controlled by?

Front

Other expressions and functions, although some of them are similar to the control statements in the imperative languages

Back

What are the two categories of selection statements?

Front

Two-way and n-way

Back

What does a selection statement provide?

Front

The means of choosing between two or more execution paths in a program

Back