0
0
Redisquery~10 mins

LLEN for list length 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 length of the list stored at key "mylist".

Redis
LLEN [1]
Drag options to blanks, or click blank then click option'
Aitems
Blist
Clength
Dmylist
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong key name like 'list' or 'length' instead of the actual list key.
Forgetting to provide the key name after LLEN.
2fill in blank
medium

Complete the code to get the length of the list stored at key "tasks".

Redis
LLEN [1]
Drag options to blanks, or click blank then click option'
Atasks
Bitems
Clist
Dlength
Attempts:
3 left
💡 Hint
Common Mistakes
Using a generic word like 'list' or 'items' instead of the actual key.
Leaving the key name blank.
3fill in blank
hard

Fix the error in the command to get the length of the list "queue".

Redis
LLEN [1]
Drag options to blanks, or click blank then click option'
A"queue"
Bqueue
Clist
Dlength
Attempts:
3 left
💡 Hint
Common Mistakes
Adding quotes around the key name causing syntax errors.
Using a wrong key name.
4fill in blank
hard

Fill both blanks to get the length of the list "shopping" and store it in variable length.

Redis
length = [1] [2]
Drag options to blanks, or click blank then click option'
ALLEN
Bshopping
Cmylist
DGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using GET instead of LLEN.
Using wrong key names.
5fill in blank
hard

Fill all three blanks to get the length of the list "tasks" and print it.

Redis
length = [1] [2]
PRINT [3]
Drag options to blanks, or click blank then click option'
ALLEN
Btasks
Clength
DGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using GET instead of LLEN.
Printing the key name instead of the variable.
Using wrong key names.