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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:10, kendall984
Which is a benefit of peer-to-peer networking? easy to add or remove devices main server has a fast processor more reliable than a client/server network same software versions on all computers
Answers: 3
image
Computers and Technology, 22.06.2019 14:50, williamsgregg5214
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer. b. don’t write your password down and leave it where others can find it. c. share your password with your friends. d.each time you visit a website, retain the cookies on your computer. e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
image
Computers and Technology, 23.06.2019 09:10, babyskitt
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, austintules2005
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
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 in other subjects:

Konu
Mathematics, 21.06.2021 01:00
Konu
Business, 21.06.2021 01:00