C Programming

Quiz
•
University
•
Medium
Mohd. Khan
Used 61+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C Program.?
int main()
{
int a=25;
while(a <= 27)
{
printf("%d ", a);
a++;
}
return 0;
}
25 25 25
25 26 27
27 27 27
Compiler error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C Program.?
int main()
{
int k, j;
for(k=1, j=10; k <= 5; k++)
{
printf("%d ", (k+j));
}
return 0;
}
compiler error
10 10 10 10 10
10 11 12 13 14 15
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C Program.?
int main()
{
int k;
for(k=1; k <= 5; k++);
{
printf("%d ", k);
}
return 0;
}
1 2 3 4 5
1 2 3 4
6
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops in C Language are implemented using.?
While Block
For Block
Do While Block
All the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
char arr[7]="Network";
printf("%s", arr);
return 0;
}
Network
N
Garbage Value
Compilation error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
int main()
{
char arr[11]="The African Queen";
printf("%s",arr);
}
The African Queen
The
The African
Compilation error
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Tech-Quiz (1st Round)

Quiz
•
University
30 questions
QUIZ

Quiz
•
University
30 questions
Think Tank Tuesday

Quiz
•
University
40 questions
First Round

Quiz
•
University
30 questions
Code debugging - Round 1

Quiz
•
University
30 questions
C-Volution (Easy 1)

Quiz
•
University
30 questions
C Programming

Quiz
•
University
30 questions
C Language Quiz

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade