Exam 5: Algorithms

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

Which of the following is not associated with the concept of data type?

(Multiple Choice)
4.8/5
(38)

Which of the following is a means of nullifying conflicts among data types?

(Multiple Choice)
4.9/5
(38)

Most machine languages are based on the

(Multiple Choice)
4.9/5
(30)

Based on the sketch of a class definition below, which methods can be invoked from outside an instance of the class? Based on the sketch of a class definition below, which methods can be invoked from outside an instance of the class?   _________________________________________________________ _________________________________________________________

(Short Answer)
4.7/5
(22)

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

(Essay)
4.8/5
(39)

In contrast to _______________ languages such as English and Spanish, programming languages are considered _______________ languages and are rigorously defined by their grammars.

(Short Answer)
4.8/5
(30)

Explain the distinction between the imperative and declarative programming paradigms.

(Essay)
4.9/5
(36)

Which of the following is not associated with object-oriented programming?

(Multiple Choice)
4.8/5
(30)

Which of the following is an example of a language that is based on the functional paradigm?

(Multiple Choice)
4.9/5
(33)

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

Which of the following is the scope of a variable?

(Multiple Choice)
4.9/5
(30)

Explain the distinction between global and local variables.

(Essay)
4.9/5
(28)

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

(Multiple Choice)
4.7/5
(29)

Which of the following can Prolog conclude from the following program? parent(jill, sue). Parent(jill, sally). Parent(john, sue). Parent(john, sally). Sibling(X, Y) :- parent(Z, X), parent(Z, Y).

(Multiple Choice)
4.7/5
(44)

Explain the distinction between a procedure and a function.

(Essay)
4.9/5
(41)

In the context of the object-oriented paradigm, what is a constructor?

(Essay)
4.8/5
(27)

Which of the following is not a possible value of the expression 4 + 6 /2 - 1

(Multiple Choice)
5.0/5
(37)

What general rule should be added to the Prolog program below so that Prolog can conclude that ice cream is better than spinach? better(icecream, peanutbutter). better(peanutbutter, spinach). ___________________________________________________________

(Essay)
4.7/5
(32)

Which of the following is not a control statement?

(Multiple Choice)
4.8/5
(29)

Show that the grammar below is ambiguous by drawing two distinct parse trees for the string "drip drip drip." Show that the grammar below is ambiguous by drawing two distinct parse trees for the string drip drip drip.

(Essay)
4.8/5
(30)
Showing 21 - 40 of 46
close modal

Filters

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