January 27, 2020

#MongoDB Part 2: Interview Questions And Answers

How to create Database and Collection in MongoDB?
In MongoDB, the database is used to store all of the collections, and the collection in turn is used to store all of the documents. The documents contain the relevant Field name and Field values.

#MongoDB Part 1: Interview Questions And Answers

What is MongoDB?
MongoDB is a document-oriented NoSQL database used for high volume data storage.
Instead of using tables and rows as in the traditional relational databases, MongoDB makes use of collections and documents. Documents consist of key-value pairs which are the basic unit of data in MongoDB. Collections contain sets of documents and function which is the equivalent of relational database tables.

Meditation keeps me calm: Himanshu Rai

Himanshu Rai, who is currently seen as Keshav Kulkarni in 'Mere Sai - Shraddha Aur Saburi' says meditation keeps him calm and composed.

January 20, 2020

Parag Tyagi to play ACP in Ullu App's 'Paper'..

Ullu App is coming up with a web-series titled 'Paper'. After roping in 'Sanjivini' actor Rohit Roy, the makers have finalized Parag Tyagi to play a prominent role in the series.

January 16, 2020

BARC TV Ratings- Week 1, 2020

Top 10 Hindi GEC Channel
  1. Dangal : 1288934
  2. STAR Plus : 735170
  3. Colors : 675526
  4. SONY SAB : 621468
  5. Zee TV : 583928
  6. Sony Entertainment Television : 500477
  7. Big Magic : 442912
  8. STAR Bharat : 291483
  9. STAR Utsav : 205505
  10. Colors Rishtey : 173371

January 14, 2020

Kate Sharma and Ganesh Yadav roped in for Ullu App's Paper

Ullu App is coming up with web-series titled 'Paper', Sanjivani actor Rohit Roy has been roped in to play the lead role. Now we heard, the makers have zeroed Kate Sharma and Ganesh Yadav.

January 13, 2020

Amazon Prime Music presents Inder Chahal and Asees Kaur's rendition of Teri Lod Nahi and Rabba

All good things come to end. The second season of T-Series MixTape Punjabi had a stupendous run and will conclude with the 11th and the final episode that releases today.

January 10, 2020

Dream accomplished by having a working birthday, says Pooja Singh

Actress Pooja Singh who is currently seen in ‘Shakti’ on Colors TV turned a year older yesterday on 8th January 2020 as she celebrated her birthday on the sets.

January 07, 2020

Missing Number


You have a list of n-1 integers, and these integers are in the range of 1 to n. One of the integers is missing in the list, write a function which will return that missing number. We can assume there are no duplicates in the list.

Example:
Input: arr[] = {1, 2, 4, 5, 3, 7, 8}
Output: 6

January 03, 2020

Rohit Roy to play scam kingpin in Ullu App's next..

Ullu App is coming up with yet another interesting web-series 'Paper'. We heard Rohit Roy, who is currently seen as Vardhan in Sanjivani has been finalized to play scam kingpin in the series.

January 01, 2020

#Java8 Transform object into another type

Sometimes we need to convert or cast or transform an object from one type to another class. There are many ways, by which we can do it.

Let's say we have two objects ExternalPeopleInfo and InternalPeopleInfo. Assume we get ExternalPeopleInfo by calling some external API, but to save the details in our system we need to convert it in to InternalPeopleInfo.

Part 2: Redis Interview Questions And Answers

Explain Redis Hashes data-type?
Redis Hashes are maps between string fields and string values, so they are the perfect data type to represent objects like user-details. Every hash can store up to 2³² — 1 field-value pairs (more than 4 billion).

Explain the Replication feature of Redis?
Redis supports simple master to slave replication. When a relationship is established, data from the master is transferred to the slave. Once this is done, all changes to the master replicate to the slave.

List out the operation keys of Redis?
Operation keys of Redis include: TYPE key, TTL key, KEYS pattern, EXPIRE key seconds, EXPIREAT key timestamp, EXISTS key, DEL key.

Part 1: Redis Interview Questions And Answers

What is in-memory Database?
The in-memory database is a database where it keeps the dataset in RAM. Means that for every interaction with database, you will only access the Main memory. No disk operations involved during this interaction. Hence the operation will be faster as it directly access main memory instead of any disk operation.

What is Redis?
Redis(REmote DIctionary Server) is an open source, in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.

It has is also referred to as a data structure server as such the keys not only contains strings, but also hashes, sets, lists, and sorted sets. Companies using Redis includes Twitter, GitHub, Weibo, Pinterest, Snapchat, Craigslist, StackOverflow, Flickretc.

Cassandra Interview Questions And Answers

What is NoSQL Database?
  • A NoSQL database is sometimes called as Not Only SQL. It is a database that provides a mechanism to store and retrieve data other than the tabular relations used in relational databases. 
  • These type databases are schema-free, support easy replication, have simple API, eventually consistent, and can handle huge amounts of data.
  • Primary objective of a NoSQL database is to have: simplicity of design, horizontal scaling, and finer control over availability.
  • SQL was designed to be a query language for relational databases, and relational databases are usually table- based, much like what we see in a spreadsheet. In a relational database, records are stored in rows and then the columns represent fields in each row. SQL allows we to query within and between tables in that relational database.
  • On the other hand, NoSQL databases are more flexible, NoSQL databases allow we to define fields as we create a record.
  • Nested values are common in NoSQL databases. We can have hashes and arrays and objects, and then nest more objects and arrays and hashes within those.
  • Also fields are not standardized between records in NoSQL databases, we can have a different structure for every record in your NoSQL database.