Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which code snippet can be used to search a value in the linked list? Select one: a. String searchstring = Tom jones; Person current

1. Which code snippet can be used to search a value in the linked list?

Select one:

a. String searchstring = Tom jones;

Person current = first;

While((not(current.equals(search))&&(current.next == nul))

Current = current.next;

b. String searchstring = Tom jones;

Person current = first;

Current = current.next;

c. String searchstring = Larry jones;

Person current = first;

While((not(current.equals(searchstring))&&(current.next! = null))

Current = current.next;

d. String searchstring = Tom jones;

Person current = first;

While((not(current.equals(searchstring)&&(current.next! = null))

Current = current.next;

2. Which can be used to create a Linked Data Structure?

a. Public class Node

{

Private String info;

Private next Node;

}

b. Public class person

{

Private String name;

Private String address;

Private string person;

//whatever else

}

c. Public class person

{

Private String name;

Private String address;

Private note next; // a link to another Person object

//whatever else

}

d. Public class Node

{

Private String info;

Private node next;

}

3. Which one of following is not true about Linked Structures?

Select one:

a. Object reference variable hold the address of an object

b. Linked Structures uses a one big contiguous block of memory

c. Series of object make up linked list

d. Linked structure uses object references to create links between object.

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago