For the following languages (C++/Java, Prolog, Haskell), give their language classification, and justify each classification.
C++,Java,Haskell are compiled languages: c++,java both are
object oriented languages,now, compiled means all instructions on
the code are converted to machine code which is directly
executable, now, c++ converted by GCC ,java is converted by Jit
compiler, Haskell is converted by GHC
Prolog is declarative language: it expresses the logic of
computation without describing its control flow
For the following languages (C++/Java, Prolog, Haskell), give their language classification, and justify each classification.
Give brief examples of different variable scoping using Haskell, Prolog, Java, C, JavaScript, and/or MIPS
Which of the following languages uses column major order? C Java Fortran C++ Which language supports both rectangular and jagged arrays? C C# C++ Java
Extensively Compare the Following Programming Languages (Provide Strengths and Weaknesses of Each Programming Language) and Provide Brief Note of Each Programming Language. C# Java PHP Python Ruby
State if each of the following statements is true or false. An assembly language is an assembly of high-level programming languages. Imperative programming paradigm is same as declarative programming paradigm. Imperative programming languages include Prolog, SQL, and XQuery. Functional programming languages include C++ and Visual C++. Each programming language is purely imperative or purely declarative or purely functional or purely object-oriented.
Give examples of the following sets (languages): a. A set (language) that is Turing-recognizable but not decidable b. A set (language) that is decidable but not context-free c. A set (language) that is context-free but not regular
1. Match each language to the typing model that best describes it. __ Ruby __ Prolog __ Scala __ lo A. static type checking with strong type safety B. dynamic type checking with strong (duck) type safety C. a prototype-based object model, uses dynamic typing. D. types are not specified, but when it compiles it will give errors if variables are not compatible 2. Match each language with it's corresponding strength __ Ruby __ Prolog __ Scala __ lo A....
3. For each of the following languages, . State whether the language is finite or infinite. . State whether the language is regular or nonregular. . If you claim the language is regular: give a DFA (graphical representation) that recog- nizes the language. . If you claim that the language is not regular, describe the intuition for why this is so. Consider the following languages (a) [8 marks] The language of 8 bit binary strings that begin and end with...
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that are pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that arc pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
5.18. For each of the following languages, give a transition table for a deterministic PDA that accepts that language. a. x E a, b* na(x) < nb(x))