Exam 6: Problem Solving With Abstract Data Types

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

Which of the following strings is a palindrome?

(Multiple Choice)
4.8/5
(36)

Write a recursive definition for the set of positive odd numbers.

(Short Answer)
4.7/5
(31)

What is a prefix expression?

(Essay)
4.8/5
(33)

______ can be used to prove properties about recursive algorithms.

(Multiple Choice)
4.8/5
(31)

A string of length 1 is not a palindrome.

(True/False)
5.0/5
(35)

The symbol • means ______.

(Multiple Choice)
4.8/5
(48)

Which of the following is an infix expression?

(Multiple Choice)
4.8/5
(42)

Which of the following is the prefix form of the infix expression: (8 + 6)/ (16 - 4)?

(Multiple Choice)
4.9/5
(37)

What is a fully parenthesized expression?

(Essay)
4.8/5
(36)

The Towers of Hanoi problem makes exactly ______ moves when it starts with N disks.

(Multiple Choice)
4.9/5
(33)

What is an empty string?

(Essay)
4.7/5
(26)

What is the value of the prefix expression: - * 3 8 + 6 5?

(Multiple Choice)
4.9/5
(34)

The correct grammar for the following language L: L = {w: w is of the form SnDn for some n ≥ 0} Is ______.

(Multiple Choice)
4.8/5
(44)

In a grammar,the symbol x y means ______.

(Multiple Choice)
4.9/5
(44)

Which of the following is true about algebraic expressions?

(Multiple Choice)
4.9/5
(39)

An empty string ______.

(Multiple Choice)
4.8/5
(35)

In the Eight Queens problem,each column can contain ______.

(Multiple Choice)
4.9/5
(25)

The statement: JavaPrograms = {strings w : w is a syntactically correct Java program} Signifies that ______.

(Multiple Choice)
4.8/5
(31)

The expression: (a +b)/ c is a fully parenthesized expression.

(True/False)
4.9/5
(39)

What is a recognition algorithm?

(Essay)
4.8/5
(28)
Showing 21 - 40 of 60
close modal

Filters

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