1. Homepage
  2. Exam
  3. [2021] Massey - 159.341 Programming Languages, Algorithms AND Concurrency - Final Exam - Q1 Programming Languages

[2021] Massey - 159.341 Programming Languages, Algorithms AND Concurrency - Final Exam - Q1 Programming Languages

This question has been solved
Engage in a Conversation

Question 1 – Programming Languages [15 marks] CourseNana.COM

  CourseNana.COM

a) What/who is a programming language designed for? [1 mark] CourseNana.COM

  CourseNana.COM

b) Name and describe the four layers of a programming language. Give an example [4 marks] CourseNana.COM

of what would be defined in each layer. CourseNana.COM

  CourseNana.COM

c) Give an example of how two different language criteria have a tradeoff [3 marks] CourseNana.COM

or conflict with each other. CourseNana.COM

  CourseNana.COM

d) What is a model of computation and how is one useful in understanding [2 marks] CourseNana.COM

a programming language (use an example model to illustrate your answer). CourseNana.COM

  CourseNana.COM

e) Explain the meaning of orthogonality with respect to programming languages. [2 marks] CourseNana.COM

Give an example of non-orthogonality in a language of your choice. CourseNana.COM

  CourseNana.COM

f) Consider the following examples of string literals. [3 marks] CourseNana.COM

"Hello world" "Hello \"159.341\" Class" CourseNana.COM

"" "Hello 159.341\\159.331 Class" CourseNana.COM

  CourseNana.COM

Write a regular expression that would match these literals, the two special CourseNana.COM

characters you should consider are backslash \ and double-quote " which are both CourseNana.COM

escaped with a backslash character. You don't need to include punctuation other CourseNana.COM

than those in the examples. Note – your regular expression should match the CourseNana.COM

opening CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
Messey University代写,159.341代写,Programming Languages代写, Algorithms AND Concurrency代写,Messey University代编,159.341代编,Programming Languages代编, Algorithms AND Concurrency代编,Messey University代考,159.341代考,Programming Languages代考, Algorithms AND Concurrency代考,Messey Universityhelp,159.341help,Programming Languageshelp, Algorithms AND Concurrencyhelp,Messey University作业代写,159.341作业代写,Programming Languages作业代写, Algorithms AND Concurrency作业代写,Messey University编程代写,159.341编程代写,Programming Languages编程代写, Algorithms AND Concurrency编程代写,Messey Universityprogramming help,159.341programming help,Programming Languagesprogramming help, Algorithms AND Concurrencyprogramming help,Messey Universityassignment help,159.341assignment help,Programming Languagesassignment help, Algorithms AND Concurrencyassignment help,Messey Universitysolution,159.341solution,Programming Languagessolution, Algorithms AND Concurrencysolution,