C Programming
Quiz
•
Computers
•
5th - 12th Grade
•
Medium
Aarya Aarya
Used 12+ times
FREE Resource
Enhance your content in a minute
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the following code is executed?
void main()
{
printf("MIET");
main();
}
Wrong statement
It will keep on printing MIET
It will print MIET once
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result after execution of the following code if a is 10, b is 5, and c is 10?
if ((a > b) && (a <= c))
a = a + 1;
else
c = c+1;
a = 10, c = 10
a = 11, c = 10
a = 10, c = 11
a = 11, c = 11
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the result of 'num' variable after execution of the following statements?
int num = 58;
num % = 11;
3
5
8
11
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
if (x < 1)
printf("hello");
if (x == 5)
printf("hi");
else
printf("no");
}
hi
hello
no
error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 0;
if (x == 1)
if (x == 0)
printf("inside if\n");
else
printf("inside else if\n");
else
printf("inside else\n");
}
inside if
inside else if
inside else
compile time error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The value of i after the execution of the following segment is
i = 2;
for( i=0; i>10; i=i+1);
1
2
0
11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C language developed at _____?
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
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
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
26 questions
Repaso general de Informática
Quiz
•
8th Grade
26 questions
General Knowledge
Quiz
•
5th Grade - University
26 questions
Empowerment Technology (group 2)
Quiz
•
11th Grade
30 questions
Dbi 4-6
Quiz
•
5th Grade
30 questions
Pengenalan HTML
Quiz
•
10th Grade
30 questions
IGCSE ICT ,Network (ICT Secondary HBL Week 4)
Quiz
•
7th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
