
Modulus % (Computer Science)
Authored by Edward Barcenas
Computers
9th - 12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement correctly checks if a number is even?
if ( number % 2 != 0 )
if ( number % 2 == 0 )
if ( number % 2 == 1 )
if ( number % 2 == 2 )
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement checks if a number is divisible by 5?
if ( number % 5 != 0 )
if ( number % 5 == 1 )
if ( number % 5 == 0 )
if ( number % 5 == 5 )
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement checks if a number is not divisible by 7?
if ( number % 7 == 7 )
if ( number % 7 != 0 )
if ( number % 7 == 0 )
if ( number % 7 != 7 )
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement correctly checks if a number is divisible by both 3 and 4?
if ( number % 3 == 0 && number % 4 == 0 )
if ( number % 3 == 0 || number % 4 == 0 )
if ( number % 3 != 0 && number % 4 != 0 )
if ( number % 3 != 0 || number % 4 != 0 )
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement checks if the first number is divisible by the second number?
if ( firstNumber % secondNumber == 1 )
if ( firstNumber % secondNumber == 0 )
if ( firstNumber == secondNumber % 0 )
if ( firstNumber % secondNumber != 0 )
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement checks if a number is not divisible by 2 and not divisible by 3?
if ( number % 2 == 0 && number % 3 == 0 )
if ( number % 2 != 0 && number % 3 != 0 )
if ( number % 2 != 0 && number % 3 == 0 )
if ( number % 2 == 0 && number % 3 != 0 )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement checks if a number is divisible by 6 but not by 9?
if ( number % 6 == 0 && number % 9 == 0 )
if ( number % 6 == 0 && number % 9 != 0 )
if ( number % 6 != 0 && number % 9 != 0 )
if ( number % 6 != 0 && number % 9 == 0 )
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
10 questions
Spoljna memorija - HDD
Quiz
•
9th - 11th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
20 questions
Pengayaan Informatika
Quiz
•
12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
13 questions
RAM&HDD/SSD
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade