Q1) Multiple arguments passed by a function are separated by:
- Period
- Comma
- Colon
- Semi Colon
Answer:Comma
Explanation:Multiple arguments passed by a function are separated by commas.
Q2) The Semi Colon is used in C-program to:
- Terminate a C Statement
- Execute a C Statement
- Start a C Statement
- Compile a C Statement
Answer:Terminate a C Statement
Explanation:The semi-colon (;) in C-programming is used to mark the end of a statement. It is used to terminate a single statement or expression in C.
Q3) Formal arguments are also called:
- Actual arguments
- Referenced-arguments
- Dummy arguments
- Original arguments
Answer: Dummy arguments
Explanation: Dummy arguments
Q4) What is the variable that is used by the function to receive an argument:
- Expression
- Function
- Parameter
- Constant
Answer:Parameter
Explanation:The variable that is used by a function to receive an argument is called a "parameter".
Q5) Function prototype for built in functions are specified in.
- Image File
- Object File
- Header File
- Source File
Answer:Header File
Explanation:The function prototypes for built-in functions are specified in header files.
Q6) In C- Language, First line of the function definition is known as a:
- Function Header
- Parameters
- Function bedy
- Argumnents
Answer:Function Header
Explanation:In C language, the first line of the function definition is known as the function header.
Q7) The printf is a:
- User defined function
- Keyword
- None of these
- Built in function
Answer:Built in function
Explanation:In C language, printf is a built-in function used to output formatted data to the console or standard output stream. It is commonly used to print strings, variables, and other data types. The printf function is part of the standard input/output library stdio.h.
Q8) A type of function that is written by the programmer is known as:
- User- defined
- Subprograms
- Subroutine
- Built- in- fuction
Answer:User- defined
Explanation:A type of function that is written by the programmer is known as a user-defined function. These functions are created by the programmer to perform specific tasks or operations that are not provided by the built-in functions of the programming language. User-defined functions can be called multiple times from different parts of a program, making them a powerful tool for organizing and structuring code.
Q9) The Keyword used to specify the value returned by a function is:
- Return
- Continue
- Satie
- Break
Answer:Return
Explanation:The keyword used to specify the value returned by a function in C is "return".
Q10) A function can Reture _________ value.
- 1
- 4
- 3
- 2
Answer:1
Explanation:A function can return a single value in C programming language.
Q11) A built in function:
- Cannot be redefined
- Can be redefined
- Should be redefined
- Cannot retum value
Answer:Cannot be redefined
Explanation:A built-in function is a function that is included in the programming language's standard library, which can be called directly from a program without the need for the programmer to write the function's implementation from scratch. Examples of built-in functions in C include printf, scanf, sqrt, sin, cos, etc.
Q12) Memory allocated to a local variable at the time of its:
- Declaration
- Firsi refi
- Static variable
- Definition
Answer:Declaration
Explanation:In C and C++, local variables are typically declared at the beginning of a function, but the memory is allocated when the function is called and is deallocated when the function returns.
Q13) The scope of variable refers to its:
- bere
- Accessibitity
- Name
- Length
Answer:Accessibitity
Explanation:The scope of a variable refers to its visibility or accessibility within a program. It determines where the variable can be accessed and used in the program. In C language, there are three types of scope:
Q14) Another name of built in function is: . - (AIKA
- Library function
- Arithmetic function
- User defined function
- All of these
Answer:Library function
Explanation:Standard library function.
Q15) Function declaration is also known as function:
- Definition
- Header
- Parameters
- Prototype
Answer:Prototype
Explanation:A function prototype is a declaration of the function that specifies the function's name, return type, and parameters, but does not contain the function body.
Q16) Function that are the part of language are called:
- Intrinsic
- Language defined
- Built in Function
- All these
Answer:Built in Function
Explanation:Functions that are part of a programming language and are available for use without needing to be explicitly defined are called built-in functions or library functions or as well as Built in Function.
Q17) The first line of User-defined function is:
- Arguments
- Header
- Calling
- Prototype
Answer:Header
Explanation:The first line of a user-defined function in C programming language is the function header, which includes the function name, return type, and parameter list (if any). For example:
int addNumbers(int a, int b) {
Q18) The set of statement in curly braces in a loop is known as ___ of the loop:
- Title
- Header
- Center
- Body
Answer:Body
Explanation:The set of statements in curly braces in a loop is known as the loop body.
Q19) Which provides information about the function to the compiler:
- Function prototype
- Function call
- Function body
- Function header
Answer:Function prototype
Explanation:The function prototype provides information about the function to the compiler. It includes the function name, return type, and the type and order of its parameters.
Q20) The statement that activates a function is known as:
- Function design
- Function output
- Function definition
- Function call
Answer:Function call
Explanation:The statement that activates a function is called a function call or function invocation.
Q21) Local Variables are also called:
- Automatic variables
- Static variable
- Register variable
- Run time variable
Answer: Automatic variables
Explanation:Local variables are created and destroyed automatically with function calls, storing data within the function's scope and inaccessible outside of it, without requiring manual memory management. .
Q22) Global variable are created in:
- ROM
- Hard disk
- Cache
- RAM
Answer:RAM
Explanation:Global variables are defined outside functions, accessible throughout the program, and persist until the program terminates, enabling data sharing across functions and modules. .
Q23) Variable are created in:
- Cache
- Hard disk
- ROM
- RAM
Answer:RAM
Explanation:Yes It's True: variables are created in the Random Access Memory (RAM) of a computer. When a variable is declared or initialized in a program, a portion of memory is allocated to store its value.
Q24) Formal arguments are also called:
- Actual Arguments
- Dummy Arguments
- Original Arguments
- Referenced Arguments
Answer: Actual Arguments
Explanation:Formal arguments are also called parameters.
Q25) The name of actual and formal parameters:
- Must be same
- May or may not be same
- Must be different
- Must be in lower case
Answer:May or may not be same
Explanation:May or may not be same
In addition The actual parameters are also called arguments, while the formal parameters are also called parameters or function arguments.
Q26) The parameters in function declaration:
- Actua! parameters
- Formal paramete:
- Returned parameters
- Call parameters
Answer:Actua! parameters
Explanation:The parameters in function declaration are also known as formal parameters or function parameters.
Q27) The process of sending argument to a function is called:
- Sending
- Filtering
- Passing
- Delivering
Answer:Passing
Explanation:The process of sending argument to a function is called passing the argument.
0 Comments