Exam 6: Problem Solving With Abstract Data Types

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

If the string w is a palindrome,which of the following is true?

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

C

Which of the following is the postfix form of the prefix expression: * + a b c?

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

C

For defining palindromes,why is it not enough to use just the empty string as a base case?

Free
(Essay)
4.8/5
(38)
Correct Answer:
Verified

If a string has an odd length,we will eventually get down to the case of a string of length 1,which should also be a base case because it is a trivial palindrome.

The Java ______ determines whether a given string is a syntactically correct Java program.

(Multiple Choice)
4.7/5
(41)

What is the procedure for proving a statement by mathematical induction?

(Essay)
4.9/5
(35)

What is an infix expression?

(Essay)
4.8/5
(35)

If the string w is a palindrome,the first and last characters of w are the same.

(True/False)
4.8/5
(37)

Parentheses are not necessary in prefix expressions.

(True/False)
4.7/5
(36)

What is meant by a grammar?

(Essay)
4.9/5
(41)

The symbol AnBn is standard notation for the string that consists of ______.

(Multiple Choice)
4.9/5
(43)

What is the value of the infix expression: 8 * (5 - 2)?

(Multiple Choice)
4.9/5
(38)

The following string is a valid prefix expression: + * a b c d

(True/False)
4.8/5
(45)

What is the advantage of using prefix or postfix expressions instead of infix expressions?

(Essay)
4.9/5
(38)

What is backtracking?

(Essay)
4.9/5
(31)

A language is a set of strings of ______.

(Multiple Choice)
4.7/5
(41)

What is a postfix expression?

(Essay)
4.7/5
(39)

In a grammar,the symbol x | y means ______.

(Multiple Choice)
4.7/5
(32)

According to the following statement: JavaPrograms = {strings w : w is a syntactically correct Java program} when is a given string a member of the language JavaPrograms?

(Essay)
4.9/5
(38)

Infix expressions do not need precedence rules.

(True/False)
5.0/5
(39)

Which of the following is a fully parenthesized expression?

(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 60
close modal

Filters

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