100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSL2601 ASSIGNMENT 2 SEMESTER 2 2023 QUALITY ANSWERS $12.49   Add to cart

Exam (elaborations)

CSL2601 ASSIGNMENT 2 SEMESTER 2 2023 QUALITY ANSWERS

 6 views  0 purchase
  • Course
  • Institution

CSL2601 ASSIGNMENT 2 SEMESTER 2 2023 QUALITY ANSWERS C language is: a. Imperative language b. Declarative language c. Functional language d. None of these Python interpreter performs most of sematic checks at run time. It is called: a. "Static" language b. "Dynamic" language c. All of th...

[Show more]

Preview 2 out of 9  pages

  • February 29, 2024
  • 9
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSL2601 ASSIGNMENT 2 SEMESTER 2 2023
QUALITY ANSWERS

1). C language is:
a. imperative language
b. declarative language
c. functional language
d. none of these

 Ans: a


2). Python interpreter performs most of sematic checks at run time. it is called:
a. "static" language
b. "dynamic" language
c. all of these
d. none of these

 Ans: b


3). Describe the language generated by below regular expression:
(0|1)*(0|1)(0|1)(0|1)
a. all binary sequences have at least three bits
b. all binary sequences ended by 011, 001, 010, 000
c. all binary sequences ended by 100, 110, 101, 111
d. none of these

 Ans: A


4). What is ambiguous grammar?
a. a grammar is ambiguous if some string can be generated by two or more distinct parse
trees
b. a grammar is ambiguous if some string can be generated by one parse trees
c. both a and b are true
d. both a and b are false

 Ans: A


5). Which token is this:
digit digit *


PaperStoc.com Page 1 of 9

, a. any string
b. integer
c. real number
d. none of these

 Ans: b


6). Qn = 6 given the derivation:
expr <- expr op expr
<- expr op id
<- expr + id
<- expr op expr + id
<- expr op id + id
<- expr * id + id
<- id * id + id
what type of this derivation?

a. left-most derivation
b. right-most derivation
c. neither left-most nor right-most derivation
d. none of these

 Ans: b


7). What is a dynamic sematic check of c language?
a. variables are never used in an expression unless they have been given a value
b. arithmetic operations do not overflow
c. array subscript expressions lie within the bounds of the array
d. all of these

 Ans: d


8). What is the key idea in static scope rules?
a. bindings are defined by the physical (lexical) structure of the program.
b. there is no scope rule
c. scope rules are not necessary
d. none of the other choices

 Ans: a


9). Python use:
a. dynamic scoping
b. static scoping



PaperStoc.com Page 2 of 9

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Academik001. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart