| preferred AP College board partner for AP classes
AP Computer Science A/Unit 1: Primitive Types
Start Practice TestPractice Test
About Exam
easy Solved by 11 students
Boolean Relational Operators
< Prev
Next >

Consider the following code segment. Which statement should replace /* missing code */ so that the program prints true?

int a = 5;
int b = 10;
/* missing code */
System.out.println(result);
A

boolean result = a == b;

B

boolean result = a > b;

C

boolean result = a != b;

D

boolean result = a < b;

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1imeanbusinessreplit11 0m 00s 100
#2bommasam00011 0m 14s 86
#3patrickmeijer00911 0m 17s 83
#4lsj0803092211 0m 23s 77
#5parth.taur22711 0m 32s 68
#6theofanusmischa11 1m 07s 33
#7jeonsaw172311 2m 19s -39
Items per page:
10
1 – 7 of 7
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy