C loops

C loops

University

10 Qs

quiz-placeholder

Similar activities

Quiz - Control Structure in C programming

Quiz - Control Structure in C programming

University

15 Qs

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

Java Control Flow and Collections

Java Control Flow and Collections

University

10 Qs

CSC126_Chapter4_Part1

CSC126_Chapter4_Part1

University

10 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

CIS1101-programming practice2

CIS1101-programming practice2

University

10 Qs

Java

Java

University

15 Qs

C loops

C loops

Assessment

Quiz

Computers

University

Hard

Created by

Ansgar Meroth

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

int sum=10;

for (int i=0;i<=10;i++) {

sum+=i;}

How often does the loop run?

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

int sum=10;

for (int i=0;i<10;i++) {

sum+=i;}

What is the result of sum after the loop?

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

int sum=10;

for (int i=0;i<10;i++) {

sum+=i;}

How often does the loop run?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of loop is a for loop?

Pretest

Nontest

Midtest

Posttest

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct format of a "for" loop?

for(int i = 0; i < 10; i++);

for[int i = 0; i < 10; i++];

for(int i = 0; i < 10; i++)

for[int i = 0; i < 10; i++]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three parts of a for loop?

initialize; test; increment

test; initialize; increment

increment; test; initialize

Larry; Mo; Curly

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int i=0;

while (i>0){

cout << "hello";

i++;}

How often does this run?

0

1

infinite

not sure

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?