Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me on all the questions !!!!!!!! Really need help! Will give a thumb up for helping. 1. In the ADT list, new entries

Please help me on all the questions !!!!!!!! Really need help! Will give a thumb up for helping.

1. In the ADT list, new entries are typically added

  1. at the end of the list

  2. at the beginning of the list in the list

  3. at a computed place in the list depending on the number of elements

  1. You can add a new entry in a list

    1. at the beginning

    2. at the end

    3. in between items

    4. all of the above

  2. If myList is a declared ADT list and the front of the list is on the left, what does the list look like after applying the following pseudo code?

    myList.add(cat) myList.add(dog) mylist.add(fish)

    1. cat, dog, fish

    2. fish, dog, cat

    3. cat, fish, dog

    4. dog, fish, cat

  3. If myList is a declared ADT list and the front of the list is on the left, what does the list look like after applying the following pseudo code?

    myList.add(horse) myList.add(goat) myList.add(3, fish) myList.add(1, dog) myList.add(cat)

    a. dog, horse, goat, fish, cat b. horse, goat, fish, dog, cat c. cat, horse, goat, fish, dog d. cat, fish, goat, dog, horse

  4. Given an ADT list called myList that contains 4 items entries in it, which statement will remove

the first item on the list?

a. myList.remove(1) b. myList.remove() c. myList.removeFront()

d. myList.removeFirst()

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Explain consumer behaviour.

Answered: 1 week ago

Question

Explain the factors influencing consumer behaviour.

Answered: 1 week ago