Blog Archives
1 … 11 12 13 14 15 16 17 18 19 … 23

16B: Scala Monoids, Functors & Monads interview Q&As

Scala Monoids, Functors & Monads interview questions are very popular & form the basis for the functional programming. Q01. Given the below code, is it possible to implement the map(..) method with flatMap(…) within the Monad trait?

A01. Yes. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


17: 50+ SQL scenarios based interview Q&As on teams & matches played

Let’s look at a standard teams interview question to understand your SQL knowledge in using a non-equi join. Problem Statement 1 Given the below 5 teams

1) Write a query so that each team plays with each other only once. 2) Write a query so that each team plays...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


17: Coding Scala Way – What is wrong with this code?

Q. What is wrong with the below code? How will you fix it?

A. The above code will always return “false”. Why? Because map.get(id) returns Some(2016), which is not == to the String value of “2016”. The “==”

…

Read more ›



17: PySpark problem solving Interview Q&As with tutorials – problem 1

This is based on the series of tutorials & interview Q&As at PySpark interview Q&As with tutorials

Problem: Convert the below table

to

Where each column is counted for its occurrence. For example,

…

Read more ›



17: Python OOP and @property decorator tutorial

Members in a Python class are public by default All members in a Python class are public by default. Any member can be accessed from outside the class environment. Here is “person.py”

Python’s convention to make an instance variable protected is to add a prefix _ (single underscore)...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


17: Q99 – Q103 Scala applicative functors interview Q&As

This extends Scala Functors Interview Q&As & Scala monads interview Q&As. You need to remember the following.

Q99. Why do you need an applicative functor? A99. The “map” method in the functor works with a single input argument as explained in the Scala functors interview Q&As. … Read...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


17: Spark interview Q&As with coding examples in pyspark (i.e. python)

Q01. How will you create a Spark context? A01.

Q02. How will you create a Dataframe by reading a file from AWS S3 bucket? A02.

Q03. How will you create a Dataframe by reading a table in a database? … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18 Amazon S3 interview Q&As

Q01. What is Amazon S3 storage? A01. S3 stands for Simple Storage Service, which provides storage through web service interfaces. Unlike the other storage systems like Unix file system, HDFS (i.e. Hadoop Distributed File System), etc which are based on having folders and files, the S3 is based on a...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18: 50+ SQL scenarios based interview Q&As on account balance

Here is another SQL scenario based interview question to determine a candidate’s ability to translate a business requirement into an SQL query. Problem Statement Given the below data of running account balance, find the start_date and end_date where the balance changes.

Expected output:

Create sample data

Solution...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18: PySpark problem solving Interview Q&As with tutorials – problem 2

Problem: Convert the below table

to

Step 1: Let’s create the sample data using PySpark. problem.py:

Run as:

Outputs:

pivot( ) to the rescue Step 2: The code to create the results. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18: Python Abstract Base Classes (i.e. ABC) tutorial

Q. What is the difference between abstract class and interface in Python? A. Python doesn’t have a Java style formal interface, hence distinction between abstraction and interface doesn’t exist. Java uses interfaces because it doesn’t have multiple inheritance, but Python has multiple inheritance. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18: Q104 – Q108 Scala typeclass pattern for decoupling with polymorphism

Q104. What is the importance of “typeclass” pattern in Scala? A104. Typeclass pattern is to achieve decoupling via adhoc polymorphism. Polymorphism separates interfaces from implementations, to decouple what from how. Polymorphism improves code readability with better code organization. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


18: Q121 – Q124 Choosing between HDFS & AWS S3 for BigData projects interview Q&As

More and more organisations are adopting the policy of “Cloud first architecture” where Cloud based storages like AWS S3 plays a major role. A data lake is a storage repository that holds a vast amount of structured, semi-structured, and unstructured raw data in its native format (aka pristine condition). …...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


1 … 11 12 13 14 15 16 17 18 19 … 23

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data