
Funciones en programación C

Quiz
•
Professional Development
•
Professional Development
•
Hard
PANKAJ KUNEKAR
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Functions

Quiz
•
Professional Development
10 questions
C Structures

Quiz
•
Professional Development
10 questions
Day10_Quiz_NBKR

Quiz
•
Professional Development
20 questions
HACKATHON HUSTLE(ROUND 2)

Quiz
•
Professional Development
11 questions
2024 Audit Cap Quiz

Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
20 questions
HACKATHON HUSTLE(ROUND 1)

Quiz
•
Professional Development
10 questions
Digital Design Quiz - Round 4

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade