#include<stdio.h>
int main()
{
function();
return 0;
}
void function()
{
printf("Function in C is awesome");
}
2nd C Programming Quiz
Quiz
•
Computers
•
University
•
Hard
Tech Ninjas
Used 15+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
function();
return 0;
}
void function()
{
printf("Function in C is awesome");
}
Function in C is awesome
No output
Runtime Error
Compilation Error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the C program?
#include<stdio.h>
a()
{
printf("Function");
}
b()
{
printf("Function in C");
}
c()
{
printf("C function");
}
main()
{
int (*ptr[3])();
ptr[0] = a;
ptr[1] = b;
ptr[2] = c;
ptr[2]();
return 0;
}
Function
Function in C
C Function
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the Output of this?
#include<stdio.h>
int function();
main()
{
int i;
i = function();
printf("%d", i);
return 0;
}
function()
{
int a;
a = 250;
return 0;
}
Runtime Error
0
250
No Output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the C program?
#include<stdio.h>
int main(){
printf("%p",main);
return 0;
}
Address
Compilation Error
Garbage Value
Runtime Error
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output?
72 72 72
72 110 48
Compilation error
No output
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the C program?
#include<stdio.h>
enum colors {apple,orange,mango};
int main()
{
printf("%d %d %d",mango,apple,orange);
return 0;
}
3 1 2
2 0 1
0 1 2
1 0 2
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
4 4
8 8
Error
4 8
50 questions
Python Basic
Quiz
•
University
47 questions
PPS TEST 4
Quiz
•
University
50 questions
Data Structures Quiz
Quiz
•
University
50 questions
codinggss
Quiz
•
University
49 questions
Quiz on C Operators
Quiz
•
University
50 questions
PRF192 - FE2
Quiz
•
University
50 questions
Python and C Programming Quiz
Quiz
•
University
53 questions
C Programming Quiz
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade