Question

In: Computer Science

Fill in the blanks in each of the following statements: 1. Each function definition can specify...

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.

Solutions

Expert Solution

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


Related Solutions

Fill in the blanks in each of the following statements
Fill in the blanks in each of the following statementsa) --------- allows you to build JavaFx GUIS using drag and drop techniques.b) The elements in the scene graph are called --------------c) A(n) ----------- file contains the description of a JavaFX GUI.d) The method ---------------- is called by FMXLLoader before the GUI is displayed
Fill in the blanks in each of the following statements: a) The _________ states that every...
Fill in the blanks in each of the following statements: a) The _________ states that every column in a primary key must have a value, and the value of the primary key must be unique b) The ________ states that every foreign-key value must appear as another table's primary-key value. c) A(n) ________ in a pattern indicates that a string matching the pattern can have zero or more characters at that location in the pattern. d) Java DB is the...
1. Fill in the blanks by selecting the statements that can be true based on the...
1. Fill in the blanks by selecting the statements that can be true based on the statement in the first column. g(n) grows slower than f(n) g(n) grows the same rate as f(n) g(n) grows faster than f(n) f(n)=O(g(n)) f(n)=o(g(n)) f(n)=Ω(g(n)) f(n)=ω(g(n)) f(n)=θ(g(n)) 2. Group the following functions f1, f2, …, f10 into different groups, so that functions within the same group grow at the same asymptotic rate. Also list groups in increasing asymptotic growth rate order. Note logn has...
for each of the following statements, fill in the blanks with an easy to check criterion:...
for each of the following statements, fill in the blanks with an easy to check criterion: a. M is a triangular number if and only if _______ is an odd number. b. N is an odd square if and only if _________ is a triangular number. c. prove that your criteria in a and b are correct.
1. For each of the following sentences, fill in the blanks with the correct word or...
1. For each of the following sentences, fill in the blanks with the correct word or phrase from the list below. You may use a term more than once in this section. 2 pts Plasma membrane proteins are synthesized in the ___. Proteins are transported into the Golgi apparatus via ___. Nuclear proteins are synthesized in the___. Acid hydrolase enzymes are taken to the ____ after they are synthesized. All proteins being transported out of the cell pass through the...
Fill in the blanks to make the following statements correct. Please note that you can simply...
Fill in the blanks to make the following statements correct. Please note that you can simply write the words in your assignment response. The shut-down price is the price at which the firm can just cover its                   . If the average variable cost of producing any given level of output exceeds the price at which it can be sold, then the firm should                   . If a firm is producing a level of output such that MC > MR, that firm should                    output. The...
Problem C. Fill True or False in the blanks for the following statements. True 1) _...
Problem C. Fill True or False in the blanks for the following statements. True 1) _ __ Operating system defines the ways in which the system resources are used to solve the computing problems of the users. 2) _ _ Operating system (OS) controls and coordinates use of hardware among various applications and users. 3) ______ System daemons are the first programs to be loaded and executed when powering-up or rebooting a computing system. 4) ______ When an OS runs...
Fill in the blanks with True (T) or False (F) for each of the given statements....
Fill in the blanks with True (T) or False (F) for each of the given statements. It is possible to directly form an acyl anion with an aldehyde and base. Electrophilic aromatic substitution is always faster with a heterocycle than with benzene. Pyridines are electron poor aromatic rings and are particularly good at nucleophilic aromatic substitution. Heterocyclopentadiene undergo electrophilic aromatic substitution primarily at the C-3 position. 1,3-diester is less acidic than a 1,3-ketoester, which is less acidic than an 1,3-diketone...
Consider the following structure definitions and fill in the blanks for the enqueue function:
Consider the following structure definitions and fill in the blanks for the enqueue function:    typedef struct queue queue_t;     typedef struct node node_t;    struct node {         node_t *next;          void *val; };    struct queue {         node_t *head;         node_t *tail;};/* add val at the tail of the queue q */void enqueue (queue_t *q, void *val) {     if (q->head == NULL) {        _______________ = _______________ = malloc(sizeof(_______________));        _______________ = NULL;     } else {        _______________ = _______________ = malloc(sizeof(_______________));        _______________ = NULL;     }    q->tail->val = val; }
Fill in the blanks in the following separate income statements a through e.
Fill in the blanks in the following separate income statements a through e. (Amounts to be deducted should be indicated by a minus sign.) 
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT