Questions

MCQ . (1 Marks)

🎯

Test yourself on this topic

46 questions · timed · auto-graded

MCQ 11 Mark
Which of the following is not an in$-$built library function?
  • A
    pow $( )$
  • B
    printf $( )$
  • sum $( )$
  • D
    sqrt $( )$
Answer
Correct option: C.
sum $( )$
View full question & answer
MCQ 21 Mark
By default the main function returns$..........$
  • A
    char value.
  • B
    float value.
  • Integer value.
  • D
    double value.
Answer
Correct option: C.
Integer value.
View full question & answer
MCQ 31 Mark
The main function in $C$ language is a$..........$
  • user defined function.
  • B
    library function
  • C
    key word
  • D
    reserved function.
Answer
Correct option: A.
user defined function.
View full question & answer
MCQ 41 Mark
In $..........$ category of function, there is two way communication between the calling and the called function.
  • A
    A function with no arguments and no return values
  • B
    function with arguments and no return values
  • function with arguments and return values
  • D
    none of the given
Answer
Correct option: C.
function with arguments and return values
View full question & answer
MCQ 51 Mark
In $..........$ category of function, the arguments are passed from the calling function to the called function but the called function do not return any value.
  • A
    function with no arguments and no return values
  • function with arguments and no return values
  • C
    function with arguments and return values
  • D
    none of the given
Answer
Correct option: B.
function with arguments and no return values
View full question & answer
MCQ 61 Mark
In $……$ category of function, there is no communication between the called and caller function.
  • function with no arguments and no return values
  • B
    function with arguments and no return values
  • C
    function with arguments and return values
  • D
    none of the given
Answer
Correct option: A.
function with no arguments and no return values
View full question & answer
MCQ 81 Mark
The formal and actual argument should have $……$ relationship.
  • one$-$to$-$one
  • B
    one$-$to$-$many
  • C
    many$-$to$-$many
  • D
    none of the given
Answer
Correct option: A.
one$-$to$-$one
View full question & answer
MCQ 91 Mark
The formal and actual arguments should match in
  • A
    number
  • B
    type
  • C
    order
  • all of the given
Answer
Correct option: D.
all of the given
View full question & answer
MCQ 101 Mark
Which of the following arguments are not used in main $C$ program?
  • A
    Actual
  • B
    Factual
  • Formal
  • D
    All of the given
Answer
Correct option: C.
Formal
View full question & answer
MCQ 111 Mark
When the values or variables declared in a main program are used with a function, they are known as$……$
  • actual parameter
  • B
    factual parameter
  • C
    formal parameter
  • D
    all of the given
Answer
Correct option: A.
actual parameter
View full question & answer
MCQ 121 Mark
The arguments that are used at the time of function definition $($other than main$)$ are known as $……$ arguments.
  • A
    actual
  • formal
  • C
    informal
  • D
    function
Answer
Correct option: B.
formal
View full question & answer
MCQ 131 Mark
The arguments that are used with function call within main function are known$……$argument.
  • A
    formal
  • actual
  • C
    informal
  • D
    function
Answer
Correct option: B.
actual
View full question & answer
MCQ 141 Mark
The function prototype is needed when function is defined after the in the program.
  • A
    vold
  • main $( )$
  • C
    return
  • D
    none of the given
Answer
Correct option: B.
main $( )$
View full question & answer
MCQ 151 Mark
When a function is called in a program, compiler searches for a corresponding function $……$
  • definition
  • B
    address
  • C
    syntax
  • D
    none of the given
Answer
Correct option: A.
definition
View full question & answer
MCQ 161 Mark
$……$means declaration of a function before their use in a main function.
  • A
    Global variable
  • B
    Local variable
  • C
    Global function
  • Function prototype
Answer
Correct option: D.
Function prototype
View full question & answer
MCQ 171 Mark
The statements of the functions are written within$……$
  • A
    $( )$
  • B
    $1$
  • $\{ \}$
  • D
    $<>$
Answer
Correct option: C.
$\{ \}$
View full question & answer
MCQ 181 Mark
When some user defined function is used in a program within main$( )$, that user defined function becomes$……$function..
  • A
    caller
  • called
  • C
    monitor
  • D
    follower
Answer
Correct option: B.
called
View full question & answer
MCQ 191 Mark
When some other user defined function is used in a program main$()$ becomes function.
  • caller
  • B
    called
  • C
    monitor
  • D
    follower
Answer
Correct option: A.
caller
View full question & answer
MCQ 201 Mark
When the calling function sends the data to the called function it is called as$……$
  • A
    argument passing
  • B
    parameter passing
  • $A$ or $B$
  • D
    function prototype
Answer
Correct option: C.
$A$ or $B$
View full question & answer
MCQ 211 Mark
Which of the following is defined before defining the main function?.
  • A
    Function prototype
  • B
    Local variable
  • C
    Global variable
  • Both $A$ and $C$
Answer
Correct option: D.
Both $A$ and $C$
View full question & answer
MCQ 221 Mark
The statements placed between opening and closing curly braces are known as$……$
  • function body
  • B
    statement body
  • C
    prototype
  • D
    none of the given
Answer
Correct option: A.
function body
View full question & answer
MCQ 231 Mark
When the function do not return any value. It's return_data_type should be$……$
  • A
    null
  • violence
  • C
    dull
  • D
    empty
Answer
Correct option: B.
violence
View full question & answer
MCQ 241 Mark
When function's return_data_type is $……$ there is no need to write return statement.in the end of the function.
  • A
    null
  • void
  • C
    empty
  • D
    none of the given
Answer
Correct option: B.
void
View full question & answer
MCQ 251 Mark
If function's return_data_type is void, there is no need to write $……$ in the end of the function.
  • A
    $\}$
  • return
  • C
    both $A$ and $B$
  • D
    none of the given
Answer
Correct option: B.
return
View full question & answer
MCQ 261 Mark
If the function is having more than one argument, all arguments are separated by $……$
  • A
    $:$
  • $.$
  • C
    $:$
  • D
    $=$
Answer
Correct option: B.
$.$
View full question & answer
MCQ 271 Mark
In syntax of function, return_data_type functionname $($arguments$)……$ shows the Input values provided to function along with their datatypes.
  • A
    return_data_type
  • B
    functionname
  • arguments
  • D
    all of the given
Answer
Correct option: C.
arguments
View full question & answer
MCQ 281 Mark
In syntax of function, return_data_type functionname $($arguments$)$ some meaning $……$ should have.
  • A
    arguments
  • function name
  • C
    return_data_type
  • D
    all of the given
Answer
Correct option: B.
function name
View full question & answer
MCQ 291 Mark
In syntax of function, return_data_type functionname $($arguments$)……$ specifies the type of information return by the function.
  • return data type
  • B
    functionname
  • C
    arguments
  • D
    all of the given
Answer
Correct option: A.
return data type
View full question & answer
MCQ 301 Mark
________ of the following is not a library function. $20.$
  • A
    sqrt $( )$
  • B
    cost$)$
  • C
    log$()$
  • int add (int, int):
Answer
Correct option: D.
int add (int, int):
int add (int, int):
View full question & answer
MCQ 311 Mark
$..........$ of the following is user defined function.
  • A
    time $( )$
  • B
    strcmp $( )$
  • C
    log $( )$
  • main $( )$
Answer
Correct option: D.
main $( )$
main $( )$
View full question & answer
MCQ 321 Mark
The function developed for personal use is called_______.
  • user defined function
  • B
    library function.
  • C
    laboratory function.
  • D
    all of the given
Answer
Correct option: A.
user defined function
user defined function
View full question & answer
MCQ 331 Mark
The _______ header file contains mathematical functions such as cos( ). log( ), sqrt ( ),etc.
  • < math.h>
  • B
    < stdlih>
  • C
    < stdio.h>
  • D
    < ctype.h>
Answer
Correct option: A.
< math.h>
< math.h>
View full question & answer
MCQ 341 Mark
The _______header file contains functions related to string conversions, memory allocations, random number generation, etc.
  • B
    < string.h>
  • < stdlih>
  • D
    < ctype.h>
Answer
Correct option: C.
< stdlih>
< stdlih>
View full question & answer
MCQ 351 Mark
The_______header file contains functions related to string such as stremp$( ).$ strlen$( ),$ etc.

  •  
  • B

     
  • C

     
Answer
Correct option: A.

 
View full question & answer
MCQ 361 Mark
The ______header file contains functions related to standard I/0 such as printf $( ),$ scantf $( )$ ,etc.
  • A
    <ctype.h>
     
  • B
    <string.h>
     
  • C
    < math.h>
  • < stdio.h>
Answer
Correct option: D.
< stdio.h>
< stdio.h>
View full question & answer
MCQ 371 Mark
What types of functions are contained by header file?
  • A
    Functions related to time.
  • Functions related to character testing and conversions
  • C
    Functions related to string
  • D
    None of the given
Answer
Correct option: B.
Functions related to character testing and conversions
Functions related to character testing and conversions
View full question & answer
MCQ 391 Mark
________are examples of library functions.
  • A
    printf ( )
  • B
    sqrt( )
  • C
    cos( )
  • All of the given
Answer
Correct option: D.
All of the given
d
View full question & answer
MCQ 401 Mark
The functions that are available in compiled form in C library are called_______ functions.
  • A
    user defined
  • B
    library
  • C
    system defined
  • B or C
Answer
Correct option: D.
B or C
d
View full question & answer
MCQ 411 Mark
_______ reduces the actual length of program and saves memory.
  • Function
  • B
    Modularity
  • C
    Software
  • D
    None of the given
Answer
Correct option: A.
Function
a
View full question & answer
MCQ 421 Mark
_______is an important element of C language.
  • A
    program
  • B
    main ( )
  • C
    function
  • modularity
Answer
Correct option: D.
modularity
D
View full question & answer
MCQ 431 Mark
The approach to divide a complex and big problem into sub-problem is called as_______.
  • A
    detailing
  • modular approach
  • C
    function
  • D
    all of the given
Answer
Correct option: B.
modular approach
b
View full question & answer
MCQ 441 Mark
_______ means partitioning a complex problem into small sub-problems which are easy to understand and maintain.
  • A
    Program
  • Modularity
  • C
    Function
  • D
    None of the given ‎‫
Answer
Correct option: B.
Modularity
b
View full question & answer
MCQ 451 Mark
The function is also known as______.
  • A
    method
  • B
    sub-routine
  • C
    procedure
  • A or B or C
Answer
Correct option: D.
A or B or C
d
View full question & answer
MCQ 461 Mark
_______Is a group of statements that perform a specific task.
  • A
    Formula
  • B
    Program
  • Function
  • D
    Both A and C
Answer
Correct option: C.
Function
c
View full question & answer