Answer the following statements true (T) or false (F)
1. Inline functions are always more efficent than noninline functions.
2. A static variable of a class cannot be changed.
3. size and capacity of a vector are two names for the same thing.
4. Assignment behaves essentially the same for vectors as for arrays.
1. False
For larger functions inline can be less efficient.
2. False
The static member can be accesses and assigned as
ClassName::staticMember = 17.0; //if the type is double
3. false
the size member function returns the number of elements inserted in the vector. The capacity member function returns the number of elements that a vector can hold without requiring reallocation.
4. false
There is no assignment for arrays. The programmer must carry out the copy member by member.
You might also like to view...
You can specify the location of each color by adding ____________________ to the linear-gradient() function.
Fill in the blank(s) with the appropriate word(s).
Match the following parts of a letter with their definition
1. Letter heading 2. Letter inside address 3. Letter salutation 4. Letter reference or subject line 5. Letter body 6. Letter complimentary close 7. Letter signature block 8. Letter end notations A. The letter ending, always followed by a comma B. Directly addresses the recipient by title and last name C. Contains the writer's address and current date D. Two to four blank lines at the bottom of your letter, followed by your typed named, and if possible, your position E. Contains the name and address of the recipient of the letter F. Abbreviations included at the bottom of the letter; for example, to indicate enclosures or copies G. The message area of the letter H. May replace or be used in addition to the salutation if you are not sure who will be receiving the letter
In the static route command ipv6 route 2001:db8:1111:1::/64 s0/0/1, what is represented by the sequence s0/0/1?
A) The administrative distance B) The metric C) The next-hop address D) The outgoing interface
_________ are user-defined objects created by a user for specific programming tasks.
Fill in the blank(s) with the appropriate word(s).