Blog Archives
1 … 13 14 15 16 17 18 19 20 21 … 23

21: Q121 – Q124 Scala Extractor Interview Q&As

Q121 What is an extractor object in Scala? A121 An extractor object is an object with an unapply method. The apply method is like a constructor which takes arguments and creates an object, the unapply takes an object and tries to give back the arguments. … 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


21: Q138 – Q142 AWS data lakes overview Interview Q&As

Q138. What are the basic considerations when building a data lake on an AWS platform?
A138.

1. Ingestion into S3 (i.e. Simple Storage Service) from different source systems. E.g. csv/xml/json files extracted from source systems, streamed data from source systems via message queues/topics,

…

Read more ›



22: 50+ SQL scenarios based interview Q&As on recursion

This extends Common Table Expressions (i.e. CTE) in SQL using the “WITH” clause. You can try the example on DB Fiddle. Use MySQL v8.0 or later. Scenario: 1 Given a table like this with each entry with two dates (i.e. from_date & … 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


22: PySpark Row object Interview Q&As with tutorials

This extends PySpark map vs flatMap Interview Q&As with tutorials. Q01. What is a Row object in PySpark? A01. Row can be used to create a row object by using named arguments. The previous example can be represented with a Row object. … 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


22: Python Duck typing tutorial

Q. What is duck typing? A. Duck typing is a feature of a type system where the semantics of a class is determined by its ability to respond to some message. It is a term used in dynamic languages that do not have strong typing. … 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


22: What are the uses of underscore i.e _ in Scala?

The underscore (_) is one of the symbols used very widely in Scala. It is used as a Wild card, Place holder, Except, Ignore etc. Module Import Used as a wild card, … 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


23: 50+ SQL scenarios based interview Q&As – Join counts

One of the common SQL interview questions is to quiz your understanding of SQL joins. In this let’s look at joins example with two scenarios.

Venn Diagram

Joins can be specified as a venn diagram shown below:

But, it gets a bit more tricky when you consider the below scenarios:

Scenario 1: When both input tables don’t have duplicate values.

…

Read more ›



23: Python coding questions – magic method, generator & debugging

Q1. What will be the output of the below code & why?

A1. The output will be

The to=[] in the append(…) function make use of the defaults. When the defaults get called for the first time it is initialised and then subsequent calls will append the values...

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


23: Scala Traits, Mixins, self-type annotation & DI with Cake pattern

Q01. What is a trait in Scala? A01. In Scala, trait is a collection of abstract and non-abstract methods. You can create trait that can have all abstract methods or some abstract and some non-abstract methods. A variable that is declared either by using val or var keyword in 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


24: 50+ SQL scenarios based interview Q&As – Window Query

If you want to learn the basics of SQL analytics function, first read SQL analytic functions interview questions – Part 1 | SQL analytic functions interview questions – Part 2 | SQL analytic functions interview questions – Part 3

Given the below data:

Q1.

…

Read more ›



24: Python coding questions – formatting, join, regex & write a program

This extends 23: Python coding questions – part 1. You can either set up your Python environment or use an online interpreter like www.online-python.com. Q1. Given the below variable values, name = “John” age = 23 how will you print “ … 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


25: 50+ SQL scenarios based interview Q&As – get the last non null value

The below SQL problem can be practiced on MySQL database at db-fiddle or database of your choice. Q1. Given the below data, how will you find the last non null values for each event_id?

Create table & insert data

Solution In order to ignore null values “CASE WHEN...

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


25: Python protocol classes tutorial & interview Q&As

This post extends Python Abstract Base Classes (i.e. ABC) tutorial and Python Data modelling tutorial – Dunder or Magic Methods, Duck Typing & Protocols Q1. What is a Python protocol class ? A1. In Python, … 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 … 13 14 15 16 17 18 19 20 21 … 23

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data