Modulus % (Computer Science)
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Edward Barcenas
Used 9+ times
FREE Resource
Enhance your content in a minute
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 )
Create a free account and access millions of resources
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
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
12 questions
Tin học 2
Quiz
•
11th Grade
20 questions
Informatika
Quiz
•
10th Grade
10 questions
Quiz Informatika 10.8, 10.9, 10.10
Quiz
•
10th Grade
17 questions
Traffic Light Project Quiz
Quiz
•
9th Grade
20 questions
Quiz Inf X.B
Quiz
•
10th Grade - University
15 questions
Arduino
Quiz
•
7th - 9th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
