Question
Need help with these questions
UESTION Match the description to the C++ syntax address of a Barray of a а» C. &a D. E a0) 1dereference a call function a D access member of object a points to QUESTION 7 A delete pa 8 delete [ Ipa, C <not a pointers D <not dynamically allocated E <no need to deletes Match the new with the d int pa - new int [1000] ..)int .pa new int. int pa-NULL: int pa-0 nt a-100 int pas&a QUESTIONS Match the related concepts ⓚ.recursion A this B start C. address D heap E stack F same name main ▼ instance reference Click Save and Submit to save andi subilt. Click Save All Ansers to save all ansvers F8
estion Completion Stau overload QUESTION 9 Match the older C+technique that should be replaced with the newer C+t11/14 technique nulptr 8 range for loop type (char, int, foat, double, etc.) pointers in constructor, destructor OR unique ptr, shared 0 defaut data members initialiced in the declaration E auto eaw pointers deladt data members itialzed in constructor loop QUESTION 10 Given this code, selest the correct answer. class Point private intx,y publio: getx const l return x gotr const l return y: The getter methods do not retum a type getx should be renamed sek gelly should be nenamed sety There should not be a semolon at the and The public pivats sections should be reversed Th. Oord, should be assed There ane no problems with this cede QUESTION Ciek Save and Submit to save and sbl Cek Sase All Aners to sove all pe Lock
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The questions are just for syntax hence directly answers are given

Q6

The sequences are in order

C

A

D

E

B

Q7

B

A

E

C

D

Q8

E beacuse of recursion stack

D because memory allocation from heap

B starting of any program

A instance specific variables using this

C reference is given by address

F overloaded functions have same name

Q9

E as auto can be used in place of these

A

C

D

B

Q10

THe problem is that the getter methods do not return a type i.e they should return an int as type but they are not returning anything.

Add a comment
Know the answer?
Add Answer to:
Need help with these questions UESTION Match the description to the C++ syntax address of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ assignment help! The instructions are below, i included the main driver, i just need help...

    C++ assignment help! The instructions are below, i included the main driver, i just need help with calling the functions in the main function This assignment will access your skills using C++ strings and dynamic arrays. After completing this assignment you will be able to do the following: (1) allocate memory dynamically, (2) implement a default constructor, (3) insert and remove an item from an unsorted dynamic array of strings, (4) use the string class member functions, (5) implement a...

  • I only need the "functions" NOT the header file nor the main implementation file JUST the impleme...

    I only need the "functions" NOT the header file nor the main implementation file JUST the implementations for the functions Please help, if its difficult to do the complete program I would appreciate if you could do as much functions as you can especially for the derived class. I am a beginer so I am only using classes and pointers while implementing everything using simple c++ commands thank you in advanced Design and implement two C++ classes to provide matrix...

  • Part 1. (60 pts) 1. Define an Address class in the file Address.h and implement the...

    Part 1. (60 pts) 1. Define an Address class in the file Address.h and implement the Address class in Address.cpp. a. This class should have two private data members, m_city and m_state, that are strings for storing the city name and state abbreviation for some Address b. Define and implement public getter and setter member functions for each of the two data members above. Important: since these member functions deal with objects in this case strings), ensure that your setters...

  • I need to complete the C++ program for hotel reservation. In the main cpp you have...

    I need to complete the C++ program for hotel reservation. In the main cpp you have to display the hotel information from the hotel.txt based on customer preferences(which can be taken from the User.txt) For example, if the customer's budget is 200$, then only the hotels with prices below that amount should be displayed. Then the user has an option to choose which one to reserve for the particular time(which also can be found in the user.txt) The last two...

  • c++ please need help with this question Consider a class Employee with data members: age(an integer),...

    c++ please need help with this question Consider a class Employee with data members: age(an integer), id (an integer) and salary (a float), and their corresponding member functions as follows: class Employee {        private:             int age;             int id;             float salary;        public:             Employee( ); // default constructor: age=0, id=0, and salary=0             Employee(Employee &x);   // copy constructor           Employee& operator = (Employee &x); // equal sign operator             void setAge(int x);    // let age = x...

  • I have updated my previously posted C++ question to ensure that I have included all of...

    I have updated my previously posted C++ question to ensure that I have included all of the necessary documentation in order to complete Part 2 - Bank Account of the assigned lab in its entirety. Please note that the lab below is somewhat lengthy, and I do not expect you to answer each question! If coding the full lab is too much to ask, please focus soley on Part 2 of the lab, titled Bank Account and the subsections that...

  • RE-POSTED - Computer Science staff, I need this question answered. It will determine a pass or...

    RE-POSTED - Computer Science staff, I need this question answered. It will determine a pass or a fail. Its very imortant that this and the other questions posted are answered 100% Thank you. 13 - Template C++ Advance Please Only answer assignment if your code is 100%. When pasteing your code use text so I may copy and paste into visual studio. The code and questions must be answered 100% correct and works. Thank you. Programming Assignment Convert the int...

  • need help to answer this following questions 261 in class, we used a Distributed Hash Table...

    need help to answer this following questions 261 in class, we used a Distributed Hash Table (DHT) in conjunction with which architectural model? (a) Client-Server (b) Event-Drive (c) Model-View-Controller (d) Peer-to-peer (e) Pipe-Filter (27) In addition to caching, which technique(s) is/are used for domain name lookup authentication resolution (AR), iterative resolution (IR), recursive resolution (RR) (a) AR (b) AR, IR (c) AR, RR (d) IR RR (e) AR, IR, RR [28] Which comparison operators is used in JavaScript to check...

  • I need this in C++. This is all one question Program 2: Linked List Class For...

    I need this in C++. This is all one question Program 2: Linked List Class For this problem, let us take the linked list we wrote in a functional manner in a previous assignment and convert it into a Linked List class. For extra practice with pointers we'll expand its functionality and make it a doubly linked list with the ability to traverse in both directions. Since the list is doubly linked, each node will have the following structure: struct...

  • Multiple Choice Multiple Choice Section 4.1 Pointers and Dynamic Memory Consider the following statements: int *p;...

    Multiple Choice Multiple Choice Section 4.1 Pointers and Dynamic Memory Consider the following statements: int *p; int i; int k; i = 42; k = i; p = &i; After these statements, which of the following statements will change the value of i to 75? A. k = 75; B. *k = 75; C. p = 75; D. *p = 75; E. Two or more of the answers will change i to 75. Consider the following statements: int i =...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT