Question

In: Computer Science

For each of the code description on left, you will select its most appropriate answer from...

For each of the code description on left, you will select its most appropriate answer from the right. There is only one answer to each code description:

Group of answer choices

A function signature with a function name, its list of parameter types, and its return type.

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

A function with its body of code written.

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

A variable declared inside a function

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

A variable declared outside a function

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

A literal of value 8.0

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

A literal of value 8.0F

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

The default method of passing arguments to parameters inside a C++ function

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

The default method of passing an array into a C++ function

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

Cause the flow of control inside an inner FOR loop to advance to the next iteration in the same loop when possible.

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

Cause the flow of control in the a DO-WHILE loop to exit it.

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

This is used in place of the missing trailing arguments in a function call.

      [ Choose ]            continue statement            float            function declaration            pass by value            double            local variable            function definition            pass by reference            break statement            int            const variable            switch statement            pass by pointer            static variable            global variable            default value/argument      

Solutions

Expert Solution

A function signature with a function name, its list of parameter types, and its return type.

-->It is called function declaration i.e you are telling the compiler that this is a function with a name, list of parameters and their type and also what the function will return. It will be declared as return_type function_name ( parameter list ).

A function with its body of code written.

--> It is called as function definition which describes what things function will do when called. Functions are called either using class objects or directly using class name if they are declared as static.

A variable declared inside a function

--> It is called local variable as it has scope of being locally available only till the function ends. It cannot be accessed outside the function.

A variable declared outside a function

--> It is called global variable and has scope of being globally available throughout the program.

A literal of value 8.0

--> It is a double which helps in storing decimal numbers. declared like double var=8.0

A literal of value 8.0F

--> It is a float since floating point variables have 'F' in their value. declared like float var=8.0F

The default method of passing arguments to parameters inside a C++ function

--> By default C++ uses pass by value i.e the values of arguments cannot be altered within the function which were used in calling that function.

The default method of passing an array into a C++ function

--> Arrays are passed using pass by reference . Pointer to the first element is passed which help in further operations which are done in the function.

Cause the flow of control inside an inner FOR loop to advance to the next iteration in the same loop when possible.

--> This is done using continue statment , using it the flow of control is continued from a given point for the next iteration. It is mostly used in conditions when user wants to skip something in a loop.

Cause the flow of control in the a DO-WHILE loop to exit it.

--> It is done using break , it helps in coming out of the loop at certain point.

This is used in place of the missing trailing arguments in a function call.

--> Default value/argument are used in place of the missing trailing arguments in a function call, which further helps in operations done within a function.


Related Solutions

For each description/definition, select the appropriate completing the audit procedure.       -       A....
For each description/definition, select the appropriate completing the audit procedure.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.    When auditors become aware of facts that existed at the date of the financial statements and auditor's reports, auditors should require the client to disclose the facts and their impact...
Part II. Matching Match each of the following terms with their most appropriate description. A. Target...
Part II. Matching Match each of the following terms with their most appropriate description. A. Target risk B. Countervailing risk C. Synergistic effect 1.The risk scenario which prompts the whole decision process, often reflected by the main objective 2.The risk that arises from the action of managing the target risk 3.Desirable consequence of managing risk other than reducing the target risk
For each of questions 1–4, select and support the most appropriate response, andexplain why each of...
For each of questions 1–4, select and support the most appropriate response, andexplain why each of the other statements is eliminated. 1.    Mitochondrial a.    inheritance is maternal. - INCORRECT b.    DNA is linear. c.    function depends on nuclear genes. d.    diseases have minor effects. e.    two of the above CORRECT                                                                                       (5 marks) 2.    Genomic imprinting is an example of a.     pleiotropy. b.     heterogeneity. c.     epistasis. d.    differential gene expression. - CORRECT e.     a phenocopy.                                                                                                               (5 marks) 3.    A typical human female child a.    has ooctyes in the process of meiosis. b.    has indifferent gonads. c.    degraded the Müllerian...
Which of the following is true, select the most appropriate answer below. An American call option...
Which of the following is true, select the most appropriate answer below. An American call option on a stock should never be exercised early An American call option on a stock should never be exercised early when no dividends are expected There is always some chance that an American call option on a stock will be exercised early There is always some chance that an American call option on a stock will be exercised early when no dividends are expected
Match each term or phrase with its correct description by writing the appropriate letter in the...
Match each term or phrase with its correct description by writing the appropriate letter in the blank: ……….   Business objectives or mission ………. Management accounting ……….   Income Statement ……….   Long-term planning ……….   Accounting ……….   Accountability ……….   Reliability ……….   Maximising business wealth ……….   Financial accounting ……….   Control 1.A process and system for collecting, analysing and communicating economic information 2.Financial information provided to, and useful for, a broad range of users, including managers and others 3.General statements of the business’ aim, typically...
GENETIC EXPERT Select and support the most appropriate response, and explain why each of the incorrect...
GENETIC EXPERT Select and support the most appropriate response, and explain why each of the incorrect statements is eliminate. Sequencing of the human genome can reveal A).mutations that do not alter phenotype. B) mutations that do not alter genotype. C)which tissues express a gene. D) how many genes a person has. E.)epigenetic effects.
For each of the following situations, select the most appropriate risk financing plan (retention, transfer, or...
For each of the following situations, select the most appropriate risk financing plan (retention, transfer, or hybrid) for the given organization based on the given loss exposure’s relative frequency and severity. Local Package Delivery experiences frequent physical damage losses to its trucks. National Farm Products wants to protect its poultry operation from the possible financial consequences of an avian flu outbreak. Construction Contractor recognizes that worker injuries are an unfortunate consequence of doing business.
Match each description with the appropriate term.       -       A.       B....
Match each description with the appropriate term.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.    Subset of corporate governance that focuses on the management and assessment of strategic IT resources.       -       A.       B.       C.       D.       E.       F.       G....
Match each description with the appropriate term.       -       A.       B....
Match each description with the appropriate term.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.    A subset of the database that defines user’s data domain and access.       -       A.       B.       C.       D.       E.       F.       G.       H....
Match each description with the appropriate term.       -       A.       B....
Match each description with the appropriate term.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.    Automatically generated constantly by the system when user enters a PIN.       -       A.       B.       C.       D.       E.       F.       G.       H.   ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT