Question

16. A grammar can be expressed in BNF notation. There are two types of symbols in BNF expressions. Non-terminal symbols are typically A. Abstract concepts that need to be further defined B. The symbols that would appear in a grammar file C. The symbols that would appear in a source code file D. Metasymbols that are used by BNF grammar types to help describe rules 17. Which of the following scripting languages is a pure object-oriented language: A.. Ruby B. Python C. Perl D. JavaScript was: A. Smalltalk B. C++ C. Java

0 0
Add a comment Improve this question Transcribed image text
Answer #1

16. Correct Answer: B. The symbols that would appear in a grammar file.

Explanation: Non-terminals are syntactic variables representing a set of strings that can be derived from the grammar.

17. Correct Answer: A. Ruby

Explanation: In a "purely" object-oriented language the objects communicate by message passing, and everything in the language should be an object.

Ruby is a pure object oriented scripting language, that means everything is an object.

18. Correct Answer: A. SmallTalk

Explanation: Smalltalk is the first programming language that fully supports object oriented programming. It was a dynamically typed, reflective language designed in 1970s.

Smalltalk introduced the language virtual machine, on which Java and Ruby are based. It was the first graphical language to support live programming and advanced debugging techniques.

Add a comment
Know the answer?
Add Answer to:
16. A grammar can be expressed in BNF notation. There are two types of symbols in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help with the following problems, any help you can provide is deeply appreciated! CSC...

    I need help with the following problems, any help you can provide is deeply appreciated! CSC 404 Exam 1 Question I continued - 9. The syntax rules for most languages ignore spaces. An exception is which tises indents and therefore spaces to form the indents) to group statements (a) FORTRAN (6) Pascal (e) Python (d) Lip (e) C++ 10. Identifiers, constants and operators are typical examples of (a) tokens. (b) leafons. (c) signifiers. (d) lexicons. (e) parsicles. 0) non-terminals. 11....

  • Please help me with the coding for LL(1)!! The given grammar was: P → PL |...

    Please help me with the coding for LL(1)!! The given grammar was: P → PL | L L → N; | M; | C N → print E M → print "W" W → TW | ε C → if E {P} | if E {P} else {P} E → (EOE) | V (note: this has a variable O) O → + | - | * V → 0 | 1 | 2 | 3 (note: this has a terminal...

  • C programming is the main one and pick another code of choice!!! Background This assignment is...

    C programming is the main one and pick another code of choice!!! Background This assignment is based on one of the Big Ideas in this course, namely that reading C source code is a real aid in learning how to write C code. To that end, in this project, you write a program that scans C source from the 'Net and calculates some simple statistics. We're learning lots of concepts, and by running the program you write here on several...

  • 1. (p. 2-3.) Which of the following is NOT a reason for studying concepts of programming...

    1. (p. 2-3.) Which of the following is NOT a reason for studying concepts of programming languages according to Sebesta? a. Increased capacity to express ideas. b. Improved background for choosing appropriate languages. c. Increased ability to design new languages. d. Increased ability to learn new languages. 2. (p. 5-6.) What programming language has dominated scientific computing over the past 50 years? a. FORTRAN b. ALGOL c. SNOBOL d. PL/I 3. (p. 6.) What programming language has dominated artificial intelligence...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT