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 03:10
This program reads a file called 'test.txt'. you are required to write two functions that build a wordlist out of all of the words found in the file and print all of the unique words found in the file. remove punctuations using 'string.punctuation' and 'strip()' before adding words to the wordlist. write a function build_wordlist() that takes a 'file pointer' as an argument and reads the contents, builds the wordlist after removing punctuations, and then returns the wordlist. another function find_unique() will take this wordlist as a parameter and return another wordlist comprising of all unique words found in the wordlist. example: contents of 'test.txt': test file another line in the test file output: ['another', 'file', 'in', 'line', 'test', 'the']
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
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, 03.12.2020 20:40
question
Mathematics, 03.12.2020 20:40
question
Mathematics, 03.12.2020 20:40
question
English, 03.12.2020 20:40
question
Mathematics, 03.12.2020 20:40
Questions on the website: 13722363