Question
as many as possible
CIs 280x Exam Fall 2017 Chapters Section II Matching (2 points per question except where noted t the Complete each sentence with the letter of the word/phrase that best completes the sentence from the list a bottom of the page. A letter should only be used one timel 19. In C++, the methods (member functions) of a class are usually declared with the access specifier (aka modifie eck (4 points ) 20 V''Ant Classes should include a to allow the fields of an object to be initialized by a user when it 21 created 22 A variable declared outside of a function or a class is called a(n) 23. A user of an object can usually make changes to a field in the object by using a public 24 The values of all the fields in an object at a point in time refers to the -of 25. A user of an object can usually retrieve the value of a field in an object by using a public 26. In C+, if the keyword static is used to declare a variable in a class declaration (interface) then a(n) the object. is being declared. 27. In C++, typically fields (data members) are declared using the access specifier (aka modifier) in a function or a -(aka instance or cla 28. C+ does NOT implicitly initialize a variable) in a newly created object. (4 points) U const F field G Instance variable L value H accessor method M state I private P public Q new R access specifier W abstraction S class variable Tclass Kinitialize A. B address C declare D constructor E mutator methodprimitive Vlocal variable N pointer Y object instanceT lass 55) 56
Explanation / Answer
19. public
20. object , class
21 constructor
22.global variable
23.mutator methods
24.state
25.accessor method
26.class variable
27.private
28.local varaible, field