
C Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Sunil Kumar
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
C Language

Quiz
•
10th Grade - University
15 questions
C - Language Quiz

Quiz
•
12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
10 questions
Programação em C

Quiz
•
10th - 12th Grade
10 questions
แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

Quiz
•
7th Grade - University
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
15 questions
Casting in Java

Quiz
•
11th - 12th Grade
11 questions
JAVA QUIZ

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade