Midterm I

Exit

Question 1 of 1

  Time Left


0 [{"id":502795,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:33:56","updated_at":"2018-07-21 04:33:56","questionName":"In a class that contains a pointer to a dynamically allocated int, the destructor ________ delete the pointer because __________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502798,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:35:29","updated_at":"2018-07-21 04:35:29","questionName":"Which of the following is NOT a reason to use a linked list over a vector?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502792,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:31:17","updated_at":"2018-07-21 04:31:17","questionName":"A vector is _____________ efficient than an array _______________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502786,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:28:07","updated_at":"2018-07-21 04:28:07","questionName":"All of the following are true of Big-O analysis EXCEPT what?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502784,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:26:54","updated_at":"2018-07-21 04:26:54","questionName":"The \"order of complexity\" of an algorithm expresses ____________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502791,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:30:23","updated_at":"2018-07-21 04:30:23","questionName":"What would be the Big Oh of a reserve function which creates a new array that is twice the size of the current array for an object of class Vector, and copies the contents from the old array into the new array?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502794,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:32:56","updated_at":"2018-07-21 04:32:56","questionName":"The default copy constructor may be used EXCEPT ________________________________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502787,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:28:43","updated_at":"2018-07-21 04:28:43","questionName":"If N = size \/ 2 and M = size * size, what is the Big-O of the following:\r\n\r\nfor (i=0; i < N; i++)\r\n{\r\n\/\/ sequence of statements\r\n}\r\n\r\nfor (j=0; j < M; j++)\r\n{\r\n\/\/ sequence of statements\r\n}","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502796,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:34:28","updated_at":"2018-07-21 04:34:28","questionName":"Inserting at the head of a single-linked list is _______ inserting at the tail.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502800,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:36:34","updated_at":"2018-07-21 04:36:34","questionName":"What kind of pointer should be included in a singly linked node?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502790,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:29:42","updated_at":"2018-07-21 04:29:42","questionName":"What is the principal advantage of a template class?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502797,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:34:59","updated_at":"2018-07-21 04:34:59","questionName":"Why is Node typically defined as a struct in the private part of the host class?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502788,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:29:10","updated_at":"2018-07-21 04:29:10","questionName":"A template class typically ______________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502799,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:36:05","updated_at":"2018-07-21 04:36:05","questionName":"Which of the following is NOT a disadvantage of a singly linked list compared to a doubly linked list?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":502785,"quiz_id":"25876","answer_id":null,"answerType_id":"0","created_at":"2018-07-21 04:27:23","updated_at":"2018-07-21 04:27:23","questionName":"As a first guess, the order of complexity of three nested loops is probably__________.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":null,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null}]
502795
0
60
block

In a class that contains a pointer to a dynamically allocated int, the destructor ________ delete the pointer because __________.

Select the Correct Answers  

(0/0)












502798
0
60
none
502792
0
60
none
502786
0
60
none
502784
0
60
none
502791
0
60
none
502794
0
60
none
502787
0
60
none
502796
0
60
none
502800
0
60
none
502790
0
60
none
502797
0
60
none
502788
0
60
none
502799
0
60
none
502785
0
60
none