Functions in C MCQs Quiz.This is the first post for the students of ComputerICS
Part 2 | Computer Science 2nd Year Chapter No.13
Functions in C. Find the most import and conceptual multiple choice
questions with answer for the final examination of intermediate and for the
entry tests of university like ECAT.
We tried our best to
provide the most simple solution of MCQs on Function in C, importance of
functions of C language. This post covers the topics i.e., introduction to
functions / modules, built-in functions, user defined functions, local
variables, global variables, scope of variables, and lifetime of the variables.
If you have any query or suggestion, please feel
free to ask us in comments for further betterment and stay linked with us for
more multiple choice questions (MCQs) | Quizzes, short questions and answers,
and solution of exercise programs.
After executing return expression, remaining statements of function are?
executed but not displayed
executed and displayed
skipped
none of these
An external variable is defined in?
in main() only
in first function only that uses it
in any function that uses it
outside of any function
Any changes made to formal parameters does not effect on ____ parameters?
actual
dummy
actual + dummy
none of these
Consider the following code: int result(int, int); main(){ result(1,2);} int result(int x,int y) { return x+y;} What will happen if we call result function?
control will be transferred to result function
body of result() is executed
return statement stops execution of result()
all of these
Global variables are created in?
ROM
main memory
hard disk
none of these
If function does not use any parameters, then use of void keyword is?
mandatory
optional
important
none of these
In C programming, modules are also known as?
subroutines
subprograms
programs
none of these
The arguments or parameters passed in function call are called?
actual parameters
formal parameters
dummy arguments
none of these
The block of code in which a variable can be access is called?
block of variable
scope of variable
compound area of variable
location of variable
The braces in a function are used to define?
function header
parameter list
function body
return expression
The called function performs working on?
actual parameters
formal parameters
actual + formal parameters
none of these
The global variable can be accessed?
by any function in a program
anywhere in whole function
within a single function
within the braces in which it is declare
The information provided to function is known as?
data
variables
arguments
constants
In C program, two functions can have same?
same name
same parameters
same name & same parameters
same name but different parameters
The part of function which gives us information like return type, name of function and its parameters is called?
function header
body of function
return expression
all of these
The process of allocating and de-allocating memory to variables is called?
Post a Comment
Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.