logo

Crowdly

Browser

Add to Chrome

COMP3000 Programming Languages

Looking for COMP3000 Programming Languages test answers and solutions? Browse our comprehensive collection of verified answers for COMP3000 Programming Languages at ilearn.mq.edu.au.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Given the following grammar, which is a string that could be generated?

a -> b | c ;

b -> "matt" d ;

c -> "damian" e ;

d -> "makes me sad" | "broke my skateboard" | "ate my lunch" ;

e -> "is tops" | "is my favourite" ;

0%
0%
0%
100%
0%
View this question

Which of the following is a good reason for using the visitor pattern for traversing AST nodes?

0%
0%
0%
0%
View this question

When generating the AST classes for our Lox interpreters, what is the purpose of writing a "tool" (e.g., GenerateAst)?

0%
100%
0%
0%
View this question

In the following grammar, which symbols are "terminals"

e -> t | f ;

t -> "foo" | "bar" ;

f -> "foo()" | "bar()" ;

0%
0%
0%
0%
View this question

Terminals are represented with a quoted string in the metasyntax. Which of the concepts we've seen so far represent terminals in our interpreter?

0%
0%
0%
0%
0%
0%
0%
View this question

Which lox expression corresponds to the following tree? embedded image.

0%
0%
0%
0%
View this question

Which of the following are optimisations a compiler/interpreter might do?  Note, there could be more than one correct answer.

100%
0%
100%
100%
100%
0%
View this question

Imagine the following diagram of programming language implementation options is sound and complete. We want to create a compiler/interpreter to convert our "source" language into one of out target languages (x86 or ARM).

f

How many different possible implementations are there? (Hint, this is a COMP2010 question)

View this question
Two of the following phases can't easily co-exist in a single compiler/interpreter. Which two?
0%
0%
100%
0%
100%
View this question

Which of these characteristics would make a language implementation certainly a compiler:

0%
0%
0%
0%
0%
View this question

Want instant access to all verified answers on ilearn.mq.edu.au?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome