Blog Archives
1 … 4 5 6 7 8 9 10 11 12 … 23

07: 50+ SQL scenarios based interview Q&As on Pivot Vs. Unpivot

Q01 Often you will have a requirement to report on a certain dimension, which requires you to convert rows into columns or columns into rows. How will you go about accomplishing this using SQL?
A01 The process of converting rows into columns is know as “

…

Read more ›



07: Coding Scala Way – Regular Expressions

Example #16: Regular Expression Regular expression (aka regex) to identify numbers in a string. Invoking “findFirstIn” and “findAll” functions of the “Regex” class. “[0-9]+”.r is a short form instead of instantiating it as new Regex(“[0-9]+”).

Output

Example #17: Pattern matching with regex Split the given email address into...

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


07: Databricks interview questions & answers – passing variables and arguments

Q01. How will you pass variables or arguments from one notebook to another in Databricks? A01. There are two ways to accomplish this, Firstly, using %run and secondly, using the dbutils.notebook API. %run When you use %run, … 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


07: PySpark built-in functions Interview Q&As with tutorials

Q16: What are built-in functions in pyspark? A16: There are 4 types of functions in pyspark 1) Built-in function:: from org.apache.spark.sql.functions like to_date(Column e), to_utc_timestamp(Column e), etc. … 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


07: Python dictionary tutorial

Q1. What is a dictionary in Python? A1. A dictionary is a general-purpose data structure for storing a group of objects as a set of keys and each key has a single associated value. A value can be a list or list within a list, … 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


07: Q41 – Q48 Scala Async and Actor System Interview Q&As

Q41. What is the purpose of the “async” macro in Scala? A41. The 2.11 and later versions of Scala include the ability to transform code during compilation by using macros. The “async” macro is one of them, which transforms sequential code that uses “Futures” … 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


07: Q62 – Q70 HDFS blocks Vs. splits & Spark partitions Interview Questions & Answers

Q62. Can you explain the difference between HDFS blocks and input splits? A62. A block is a physical representation of data, and a Split is a logical division of your data or records. For example, an input split might split a large text file at the end of a record...

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


07: Scala Factory Method Pattern & Trait Vs Abstract classes

This extends the Scala Class Vs. Object and Companion object interview Q&As to implement the factory method.

Q1. What is a factory method pattern?
A1. It is an Object Oriented Programming design pattern to instantiate objects. For example,

…

Read more ›



08: 50+ SQL scenarios based interview Q&As on CASE statements & NULL safe join

Below question is popular in SQL coding interviews. SQL syntaxes are very easy to learn, but lots of practice is required to be able to understand the business intent, and convert that into SQL statements with proper what if considerations. Break down the requirements to construct the SQL statements.

…

Read more ›



08: Coding Scala Way – Recursion & Higher Order Function

Example #20: nth Fibonacci number

Q1 What is wrong with the following recursive approach to compute the nth Fibonacci number?
A1 It “hangs” for the larger values of “n” like 50.

Q2 How about using an iterative approach as shown below?

…

Read more ›



08: Databricks interview questions & answers on optimization – Partitioning, Optimize, Z-Order & Cacheing

Data skipping is a performance optimization that aims at speeding up queries that contain filters (i.e. WHERE clauses). Data can be skipped using partitioning and z-ordering techniques. Q01. What is data partitioning in Databricks? A01. Partitioning involves putting different rows into different folders. … 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


08: PySpark window functions Interview Q&As with tutorials

Given the below employee.csv file in /tmp folder:

Q22: What is the difference between RANK(), ROW_NUMBER(), and DENSE_RANK() windows functions? A22: RANK() assigns the same rank to rows with equal values, … 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


08: Python Data modelling tutorial – Dunder or Magic Methods, Duck Typing & Protocols

Q1. What is Python data modelling? A1. Objects are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. As an intermediate to experienced Python developer always refer to the Python’s Data model documentation. … 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


1 … 4 5 6 7 8 9 10 11 12 … 23

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data