Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Unit Testing
Grade Level
Computer Science
HSCS.174 Unit Testing
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
The function recommendationScore(profile, item) uses only fields passed into the function. Which unit test keeps the recommendation logic independent and ethical?
A
Ask students whether the recommendations feel personal.
B
Run recommendations on real student histories and inspect the top results manually
C
Connect the live analytics database and compare scores for several users.
D
Use a synthetic profile and item with known features, call recommendationScore, and assert the expected numeric score without using real student data.
Submit Answer