Redis MCQ Questions And Answers

Redis MCQs : This section focuses on "Basics" of Redis. These Multiple Choice Questions (MCQ) should be practiced to improve the Redis skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Redis is a?

A. NoSQL database
B. Relational database
C. End-user database
D. Commercial database

View Answer


2. Redis Initial release in?

A. 2008
B. 2009
C. 2010
D. 2011

View Answer


3. Redis Developer?

A. C. Redis
B. P. Redis
C. Redis Labs
D. Z. Redis

View Answer


4. Which of the following is true about Redis?

A. Redis is an open source
B. Redis advanced key-value store
C. Redis scalable web applications
D. All of the above

View Answer


5. Redis is very fast and can perform about ___________ SETs per second?

A. 10000
B. 110000
C. 1000000
D. 111000

View Answer


6. Which of the following is correct syntax of Redis CONFIG command?

A. CONFIG SET CONFIG_SETTING_NAME
B. CONFIG PUT CONFIG_SETTING_NAME
C. CONFIG GET CONFIG_SETTING_NAME
D. All of the above

View Answer


7. To update configuration, you can edit redis.conf file directly or you can update configurations via?

A. CONFIG update command
B. CONFIG put command
C. CONFIG alter command
D. CONFIG set command

View Answer


8. Which of the following file available at the root directory of Redis?

A. redis.conf
B. redis.txt
C. redis.set
D. redis.config

View Answer


9. How many types of data types redis supports?

A. 3
B. 4
C. 5
D. 6

View Answer


10. A string value can be at max ________ megabytes in length.

A. 128
B. 256
C. 512
D. 1024

View Answer


11. Which of the following is a key in string?

SET name "letsfindcourse" 

A. name
B. get
C. set
D. None of the above

View Answer


12. You can add elements to a Redis List on the?

A. Head
B. Tail
C. leaf
D. Both A and B

View Answer


13. What is time complexity for sets in redis?

A. O(N)
B. O(N*N)
C. O(NLOGN)
D. O(1)

View Answer


14. Which of the following is an unordered collection of strings?

A. Sorted Sets
B. Sets
C. Lists
D. Strings

View Answer


15. Which of the following basic syntax of Redis client?

A. $redis-client
B. $redis cli
C. $redis-cli
D. $redis client

View Answer


16. we connect to Redis server running on the local machine and execute a command ?

A. help
B. redis-server
C. ping
D. redis-connect

View Answer


17. The below command is used to?

DEL letsfindcourse

A. The command used to delete the command.
B. The command is used to delete the key.
C. The command is used to set the keys.
D. None of the above

View Answer


18. Which of the following command used to Sets the expiry of the key after the specified time?

A. EXISTS key
B. EXPIRE key seconds
C. EXPIREAT key timestamp
D. PEXPIRE key milliseconds

View Answer


19. Which of the following command is used to Changes the key name?

A. RENAME key newkey
B. RANDOMKEY
C. RENAMENX key newkey
D. TYPE key

View Answer


20. Redis Sorted Sets are similar to Redis Sets, non-repeating collections of Strings

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer





Discussion



* You must be logged in to add comment.