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.
16. A grammar can be expressed in BNF notation. There are two types of symbols in...
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 | 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 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 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...