
C Programming Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Sunil Kumar
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Who is the father of C language?
a) Steve Jobs
b) James Gosling
c) Dennis Ritchie
d) Rasmus Lerdorf
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
float f1 = 0.7;
if (f1 == 0.7)
printf("equal\n");
else
printf("not equal\n");
}
equal
not equal
output depends on compiler
none of the mentioned
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{
printf(5 + "NARAYANA");
return 0;
}
AYANA
ANA
NARAYANA
COMPILE ERROR
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
int x, y = 5, z = 5;
x = y == z;
printf("%d", x);
getchar();
return 0;
}
0
5
1
COMPILE ERROR
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{
int a=2;
switch(a)
{
case 1:printf("1 ");
case 2:printf("2 ");
case 3:printf("3 ");
case 4:printf("4 ");
default:printf("5 ");
}
} }
2
2 3 4
2 3 4 5
Compilation Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{
if(5<3);
else
printf("Hello ");
printf("Hi");
}
A) Hello Hi
Compilation Error
A) Hi
Runtime Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{
char i=1;
while(i<6)
{
printf("%d ", i);
i++;
}
printf("\n");
return 0;
}
1 2 3 ... 127
Compilation Error
1 2 3 ... 127 128 0 1 2 3 ... infinite times
1 2 3 4 5
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
14 questions
AWS Cloud
Quiz
•
11th - 12th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
12 questions
АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1
Quiz
•
12th Grade
15 questions
7.3.1 Network Reconnaissance
Quiz
•
12th Grade
10 questions
Sistema Binario
Quiz
•
1st Grade - University
15 questions
Mikropemproses dan Mikropengawal
Quiz
•
12th Grade - University
10 questions
Software Design and Development Quick Quiz 3
Quiz
•
11th - 12th Grade
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
