c++ programming

c++ programming

Assessment

Flashcard

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Choose a right C Statement: 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.

Back

All the above.

2.

FLASHCARD QUESTION

Front

What is the output of the following C Program?
int main()
{
int a=5;
while(a >= 3);
{
printf("RABBIT\n");
break;
}
printf("GREEN");
return 0;
}

Back

None of the above

3.

FLASHCARD QUESTION

Front

What is the output of the following C Program?
int main()
{
int a=25;
while(a <= 27)
{
printf("%d ", a);
a++;
}
return 0;
}

Back

25 26 27

4.

FLASHCARD QUESTION

Front

What is the output of the following C Program?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}
while(a <= 30);
return 0;
}

Back

32

5.

FLASHCARD QUESTION

Front

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;
}

Back

32 33 34 35

6.

FLASHCARD QUESTION

Front

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.

Back

All the above.

7.

FLASHCARD QUESTION

Front

What is the output of C Program?
int main()
{
int k;
for(k=1; k <= 5; k++);
{
printf("%d ", k);
}
return 0;
}

Back

6

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?