Blog Archives

15: Q87 – Q92 Scala monads interview Q&As

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

Q87. What is a monad? A87. Monad is a wrapper (or a context) that flattens the result so that it can be further processed by mapping over each element. Everything that’s a monad is a functor…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in member-paid, Scala Interview Q&As

14: Q84 – Q88 Scala Functors Interview Q&As

This extends Scala monoids interview questions & answers. Q84. What do you understand by the terms functors, monads, and applicatives ? A84. Functors, Monads, and Applicatives are concepts or patterns that abstract complexities in computations, and are NOT traits or classes. You can think of them as container type classes…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in member-paid, Scala Interview Q&As

09: Coding Scala Way – Fibonacci Series

Example #22: Fibonacci series in Scala This extends determine the nth fibonacci number using Scala. In this let’s print the Fibonacci series of length n. This post is motivated by a nice post at Fibonacci Numbers in Scala.

Q1 Is the above approach to “print the Fibonacci series of…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in member-paid, Scala way of coding

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?

A2 The iterative approach uses mutable variables

Read more ›

Posted in Scala way of coding

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…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in member-paid, Scala way of coding

06: Coding Scala Way – Reduce & Compose functions

Example #14: Reduce operations Given a list of functions as shown below, how will you go about applying all the functions in the list to each input number and sum the result of each function?

For example, applying all 3 functions to first number in the list “1” would…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in member-paid, Scala way of coding

05: ♥ Coding Scala Way – FP concepts

Example #13: Explain the concepts Can you explain the Scala concepts applied in the following code snippets?

1. Higher Order Functions: “Line 10” is a higher order function as the function returns another function i.e. List[T] => List[R] is returned. “Line 20” is a higher order function as the

Read more ›

Posted in Scala way of coding

13: Q81 – Q83 ♥ Scala monoids interview Q&As

Monoids, Functors, Monads, Applicatives, etc are concepts or patterns that abstract complexities in computations, and NOT traits or classes. You can think of them as container type classes like List[T], Option[T], Futures[T], MyContainer[T], etc that fulfill requirements of functors, monads, etc. Let’s start with monoids first. Q81. What is a

Read more ›

Posted in Scala Interview Q&As
Page 1 of 4112345678910...202530...Last »
1050+ subscribers. Reviews | Free Contents. 220K+ page views/month. Certified or not, you will be challenged with industrial strength problems to solve at work & job interviews.

600+ Interview Q&As – ♥ Free, ♦ FAQs

open all | close all

200+ FAQs for Quick Interview Prep

open all | close all

16 Technical Key Areas to standout

open all | close all

80+ Tutorials for self-taught projects

open all | close all

100+ pre-interview coding tests

open all | close all

How good are your …..?

open all | close all