subject

1. The following numbers are inserted into a linked list in this order:10, 20, 30, 40, 50, 60What would the following statements display?pCur = head->next;cout << pCur->data << " ";cout << pCur->next->data << endl;a. 20 30b. 40 50c. 10 20d. 30 402. Assume a linked list has the following data:10, 20, 30, 40, 50, 60Assume pre points to the third node in the list and cur = pre->next. The following statementpre->next = cur->nextremoves from the lista. 20b. 50c. 30d. 403. The following member function of the NumberList classint NumberList::guess(){ int value = 0;ListNode *pCurr = head;while( pCurr != NULL ){value += pCurr->data;pCurr = pCurr->next;
}return value;}returns the a. value in the last node in a linked listb. sum of the values in a linked listc. largest value in a linked listd. average of the values in a linked liste. smallest value in a linked list4. Inserting a new element into a linked list can be done a. only in the middleb. only at the endc. only in the beginningd. anywhere5. The following member function of the NumberList classint NumberList::guess(){ListNode *pCurr = head;while( pCurr->next != NULL ){
pCurr = pCurr->next;}return pCurr->data;}returns the a. smallest value in a linked listb. sum of the values in a linked listc. value in the last node in a linked listd. average of the values in a linked liste. largest value in a linked list6. One of the following is not a basic linked list operation:a. insertb. create // constructorc. build list from filed. traversee. searchf. deleteg. destroy // destructor

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
You know the right answer?
1. The following numbers are inserted into a linked list in this order:10, 20, 30, 40, 50, 60What wo...
Questions
question
Mathematics, 05.06.2021 05:40
question
Mathematics, 05.06.2021 05:40
question
English, 05.06.2021 05:50
question
Social Studies, 05.06.2021 05:50
question
Arts, 05.06.2021 05:50
question
Mathematics, 05.06.2021 05:50
question
English, 05.06.2021 05:50
Questions on the website: 13722361