1. What is the result of the following expression if x = 5 and y = 10?
x == y
SJI9-ICT 2ND QUARTER EXAM
Quiz
•
Information Technology (IT)
•
9th Grade
•
Hard
TEACHER ROSE
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the result of the following expression if x = 5 and y = 10?
x == y
TRUE
FALSE
ERROR
Answer explanation
5 == 10 evaluates to false because 5 is not equal to 10.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of this expression if x = 15 and y = 15?
x >= y
TRUE
FALSE
ERROR
Answer explanation
15 >= 15 is true because 15 is equal to 15, so the condition is satisfied.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 8 and y = 5, what is the result of this comparison?
x < y
TRUE (1)
FALSE (0)
ERROR
Answer explanation
8 < 5 is false because 8 is greater than 5.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression if x = 3 and y = 3?
x != y
TRUE
FALSE
ERROR
Answer explanation
Explanation: 3 != 3 is false because 3 is equal to 3, so they are not different.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 12 and y = 20, what will be the output of this expression?
x > y
TRUE
FALSE
ERROR
Answer explanation
12 > 20 is false because 12 is less than 20.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given x = 7 and y = 7, what is the result of this comparison?
x <= y
TRUE
FALSE
ERROR
Answer explanation
7 <= 7 is true because 7 is equal to 7, so the condition is satisfied.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the == operator do in C++?
Compares two values for equality
Compares two values for inequality
Checks if one value is greater than another
Checks if one value is less than or equal to another
25 questions
COMPUTER RELATED SYMBOLS REVIEWER MADE BY ETLIZTE
Quiz
•
9th Grade
30 questions
Revision Quiz 3
Quiz
•
9th Grade - University
30 questions
Test12
Quiz
•
9th - 12th Grade
25 questions
Kuis Tambahan Python
Quiz
•
9th - 12th Grade
30 questions
Test9
Quiz
•
9th - 12th Grade
30 questions
Java Code Output Quiz
Quiz
•
9th - 12th Grade
25 questions
Quizizz JavaScript Attempt 2 Review
Quiz
•
9th - 12th Grade
34 questions
Python Basic (Grade9)
Quiz
•
9th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade