Programming Language Concepts
29 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the term for the ease with which programs of a language can be read and understood?

  • Orthogonality
  • Writability
  • Readability (correct)
  • Reliability
  • What property of a language allows a small set of primitive constructs to be combined to build control and data structures?

  • Readability
  • Writability
  • Reliability
  • Orthogonality (correct)
  • What is the term for the ability of a language to be used to create programs for a chosen problem domain?

  • Readability
  • Orthogonality
  • Writability
  • Expressiveness (correct)
  • What is the term for a program that performs to its specifications under all conditions?

    <p>Reliability</p> Signup and view all the answers

    What is the process of translating programs into machine language that can be executed quickly directly on the computer?

    <p>Compilation</p> Signup and view all the answers

    What is the term for the meaning of the expressions, statements, and program units?

    <p>Semantics</p> Signup and view all the answers

    What is the purpose of a lexical analyzer?

    <p>Serves as front end of a syntax analyzer</p> Signup and view all the answers

    What type of diagram is a state transition diagram?

    <p>Directed graph</p> Signup and view all the answers

    What is the term for a grammar that generates a sentential form with two or more distinct parse trees?

    <p>Ambiguous</p> Signup and view all the answers

    What is the term for a device that generates sentences of a language?

    <p>Generator</p> Signup and view all the answers

    What is the term for the hierarchical representation of a derivation?

    <p>Parse tree</p> Signup and view all the answers

    What type of parser is a recursive descent parser?

    <p>Top-down parser</p> Signup and view all the answers

    What is the result of parsing the input string 'cad' using the given grammar?

    <p>The input string is accepted</p> Signup and view all the answers

    What approach does a recursive-descent parser use?

    <p>Left to right reading</p> Signup and view all the answers

    What is a string of characters used to identify some entity in a program?

    <p>Identifier</p> Signup and view all the answers

    What type of programming language is C++?

    <p>Case-sensitive</p> Signup and view all the answers

    What determines the range of values a variable can store?

    <p>Type</p> Signup and view all the answers

    What is the process of placing a memory cell back into the pool of available memory?

    <p>Deallocation</p> Signup and view all the answers

    What is a data type that is not defined in terms of other types?

    <p>user-defined data types</p> Signup and view all the answers

    What measures the accuracy of the fractional part of a value?

    <p>precision</p> Signup and view all the answers

    What data type stores a fixed number of decimal digits with an implied decimal point at a fixed position?

    <p>Decimal</p> Signup and view all the answers

    What type of data is represented as sequences of characters?

    <p>string</p> Signup and view all the answers

    What type of data has values that are named constants provided in the definition?

    <p>enumeration</p> Signup and view all the answers

    What type of array has statically bound subscript ranges and storage allocation is done before runtime?

    <p>static array</p> Signup and view all the answers

    What type of array is characterized by statically bound subscript ranges and allocation at declaration elaboration time during execution?

    <p>static array</p> Signup and view all the answers

    Which type of array has fixed subscript ranges and storage bindings, similar to a fixed stack-dynamic array?

    <p>fixed heap-dynamic array</p> Signup and view all the answers

    What type of array has dynamic binding of subscript ranges and storage allocation that can change during its lifetime?

    <p>heap-dynamic array</p> Signup and view all the answers

    What is a multidimensional array with all rows having the same number of elements and all columns having the same number of elements called?

    <p>rectangular array</p> Signup and view all the answers

    What type of array has rows with different lengths?

    <p>jagged array</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser