untitled

untitled

6th - 8th Grade

22 Qs

quiz-placeholder

Similar activities

Програмирање во С++ за 7 одделение

Програмирање во С++ за 7 одделение

7th Grade

22 Qs

Repetition and Looping

Repetition and Looping

1st - 10th Grade

19 Qs

Arduino Arcade Week 1 Homework

Arduino Arcade Week 1 Homework

8th Grade

20 Qs

Test model

Test model

7th Grade

18 Qs

C++ programming

C++ programming

7th - 12th Grade

20 Qs

Programowanie w c++

Programowanie w c++

7th - 8th Grade

25 Qs

CPP Mid Term SPOT test

CPP Mid Term SPOT test

5th Grade - University

25 Qs

KUIZ PYTHON

KUIZ PYTHON

7th Grade

17 Qs

untitled

untitled

Assessment

Quiz

Computers, Science, Mathematics

6th - 8th Grade

Hard

Created by

kollin vos

Used 1+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Make this code loop three times:


in tries= 0;


while(_________ ) {

cin>> “Looping!”;

tries++;


}

tries < 3

answer == 3

tries > 0

tries < 0

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Make this code stop looping when you get the right answer or have no more tries left


string answer;

int tries = 5;


while(_________) {

cin>> answer;

if (answer == “the right answer”){

cout<<“correct”<<endl;

break;

}

tries - - ;

}

tries == answer

tries > 0

tries >= 3

tries <= 5

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these statements stops a while loop?

stop;

break;

loop pause;

do { }

4.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Fill in the blank with the right symbol to make this code print Tacos 4 times


int tacos = 4;


while(tacos ___ 0){

cout<<“Tacos”<<endl;


tacos - - ;

}

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Fill in the blank to make this code print Go Heat!

3 times


int loop = 0;


while(__________){

cout<<“Go Heat”<<endl;


loop ++ ;

}

loop < 3

answer == 3

loop = 0

loop == 3

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Fill in the blank to make this code print Go Heat!

3 times


int loop = 0;


while(__________){

cout<<“Go Heat”<<endl;


loop ++ ;

}

loop < 3

answer == 3

loop = 0

loop == 3

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Select all of the statements properly increments an int variable by one?

variable++;

variable += 1;

variable + 1;

variable = variable * variable;

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?