Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a statement to create an instance of a class Dictionary that implements DictionaryInterface. Your dictionary contains Word objects that are lists of synonyms for

Write a statement to create an instance of a class Dictionary that implements DictionaryInterface. Your dictionary contains Word objects that are lists of synonyms for words. The key value is a String representing the word to look up. Call your dictionary thesaurus.

Answer:

Write a statement to create a key iterator for a dictionary called thesaurus that is an instance of the class Dictionary and implements DictionaryInterface. The search keys are strings and the values stored are Word objects.

Answer:

Write a statement to create a value iterator for a dictionary called thesaurus that is an instance of the class Dictionary and implements DictionaryInterface. The search keys are strings and the values stored are Word objects.

Answer:

TRUE/FALSE

In the ADT dictionary, search keys and values are paired.

Answer:

The ADT dictionary organizes and identifies its entries by position.

Answer:

Every entry in a dictionary has a search key.

Answer:

Each entry in a dictionary may only have one key.

Answer:

The ADT dictionary requires sorted entries.

Answer:

MULTIPLE CHOICE:

A typical operation of an ADT dictionary is

add a new entry given a search key and value

remove an entry given a search key

retrieve a value associated with a search key

all of the above

A typical operation of an ADT dictionary is

determining if the dictionary contains a specific search key

traversing the dictionary by search keys

traversing the dictionary by values

all of the above

A typical operation of an ADT dictionary is

traversing the dictionary by values

removing an entry given a value

both a & b

none of the above

What ADT dictionary method creates an iterator that traverses all search keys in the dictionary?

getKeyIterator

keyIterator

getKeys

getIterator

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions