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
(74)

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

(Short Answer)
4.9/5
(72)

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

(Short Answer)
4.8/5
(67)

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
(90)

Which of the following does not require a Boolean condition?

(Multiple Choice)
4.9/5
(75)

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.8/5
(82)

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
(82)

Explain the distinction between the imperative and declarative programming paradigms.

(Short Answer)
4.9/5
(78)

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

(Short Answer)
4.9/5
(81)

Most machine languages are based on the

(Multiple Choice)
4.8/5
(69)

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

(Multiple Choice)
4.7/5
(71)

Positions within arrays are identified by means of numbers called

(Multiple Choice)
4.9/5
(87)

Which of the following is ignored by a compiler?

(Multiple Choice)
4.9/5
(85)

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

(Multiple Choice)
4.8/5
(78)

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

(Short Answer)
4.8/5
(68)

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

(Short Answer)
4.9/5
(67)

Which of the following is the scope of a variable?

(Multiple Choice)
4.8/5
(58)

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
(77)

Which of the following is not a loop?

(Multiple Choice)
4.9/5
(74)

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

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

Filters

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