Computers and Technology
Computers and Technology, 09.06.2020 15:57, bxbykyah

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, edgytaehyung
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
image
Computers and Technology, 23.06.2019 02:30, woodpeckerdeejpe8wvh
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
image
Computers and Technology, 24.06.2019 21:50, TamB01
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, Jennifer312332
Hypertension occurs when blood pressure is too high.
Answers: 1
Do you know the correct 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, 01.02.2021 22:30