Quiz for C (Functions)
Q.1 In C, parameters are always ___ ?
Q.2 In C, what is the meaning of following function prototype with empty parameter list
#include<stdio.h>
void fun()
{
/* .... */
}
Q.3 Which of the following is not a valid C variable name ?
Q.4 Which keyword is used to give back the value ?
Q.5 Choose correct statement about Functions in C Language.
Q.6 What are the types of functions in C Language ?
Q.7 What characters are allowed in a C function name identifier ?
Q.8 What is a Function ?
Q.9 Determine the output of this code ?
#include<stdio.h>
void main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
Q.10 The default parameter passing mechanism is
Q.11 Types of function in C language
Q.12 What is the maximum number of statements that can present in a C function ?
#include<stdio.h>
void main()
{
printf("Hello");
}
Q.13 Choose a non Library C function below.
Q.14 What will be the value returned by the following function, when it is called with a value 11 ?
#include<stdio.h>
recur(int num())
{
if((2) != 0 )
return(recur(2) * 10+num% %2)
else
return 1;
}
Q.15 A recursive function is faster than __ loop.
Instructions:-
- This Quiz is based on the basic concepts of C.
- Each correct answer will carry 2 points.
- The time limit for this Quiz is 600 seconds i.e. 10 minutes.
- The timer will start immediately after clicking on the start button.
- Once an option is selected you cannot select any other, So choose wisely.
- Do not refresh the page as it will reset the quiz.
- Once the time is up the quiz will automatically get submitted with number of questions responded.
- Your total score alongwith your name will be displayed after submission of the Quiz.
- Wish you ALL THE BEST. 👍👍
START
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP