c++ programming

c++ programming

University

20 Qs

quiz-placeholder

Similar activities

Football Quiz

Football Quiz

KG - Professional Development

15 Qs

Rigel C

Rigel C

11th Grade - Professional Development

15 Qs

Unit 10 - World Affairs

Unit 10 - World Affairs

KG - University

16 Qs

Quizizz harian 17/11/2020

Quizizz harian 17/11/2020

KG - Professional Development

15 Qs

Chapter 1 - MA2

Chapter 1 - MA2

University

15 Qs

future time clauses :)

future time clauses :)

3rd Grade - University

20 Qs

Quiz 5 Review

Quiz 5 Review

University

22 Qs

English "CHAPTER 1"

English "CHAPTER 1"

10th Grade - University

20 Qs

c++ programming

c++ programming

Assessment

Quiz

University

Practice Problem

Medium

Created by

Ranjeet Parihar

Used 936+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?