Exam 5: Algorithms

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

Which of the following is a means of defining similar yet different classes in an object-oriented program?

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

A

Which of the following is not constructed by a typical compiler?

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

A

In addition to the procedure's name, what other information is contained in a typical procedure header? ____________________________________

Free
(Short Answer)
4.9/5
(40)
Correct Answer:
Verified

A list of the formal parameters

A data structure in which all elements have the same type is called ___________________, whereas a ________________ may have elements of different types.

(Short Answer)
4.7/5
(40)

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

(Essay)
4.7/5
(37)

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

(Multiple Choice)
4.9/5
(25)

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.

(Essay)
4.8/5
(29)

Which of the following is not a parse tree of an expression based on the following grammar? Which of the following is not a parse tree of an expression based on the following grammar?

(Multiple Choice)
4.9/5
(35)

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

(Essay)
4.7/5
(40)

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

(Essay)
4.8/5
(38)

To say that a grammar is ambiguous means that ___________________________________________ _____________________________________________________________________ .

(Essay)
4.9/5
(43)

Positions within arrays are identified by means of numbers called

(Multiple Choice)
4.9/5
(37)

What clause would produce the resolvent P OR R OR S when resolved with the clause P OR \rightharpoondown Q __________________

(Short Answer)
4.8/5
(29)

Which of the following does not require a Boolean structure?

(Multiple Choice)
4.9/5
(33)

Explain the distinction between a formal parameter and an actual parameter.

(Essay)
5.0/5
(40)

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

(Essay)
4.9/5
(25)

Which of the following is not a way of referring to a value in a program?

(Multiple Choice)
4.8/5
(42)

Rewrite the following instructions using a single if-then-else statement. Rewrite the following instructions using a single if-then-else statement.

(Short Answer)
4.9/5
(28)

Which of the following is an example of a language that is based on the object-oriented paradigm?

(Multiple Choice)
4.7/5
(36)

Which of the following is ignored by a compiler?

(Multiple Choice)
4.8/5
(29)
Showing 1 - 20 of 46
close modal

Filters

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