Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started