You can prepare effectively for Grade 7 C Programming for Beginners with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Functions". These 10 questions have been designed by the experts with the latest curriculum of Grade 7 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
What will happen after compiling and running following code?
main()
{
printf("%p", main);
}
Detailed Solution: Question 1
Detailed Solution: Question 2
Determine output:
main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
Detailed Solution: Question 3
What is the result of compiling and running this code?
main()
{
char string[] = "Hello World";
display(string);
}
void display(char *string)
{
printf("%s", string);
}
Detailed Solution: Question 4
What will be the output of the following program code?
main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
Detailed Solution: Question 5
What will be printed when this program is executed?
int f(int x)
{
if(x <= 4)
return x;
return f(--x);
}
void main()
{
printf("%d ", f(7));
}
Detailed Solution: Question 6
Which of the following function calculates the square of 'x' in C?
When a function is recursively called all the automatic variables are stored in a ..........
What is the output of this C code?
int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
Detailed Solution: Question 9
What is the output of this C code?
void m()
{
printf("hi");
}
void main()
{
m();
}
10 videos|14 docs|15 tests |