Blog Archives
1 … 6 7 8 9 10 11 12 13 14

Bash script interview Q&As – 01: variables & arrays

A Bash script is a plain text file which contains a series of commands. It allows you to perform a series of actions. Bash scripting is an essential skill for any developer and system administrator to perform tasks efficiently and automate repetitive tasks. Like any other programming languages, you will be creating variables &

…

Read more ›



Bash script interview Q&As – 02: variable or parameter expansion

This extends Bash script interview Q&As – variables & arrays Q01 How will you concatenate strings in Bash? A01 In Bash, when variables or strings are written one after another, they automatically concatenate.

Outputs:

Shell varaiable expansion modifiers Q02 What are Shell or Bash parameter or variable expansion...

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


Bash script interview Q&As – 03: conditional expressions

Q01 What is a conditional expression in bash? A01 A conditional in Bash scripting is made up of two things: a conditional statement and one or more conditional operators. if statement examples with arithmetic comparisons like -eq, -lt, … 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


Bash script interview Q&As – 04: conditionals, command, &>, and $?

Q01 Can you explain the below code? temp.sh:

temp2.sh:

Run temp.sh:

A01 The above code is used to find out if python is installed and if installed find the location of the executable. … 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


Bash script interview Q&As – 05: IFS & Read a file line by line

Q01 What is an IFS in Bash? A01 IFS is a special variable in Bash which is used to control the field separator for line parsing. By default, IFS is set to a space, a tab, and a newline character, which means that fields in a string are separated by...

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


Bash script interview Q&As – 06: Running bash scripts, dot command & path components

Q01 How will you run a Bash script? A01 Bash scripts, like scripts written in other programming languages, can be run in a wide variety of ways. Permission to run Firstly, the script needs to have the right permission to execute the script. … 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


Cash balance Groovy coding questions & answers

Q1. Can the following code be further improved?

A1. Yes, it can be made a bit more elegant with the builder design pattern. For example, we can return the “CashBalance” object from each mathod by adding the keyword “this” … 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


Common Table Expressions (i.e. CTE) in SQL using the “WITH” clause & RECURSIVE CTE

Common Table Expressions or CTE’s for short are used in SQL to simplify complex joins and subqueries, and to provide a means to query hierarchical data such as an organisational chart. This was also introduced in MySQL 8 – Using https://www.db-fiddle.com/. … 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


Defining tables in postgresql with primary key, foreign key, unique constraint & data migration example

Uses DB-FIDDLE for the code example with PostgreSQL v17.

Q01 How will you go about defining tables with primary key, foreign keys and unique constraints?
A01 The main purpose of a primary key in a table is to uniquely identify each record.

…

Read more ›



Deleting records in SQL Interview Questions and Answers

The following is a very popular SQL job interview question. Q. What is the difference between “Truncate” and “Delete” commands? A.  TRUNCATE TABLE_NAME always locks the table and page but not each row, … 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


Finding your way around the FIX specification Q&A

Firstly, decide on the specification version. If you are using FIX spec 4.4 then go to https://fixspec.com/FIX44. The tutorials with QuickFIX/J used NewSingleOrder as the request. The message has the fields like Tag number. … 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


Git commands used in a typical project

Let’s look at some of the key commands developers & data engineers will be using with git. Clone Firstly, you need to clone a project from a remote repository to your local repository. You can get the ssh or https URL from your remote repository like GitHib, BitBucket, … 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


Git interview Q&As on undo operations via restore, reset & revert, and solving common Git errors

Let’s look at how we can undo changes in Git. Often we need to rollback or stash our changes. Q01. When is git restore used? A01. The “restore” command is used to 1) Undo the effects of git add, … 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 … 6 7 8 9 10 11 12 13 14

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data