Exam 6: Programming Languages

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To say that a grammar is ambiguous means that ___________________________________________.

(Short Answer)
4.9/5
(33)

Briefly describe the task of each of the following. A.Lexical analyzer B.Parser C.Code Generator

(Short Answer)
4.9/5
(24)

Explain why key words in a programming language are often reserved words.

(Short Answer)
4.8/5
(30)

Indicate how each of the following types of programming languages is classified in terms of generation (first generation,second generation,or third generation). A. High-level languages _____________ B. Machine languages _____________ C. Assembly languages _____________

(Short Answer)
4.9/5
(38)

Which of the following does not require a Boolean condition?

(Multiple Choice)
4.9/5
(35)

In the context of the object-oriented paradigm,____________ are templates from which ____________ are constructed.We say that the latter is an instance of the former.

(Short Answer)
4.9/5
(33)

Based on the grammar below,draw a parse tree showing that the string "drip drip drip" is a Leak. Based on the grammar below,draw a parse tree showing that the string drip drip drip is a Leak.

(Short Answer)
4.8/5
(37)

Explain the distinction between the imperative and declarative programming paradigms.

(Short Answer)
4.9/5
(33)

Why is the straightforward "goto" statement no longer popular in high-level programming languages?

(Short Answer)
4.9/5
(35)

Most machine languages are based on the

(Multiple Choice)
4.7/5
(33)

Which of the following is not a type of statement found in a typical high-level imperative programming language?

(Multiple Choice)
4.7/5
(26)

Positions within arrays are identified by means of numbers called

(Multiple Choice)
4.9/5
(42)

Which of the following is ignored by a compiler?

(Multiple Choice)
4.9/5
(38)

Which of the following is not a step in the process of translating a program?

(Multiple Choice)
4.7/5
(36)

List two disadvantages of both machine languages and assembly languages that are overcome by high-level programming languages. _____________________________________ _____________________________________

(Short Answer)
4.7/5
(30)

Explain why the generation approach to classifying programming languages fails to capture the full scope of today's languages.

(Short Answer)
4.9/5
(26)

Which of the following is the scope of a variable?

(Multiple Choice)
4.9/5
(20)

The following is a program segment and the definition of a function named sub. . . =3; def sub(Y): sub () =5; print (); . . A. What value will be printed by the program segment if parameters are passed by value? ____________ B. What value will be printed by the program segment if parameters are passed by reference? ____________

(Short Answer)
4.9/5
(33)

Which of the following is not a loop?

(Multiple Choice)
4.8/5
(31)

Explain the distinction between translating a program (in a high-level language)and interpreting the program.

(Short Answer)
4.9/5
(31)
Showing 21 - 40 of 54
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)