0
0
Redisquery~10 mins

ZSCORE for member score in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to get the score of a member from a sorted set.

Redis
ZSCORE [1] member1
Drag options to blanks, or click blank then click option'
AZRANGE
BZADD
Cmyset
Dmember1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the member name as the sorted set key.
Using commands like ZADD or ZRANGE instead of the sorted set key.
2fill in blank
medium

Complete the code to get the score of 'player42' from the sorted set 'game_scores'.

Redis
ZSCORE [1] player42
Drag options to blanks, or click blank then click option'
Agame_scores
Bplayer42
Cscores
Dplayers
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the member name with the sorted set key.
Using a wrong sorted set key.
3fill in blank
hard

Fix the error in the command to get the score of 'user99' from 'leaderboard'.

Redis
ZSCORE leaderboard [1]
Drag options to blanks, or click blank then click option'
Auser99
Bleaderboard
Cuser100
Dscore
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong member name.
Using the sorted set name as the member.
4fill in blank
hard

Fill both blanks to get the score of 'memberX' from the sorted set 'scores_set'.

Redis
ZSCORE [1] [2]
Drag options to blanks, or click blank then click option'
Ascores_set
BmemberX
CmemberY
Dscore_set
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the sorted set key and member name.
Using a wrong sorted set key.
5fill in blank
hard

Fill all three blanks to get the score of 'playerA' from 'ranking_list' using the correct command format.

Redis
[1] [2] [3]
Drag options to blanks, or click blank then click option'
AZSCORE
Branking_list
CplayerA
DZADD
Attempts:
3 left
💡 Hint
Common Mistakes
Using ZADD instead of ZSCORE.
Swapping the order of arguments.