In: Computer Science
Fill in the blanks in each of the following statements:
1. Each function definition can specify __________________ that represent additional information the function requires to perform its task correctly.
2. Declaring data members with access modifier __________________ is known as information hiding.
3. The initial value of a string is the __________________which does not contain any characters.
4. Variables declared in the body of a particular function are known as __________________and can be used only in that function.
5. Each parameter must specify both a(n) __________________ and a(n) __________________ .
6. Function __________________ is from the library reads characters until a newline character is encountered, then copies those characters into the specified string.
7. It is customary to define a class in a(n) __________________ file that has a .h filename extension.
8. A(n) __________________ normally consists of one or more member functions that
manipulate the attributes that belong to a particular object.
9. Classes often provide public member functions to allow clients of the class to __________________ or __________________ the values of private data members.
10) A house is to a blueprint as a(n) __________________ is to a class.
11) Every class definition contains the keyword __________________ followed immediately by the class’s name.
12) A class definition is typically stored in a file with the __________________filename extension.
13) When each object of a class maintains its own copy of an attribute, the variable that represents the attribute is also known as a(n) __________________.
14) Keyword public is a(n) __________________.
15) Return type __________________ indicates that a function will perform a task but will not return any information when it completes its task.
16) When a member function is defined outside the class definition, the function header must include the class name and the __________________ followed by the functionname to “tie” the member function to the class definition.
17) The source-code file and any other files that use a class can include the class’s header file via an __________________preprocessor directive.
1) parameters
2)private
3) null
4)local variable
5)type and value
6)gets()
7)header
8)class
9)get or set
10)object
11)class
12) .h
13)data member
14)access specifier
15)void
16)classname
17)include