Choose a right C Statement.
c++ programming

Quiz
•
University
•
Medium

Ranjeet Parihar
Used 878+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops or Repetition block executes a group of statements repeatedly.
Loop is usually executed as long as a condition is met.
Loops usually take advantage of Loop Counter
All the above.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=5;
while(a >= 3);
{
printf("RABBIT\n");
break;
}
printf("GREEN");
return 0;
}
GREEN
RABBIT GREEN
RABBIT is printed infinite times
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}
while(a <= 30);
return 0;
}
32
33
30
No Output
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
if(a > 35)
break;
}
while(1);
return 0;
}
No Output
32 33 34
32 33 34 35
Compiler error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct C Statement.
a++ is (a=a+1) POST INCREMENT Operator
a-- is (a=a-1) POST DECREMENT Operator
--a is (a=a-1) PRE DECREMENT Operator
++a is (a=a+1) PRE INCREMENT Operator
All the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C Quest 2.0

Quiz
•
University
20 questions
C Programming Assessment-1

Quiz
•
University
19 questions
Capsule session 1

Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
25 questions
Code Carnival

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
25 questions
C Programing

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade