ExamVeda
Login
Home
1
In C, what is a function primarily used for?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
2
What is the purpose of a function prototype in C?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
3
What is the result of the expression sqrt(16) in C, assuming proper inclusion of the math library?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
4
In C, how are function arguments passed by default?
Discuss
Answer & Solution
Answer: Option A
Solution:
In the C programming language, function arguments are passed by value by default. This means that when you call a function and pass arguments to it, the function receives copies of the values of those arguments, rather than direct access to the original variables.

Here's a brief explanation of the other options:
Option B: By reference: In C, there is no direct reference concept as in languages like C++ or C#. Pass-by-reference is not the default behavior in C.
Option C: By pointer: While you can pass pointers as function arguments in C, it is not the default behavior. By default, the values themselves are passed.
Option D: By address: Passing by address is essentially the same as passing by pointer, and it is not the default behavior in C.
So, the correct answer is Option A: By value, as it describes the default behavior for passing function arguments in the C programming language.

5
What is the correct way to declare a function in C that takes no arguments and returns an integer?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
6
In C, what is the purpose of the 'return' statement in a function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
7
Which of the following is not a standard C library function for mathematical operations?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
8
What is the main advantage of using functions in C?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
9
What is a function's return type in C if it does not return any value?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
10
In C, what is a function parameter?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board