MCQ on Functions in C.This is the second 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. Unit No.13 functions in C MCQs with
answers, MCQ on functions in c, 2nd year MCQs, 2nd year computer MCQs online
test.
We tried our best to make / select the most important MCQ on functions in C | 2nd year MCQs | 2nd year computer MCQs online test. This post for online test | quiz and covers the topics i.e., introduction to
subprograms | functions | modules, built-in functions, user-defined functions,
local and global variables & their scope, actual parameters (arguments),
formal parameters, lifetime of the variables, function prototype, function
calling, and function header.
When control comes outside of certain block, it’s all variables are?
created
destroyed
ignored
none of these
Which of the following is a type of function in C?
built-in functions
user-defined
built-in + user-defined functions
none of these
Which of the following is an advantage of using structured programming?
Size of module gets smaller
debugging becomes easy
modification becomes easy
all of these
Which of the following is not true about structured programming?
difficult debugging
division of program
block of codes are scattered
none of these
Which of the following is true about a function call?
transfer control to the called function
stop execution of program
transfer control to main function
resume execution of program
Which of the following is true about a function?
building block of C
increase reusability of program
enables parallel development of software
all of these
Which of the following is true about function prototype?
gives basic information of function to compiler
it is a single line statement
ends with a semicolon
all of these
Which of the following keyword is used to show that no parameters are used in function?
unsigned
void
signed
struct
Which of the following variable has more life time?
local variable
static variable
global variable
static + global variables
____ must be included to use built-in functions?
header file
master file
executable file
built-in file
Memory is allocated to a local variable at the time of its?
declaration
destruction
definition
first reference
The number of actual parameters in code given below are? int sum(int, int); int x=2; void main() { int y=3, ans; ans=sum(x,y); printf(“%d+%d=%d”,x,y,ans); } int sum(int a, int b) { return a+b; }
Post a Comment
Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.