Search Header Logo

Funciones en programación C

Authored by PANKAJ KUNEKAR

Professional Development

Professional Development

Used 1+ times

Funciones en programación C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function declaration in C?

A function declaration in C does not require parameters

A function declaration in C specifies only the function name

A function declaration in C defines a global variable

A function declaration in C specifies the return type of the function, its name, and the parameters it receives.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to define a function in C?

return_type function_name { function_body }

return_type function_name(parameters) function_body

return_type function_name(parameters) { function_body }

return_type function_name(parameters) { }

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the use of function prototypes important in C?

To improve the readability of the source code.

To allow the compiler to verify the consistency between the function declaration and its implementation.

To reduce the amount of memory used by the program.

To increase the speed of program execution.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the parameters of a function in C?

The parameters of a function in C are variables used to pass values to the function when called.

The parameters of a function in C are constants that cannot be modified

The parameters of a function in C are only used to return values from the function

The parameters of a function in C are declared at the end of the function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of a function in C?

The return type is specified with the keyword 'return' followed by the corresponding data type.

The return type is specified with the keyword 'output' followed by the corresponding data type.

The return type is specified with the keyword 'result' followed by the corresponding data type.

The return type is specified with the keyword 'type' followed by the corresponding data type.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a function declaration and a function definition in C?

What is the difference between a function declaration and a function definition in C?

A function declaration provides information about the name and parameters of the function, while a function definition includes the body of the function with the actual instructions.

A function definition provides information about the name and parameters of the function.

A function declaration and a function definition are the same in C.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a function prototype is not provided in C?

What happens if a function prototype is not provided in C?

The compiler will assume the function returns an integer and takes an undefined number of arguments.

The function will return a boolean value by default

The function will execute smoothly

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development