Exam 6: Programming Languages

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

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

(Multiple Choice)
4.7/5
(39)

List four data types that occur as primitive types in many high-level programming languages. ____________________ ____________________ ____________________ ____________________

(Short Answer)
4.8/5
(31)

Based on the sketch of a class definition below,which methods can be invoked from outside an instance of the class? class Example {public void method1( ) { ...} private void method2( ) { ...} public void method3( ) {…} private void method4( ) { ...} } _________________________________________________________

(Short Answer)
4.7/5
(40)

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

(Short Answer)
4.9/5
(34)

Which of the following statements is not a resolvent of the following clauses? P OR Q OR ¬R¬P OR T ¬Q OR T R OR T P \text { OR Q OR } \neg R \quad \neg P \text { OR T } \quad \neg Q \text { OR } T \quad \text { R OR T }

(Multiple Choice)
4.9/5
(31)

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).

(Short Answer)
5.0/5
(39)

Which of the following is not a control statement?

(Multiple Choice)
4.8/5
(34)

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

(Short Answer)
4.9/5
(33)

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

(Short Answer)
4.9/5
(28)

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

(Short Answer)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.7/5
(43)

Give three examples of key words that are often found in high-level imperative or object-oriented languages. ___________________ _____________________ ______________________

(Short Answer)
4.9/5
(35)

In the context of the object-oriented paradigm,a __________________ is an imperative program unit that describes how an object should react to a particular stimulus.

(Short Answer)
4.9/5
(32)
Showing 41 - 54 of 54
close modal

Filters

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