Quiz 12 - Totaling and Counting

Quiz 12 - Totaling and Counting

11th Grade

10 Qs

quiz-placeholder

Similar activities

CodeHS Python Unit 5 Review

CodeHS Python Unit 5 Review

9th - 12th Grade

15 Qs

Loops: Accumulator Variables

Loops: Accumulator Variables

9th - 12th Grade

10 Qs

AP CSP - Code.org Unit 3 Review

AP CSP - Code.org Unit 3 Review

9th - 12th Grade

15 Qs

JavaScript

JavaScript

9th - 12th Grade

15 Qs

JavaScript Bootcamp

JavaScript Bootcamp

9th - 12th Grade

15 Qs

Programming Quiz 1-3 | LPE-101 by Mettle X

Programming Quiz 1-3 | LPE-101 by Mettle X

9th - 12th Grade

15 Qs

Computer Science Test 3 Review

Computer Science Test 3 Review

6th - 12th Grade

13 Qs

Mobile Devices

Mobile Devices

9th - 12th Grade

14 Qs

Quiz 12 - Totaling and Counting

Quiz 12 - Totaling and Counting

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Casey Devet

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which operator is used to increase a variable's value by 1?

++

--

+=

-=

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which operator is used to subtract a given number to a variable's value?

+=

-=

*=

/=

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

When totaling or counting using a loop, the accumulator variable MUST be declared and given an initial value BEFORE the loop.

True

False

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following statements will multiply the value of "num" by 5 and store the result in "num"?

num =* 5;

num * 5;

num * 5 = num;

num *= 5;

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following will decrease the value of "num" by one?

num = -num;

num--;

num-;

num -= num;

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What will this program do?

count the values input by the user

count the even numbers input by the user

total all of the values input by the user

total the even numbers input by the user

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What will this program do?

count the values input by the user

count the even numbers input by the user

total all of the values input by the user

total the even numbers input by the user

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?