
2nd C Programming Quiz
Authored by Tech Ninjas
Computers
University
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
Introduction to Data Communication 2
Quiz
•
University
50 questions
Review-PTS2-Gr5
Quiz
•
5th Grade - University
45 questions
Quiz-PTS2-TIK Gr4
Quiz
•
4th Grade - University
50 questions
DS-UNIT-2-Stack Queue
Quiz
•
University
50 questions
Excel
Quiz
•
University
45 questions
Culture générale en informatique
Quiz
•
University
50 questions
KUIS TKJ KE-2
Quiz
•
KG - University
50 questions
Fundamental of OS - Revision 2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade