What innovation introduced in algol68 is credited to pascal

Assignment Help Programming Languages
Reference no: EM13947649

1. What does the term aliasing mean?

a. Having two names for the same memory cell

b. Having two referencing methods for the same memory cell

c. Both a and b.

d. Neither a nor b.

2. The most rigorous means of describing the meaning of a program is called _________ semantics.

a. dynamic

b. denotational

c. static

d. axiomatic

3. Lexical analysis is separated from syntax analysis because:

a. lexical analysis is less complex.

b. optimizing the lexical analyzer provides more benefits than optimizing the syntax analyzer.

c. lexical analysis has to perform input/output operations and, therefore, is platform dependent.

d. all of the above.

4. The output of _____ compilers must be linked to operating system programs, especially __________ routines.

a. all; input/output

b. all; device drivers

c. some; input/output

d. some; device drivers

5. The extreme opposite of a compiler is known as a(n):

a. interpreter.

b. translator.

c. linker.

d. hybrid.

6. The following list contains steps that may/may not be part of the process of compilation. Place the steps in the correct order that are part of the compilation process, omitting those that are not part of the compilation process.

i. lexical analysis

ii. linking

iii. formatting

iv. semantic analysis

v. optimization

vi. code generation

vii. syntax analysis

viii. loading

a. i, ii, iii, iv, v

b. iv, i, vii, v, ii

c. i, vii, vi, iv, v, ii

d. vii, i, iv, v, vi, iii

e. i, vii, iv, v, vi

7. The data structure built by a compiler that represents the hierarchical syntactic structure of a given program is called a(n)
__________ tree.

a. parse

b. trace

c. syntax

d. module

8. How is Scheme opposite to Common Lisp?

a. Scheme is large and complex; Common Lisp is small.

b. Common Lisp is not an ANSI standard; Scheme is.

c. Scheme is exclusively statically scoped; Common Lisp supports dynamic scoping.

d. Common Lisp is interpreted; Scheme is compiled.

9. The primary progenitor of COBOL was the programming language known as:

a. Pseudocode.

b. Short Code.

c. Speedcode.

d. Flow-matic.

10. The C++ programming language is very popular because it is:

a. backward compatible with C.

b. object-oriented.

c. widely available.

d. all of the above.

11. Plankalkül included the following features except:

a. (recursive) record structures.

b. ones-complement notation floating point type.

c. iterative statement.

d. arrays.

12. For a large production application, a __________ language is most likely to be used:

a. compiled

b. interpreted

c. hybrid

d. script

13. Java and Perl are examples of __________ languages.

a. compiled

b. interpreted

c. hybrid

d. script

14. What innovation introduced in ALGOL68 is often credited to Pascal?

a. user-defined data types

b. block statement

c. select statement

d. bit-string

15. The syntax analysis part of a compiler is known as a:

a. language generator.

b. language recognizer.

c. context free grammar.

d. assembler.

16. If the left-hand side (LHS) appears in the right-hand side (RHS) of a rule, it is a(n):

a. error.

b. iteration.

c. meta-statement.

d. recursion.

17. A hierarchical structure that describes the syntactic structure of sentences in a language is called a(n):

a. descendant chart.

b. family tree.

c. parse tree.

d. ancestor list.

e. none of the above.

18. An alternate term for lexical analyzer is:

a. pattern matcher.

b. parser.

c. pushdown automaton.

d. all of the above.

19. A concept of ________ means that a small number of primitive constructs can be combined in a small number of ways to build the control and data structures of the language.

a. simplicity

b. parsimony

c. relativity

d. orthogonality

20. The task of a bottom-up parser is to find the handle of any given right sentential form that can be generated by its associated grammar.

a. True

b. False

21. A logical rule that is assumed to be true is termed a(n):

a. axiom.

b. theorem.

c. corollary.

d. inference.

22. Using EBNF, the C selection statement is depicted as:
<selection> &#1048774; if (<expression>) <statement> [else <statement>];

Without brackets, how many BNF rules would be required to depict the C selection statement?

a. 1

b. 2

c. 3

d. More than 3

23. With a von Neumann architecture, assignment is based on:

a. pipelining operations.

b. piping operations.

c. iterative operations.

d. functional operations.

24. The most common programming languages, dating back to the 1940s are called:

a. functional.

b. object-oriented.

c. rule-based.

d. imperative.

25. Consider the rule: A &#1048774; A + B. Using a LL parser, this rule is impossible to handle.

a. True

b. False

Reference no: EM13947649

Questions Cloud

How can technology support the early childhood experience : What is your philosophy of early childhood education? How can technology support the early childhood experience
Major part of the public activity in the u.s. economy : To a great extent, transportation project planning is described as a public activity where purely financial return is not the overriding benefit to be  attained.
Contributions of convection and radiation to heat transfer : Assess the effect of surface temperature on the power requirement, as well as on the relative contributions of convection and radiation to heat transfer from the surface.
Describe a plan for ongoing communication with lucy family : Explain the reasons for choosing these strategies for Lucy and her family. Describe a plan for ongoing communication with Lucy's family including how the success of these strategies will be measured
What innovation introduced in algol68 is credited to pascal : If the left-hand side (LHS) appears in the right-hand side (RHS) of a rule, it is a(n):
Expressed as a percentage of a base amount : In a comparative balance sheet, the ending Cash was $315,000 in 2011 and $270,000 in 2012. The net increase or decrease from 2011 to 2012 is:
What is ecological succession on bare rock called : What is ecological succession on bare rock called? Name the first and the last but one succession stages in it. Explain how the climax community gets established in this succession? How does succession differ in terrestrial and aquatic systems ? Give..
Exposure of the plate to irradiation : The curing process of Example 1.9 involves exposure of the plate to irradiation from an infrared lamp and attendant cooling by convection and radiation exchange with the surroundings. Alternatively, in lieu of the lamp, heating may be achieved by ..
Compute the discounted payback statistic for project : Compute the Discounted Payback statistic for Project X and recommend whether the firm should accept or reject the project with the cash flows shown below if the appropriate cost of capital is 12 percent and the maximum allowable discounted payback is..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write class which accepts user-s hourly rate of pay

Write down class which accepts the user's hourly rate of pay and number of hours worked. Display user's gross pay, withholding tax (15% of gross pay).

  Perform internal correctness checking of data

Perform internal correctness checking of data and those which do not, Provide diverse and comprehensive suites of built-in functionality and those with a more limited set of features.

  Design a small dictionary using the binary search tree

Design a small dictionary using the Binary Search Tree data structure. Each entry may include a word and its definitions. You should create the tree structure/dictionary using data input from a text file. After the dictionary is created, the user ..

  Write a program to find the largest of five numbers

Replace each phrase containing "Until" with an equivalent phrase containing "While", and vice versa. For instance, the phrase (Until sum = 100) would be replaced by (While sum 100).

  Write a program to evaluate the given arithmetic statement

Write a program to evaluate the arithmetic statement. X=A-B+C*(D*E-F)/G+H*k. Using a general register computer with one address instruction.

  You can always add a compareto method to a class without

q1. you can always add a compareto method to a class without making it implement the comparable interface so why do you

  Technique of multiplexed switching of analogue signals

Explain briefly from what you notice about the digital output values in (a) why a digital output value of an A/D converter is rarely the exact same digital value as the analogue input value.

  Write class called flight which represents airline flight

Draw and implement the class called Flight which represents an airline flight. It must contain instance data which represents airline name (String), flight number (int), and the flight's origin city (String).

  Performance comparison- rsa versus aes

Exercise the idea that digital certificates are verified using a chain of trust. The trust anchor for the digital certificates is the Root Certificate Authority (CA)

  Create modular program to enter monthly costs

Create modular program which ask user to enter monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance.

  Design a program that accepts a players team number

The Midville Park District maintains five soccer teams, as shown in the table. Design a program that accepts a player's team number and displays the player's team name

  Write program to open file for reading

Write the program to open file for reading which has twenty (20) rows and in each row there are three (3) columns. After reading each row call user-defined function to display each row.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd