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 (B)</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 (A)</p> Signup and view all the answers

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

<p>Semantics (C)</p> Signup and view all the answers

What is the purpose of a lexical analyzer?

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

What type of diagram is a state transition diagram?

<p>Directed graph (A)</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 (D)</p> Signup and view all the answers

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

<p>Generator (A)</p> Signup and view all the answers

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

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

What type of parser is a recursive descent parser?

<p>Top-down parser (B)</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 (B)</p> Signup and view all the answers

What approach does a recursive-descent parser use?

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

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

<p>Identifier (A)</p> Signup and view all the answers

What type of programming language is C++?

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

What determines the range of values a variable can store?

<p>Type (B)</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 (D)</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 (C)</p> Signup and view all the answers

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

<p>precision (D)</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 (A)</p> Signup and view all the answers

What type of data is represented as sequences of characters?

<p>string (B)</p> Signup and view all the answers

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

<p>enumeration (A)</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 (A)</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 (C)</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 (A)</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 (B)</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 (C)</p> Signup and view all the answers

What type of array has rows with different lengths?

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

More Like This

Mastering Software Design Patterns
5 questions
Programming Languages Lecture 1
10 questions
Programming Languages and OOP Concepts
18 questions
Use Quizgecko on...
Browser
Browser