
Funciones en programación C
Authored by PANKAJ KUNEKAR
Professional Development
Professional Development
Used 1+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
2023 Independent Day Quiz
Quiz
•
Professional Development
15 questions
Personal Effectiveness 1
Quiz
•
Professional Development
10 questions
WS 29.12
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
18 questions
Utiliser une messagerie électronique
Quiz
•
Professional Development
17 questions
Telangana cuisine
Quiz
•
Professional Development
15 questions
Labor Relations and Negotations 1
Quiz
•
University - Professi...
10 questions
Gestión de Compras y Contrataciones
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade