Choose a right C Statement.

c

Quiz
•
Computers
•
University
•
Hard
Ruchi Agrawal
Used 3+ times
FREE Resource
52 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 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
45 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
45 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
45 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
45 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
45 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
45 sec • 1 pt
Choose correct Syntax for C Arithmetic Compound Assignment Operators.
a+=b is (a= a+ b)
a-=b is (a= a-b)
a*=b is (a=a*b)
a/=b is (a = a/b)
a%=b is (a=a%b)
All the above.
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
C Programming Basics

Quiz
•
University
50 questions
TARANG 2023 Technical Quiz

Quiz
•
University
50 questions
codinggss

Quiz
•
University
54 questions
Unit 2 Final Quizz

Quiz
•
University
49 questions
Quiz on C Operators

Quiz
•
University
50 questions
Java Programming Quiz 2-6

Quiz
•
University
49 questions
Test 1

Quiz
•
University
50 questions
C Programming Basics

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade