February 11, 2021

Top 20 Linux Interview Questions and Answers

 
Ques. 1): How can Linux be differentiated from other Operating Systems?
Answer: 
Linux is somewhat like other operating systems you might have used before, such as OS X, iOS or the Windows. Like other operating systems, Linux too has a graphical user interface. The types of software just like other operating systems have, such as the word processing applications.
 But Linux is different from other operating systems in many ways. First and foremost, Linux is open source software. The code used to create the OS is always free and available to the public to view, contribute and edit. Secondly, although the core pieces of the Linux OS are generally common, there are quite many distributions of Linux, which include different software options, which implies Linux is incredibly customizable. Linux users can also choose core components, such as the system displays graphics and other UI components.

 
Ques. 2): What is the basic difference between UNIX and Linux Operating System.
Answer: 
Linux Operating System is Free and Open Source Software, the kernel of which is created by Linus Torvalds and community. Well you cannot say UNIX Operating System doesn’t comes under the category of Free and Open Source Software, BSD, is a variant of UNIX which comes under the category of FOSS. Moreover Big companies like Apple, IBM, Oracle, HP, etc. are contributing to UNIX Kernel.
 

Ques. 3): What Is Shell Script?
Answer: 
A shell script, as the name suggests, is a script written for the shell. Script here means a programming language used to control the application. The shell script allows different commands entered in the shell to be executed. Shell script is easy to debug, quicker as compared to writing big programs. However, the execution speed is slow because it launches a new process for every shell command executed. Examples of commands are cp, cn, cd.
 

Ques. 4): What Are Pipes?
Answer: 
A pipe is a chain of processes so that output of one process (stdout) is fed an input (stdin) to another. UNIX shell has a special syntax for creation of pipelines. The commands are written in sequence separated by |. Different filters are used for Pipes like AWK, GREP.
e.g. sort file | lpr ( sort the file and send it to printer)
 

Ques. 5): What Stateless Linux Server? What Feature It Offers?
Answer: 
A stateless Linux server is a centralized server in which no state exists on the single workstations. There may be scenarios when a state of a partilcuar system is meaningful (A snap shot is taken then) and the user wants all the other machines to be in that state. This is where the stateless Linux server comes into picture.

Features:
·       It stores the prototypes of every machine.
·       It stores snapshots taken for those systems.
·       It stores home directories for those system.

Uses LDAP containing information of all systems to assist in finding out which snapshot (of state) should be running on which system.
 

Ques. 6): What Is Bash Shell?
Answer: 
Bash is a free shell for UNIX. It is the default shell for most UNIX systems. It has a combination of the C and Korn shell features. Bash shell is not portable. any Bash-specific feature will not function on a system using the Bourne shell or one of its replacements, unless bash is installed as a secondary shell and the script begins with #!/bin/bash. It supports regular and expressions. When bash script starts, it executes commands of different scripts.
 

Ques. 7): What Is A Zombie?
Answer: 
Zombie is a process state when the child dies before the parent process. In this case the structural information of the process is still in the process table. Since this process is not alive, it cannot react to signals. Zombie state can finish when the parent dies. All resources of the zombie state process are cleared by the kernel.
 

Ques. 8): Explain Each System Calls Used For Process Management In Linux.
Answer: 
System calls used for Process management:
·       Fork () :- Used to create a new process
·       Exec() :- Execute a new program
·       Wait():- wait until the process finishes execution
·       Exit():- Exit from the process
·       Getpid():- get the unique process id of the process
·       Getppid():- get the parent process unique id
·       Nice():- to bias the existing property of process
 

Ques. 9): How Do You Kill A Process?
Answer: 
kill -9 8 (process_id 8) or kill -9 %7 (job number 7)
kill -9 -1 (Kill all processes you can kill.)
killall - kill processes by name most (useful - killall java)
 

Ques. 10): What Is A Filesystem?
Answer: 
Sum of all directories called file system. A file system is the primary means of file storage in UNIX. File systems are made of inodes and superblocks.
 

Ques. 11): What Are Two Subtle Differences In Using The More And The Pg Commands?
Answer: 
With the more command you display another screenful by pressing the spacebar, with pg you press the return key. The more command returns you automatically to the UNIX shell when completed, while pg waits until you press return.
 

Ques. 12): We Saw the Mention On The Linux Bios Website About One Million Devices Shipped With Linux Bios. Could You Tell Us More About These Devices?
Answer: 
Yes, these are internet terminals that were built in India, based on the [x86 system-on-chip] STPC chip, I am told; also, there evidently is a Turkish-built digital TV that runs Linux BIOS. I have also heard that there are routers and many other embedded devices running Linux BIOS. I think at this point that 1 million is a low number. I am in contact with other set-top box vendors that are talking about numbers in the lOs of millions for their products. These numbers actually make the OLPC numbers seem small, which is in it amazing.
 

Ques. 13): What's Your Goal For Your Talk At Fosdem?
Answer: 
I’d like to communicate the basic ideas — that Linux is a good BIOS, and why; why Linux BIOS is built the way it is; where we are going; and how people can help. Most importantly, why it all matters — and it really matters a lot. We’re on the verge of losing control of the systems we buy, and we need to make a conscious effort, as a community, to ensure this loss of control does not happen. That effort will not be without some sacrifice, but if we are to maintain our ability to use and program our machines, and have fun with them, we have to act now. Because, if the computing business stops being fun, what’s the point$
 

Ques. 14): What Command Would You Use To Create An Empty File Without Opening It To Edit It?
Answer: 
You use the touch command to create an empty file without needing to open it. Answers a and e point to invalid commands, though either of these might actually be aliased to point to a real command. Answers b and c utilize editors, and so do not satisfy the requirements of the question. actually touch is used to change the timestamps of a file if its exits, otherwise a new file with current timestamps will be created.
 

Ques. 15): What Do You Type To Stop A Hung Process That Resists The Standard Attempts To Shut It Down?
Answer: 
The kill command by itself tries to allow a process to exit cleanly. You type kill -9 PID, on the other hand, to abruptly stop a process that will not quit by any other means. Also, pressing CtrI+C works for many programs. Answers b and d are only valid in some contexts, and even in those contexts will not work on a hung process.
 

Ques. 16): What Are The Techniques That You Use To Handle The Collisions In Hash Tables?
Answer: 
We can use two major techniques to handle the collisions. They are open addressing and separate chaining. In open addressing, data items that hash to a full array cell are placed in another cell in the array. In separate chaining, each array element consists of a linked list. All data items hashing to a given array index are inserted in that list.
 

Ques. 17): Why You Shouldn't Use The Root Login?
Answer: 
The root login does not restrict you in any way. When you log in as root, you become the system. The root login is also sometimes called the super user login. With one simple command, issued either on purpose or by accident, you can destroy your entire Linux installation. For this reason, use the root login only when necessary. Avoid experimenting with commands when you do log in as root.
 

Ques. 18): What Can You Type At A Command Line To Determine Which Shell You Are Using?
Answer: 
echo $SHELL-The name and path to the shell you are using is saved to the SHELL environment variable. You can then use the echo command to print out the value of any variable by preceding the variable’s name with $. Therefore, typing echo $SHELL will display the name of your shell.
 

Ques. 19): Is Linux Operating system Virus free?
Answer: 
No! There doesn’t exist any Operating System on this earth that is virus free. However Linux is known to have least number of Viruses, till date, yes even less than UNIX OS. Linux has had about 60-100 viruses listed till date. None of them actively spreading nowadays. A rough estimate of UNIX viruses is between 85 -120 viruses reported till date.
 

Ques. 20): How do you change permissions under Linux?
Answer: 
Assuming you are the system administrator or the owner of a file or directory, you can grant permission using the chmod command. Use + symbol to add permission or – symbol to deny permission, along with any of the following letters: u (user), g (group), o (others), a (all), r (read), w (write) and x (execute). For example, the command chmod go+rw FILE1.TXT grants read and write access to the file FILE1.TXT, which is assigned to groups and others.
 
 
 
 

Top 20 Oracle Fusion HCM Interview Questions and Answers

 

Ques. 1): In Present time, Why Human Capital Management is so important?

Answer: 

In the present, understanding the economy is a vast term. No one knows what factors are important in terms of investment without managing the capital. Organizations must face a ton of issues if they don’t manage the same in a reliable manner. The fraud transactions and risks are the major trouble creators. Effective management always makes sure proper utilization and records can be accessed anytime when users want.


Oracle Fusion Applications interview Questions and Answers


Ques. 2): What are the different pillars of HCM?

Answer: 

The core pillars of HCM are:

•      Training talent

•      Talent acquisition

•      Retaining talent, and

•      Managing talent


Oracle Accounts Payable Interview Questions and Answers


Ques. 3): What is the best way to motivate employees?

Answer: 

The best ways to motivate employees are:

•      Rewarding by praising before others

•      Increasing pay

•      Appreciate the work

•      Incentives

•      Promotions

•      Designation increase


Oracle ADF Interview Questions and Answers


Ques. 4): What type of structures can easily be managed by Fusion Tree? Is it possible for users to change these structures?

Answer: 

Fusion HCM comes with many features. It can simply represent the structures of organizations, geography tree, inter departments within an organization, as well as positions associated with the same. It is not possible for users to change the predefined tree structure.

However, it is possible to create new ones with the help of geography trees. Even a single copy can have multiple versions. This doesn’t actually mean that all the versions can be utilized at the same time. Users can consider only one at an instant.


Oracle SCM Interview Questions and Answers


Ques. 5): Can you state a few benefits of using the Enterprise Structure Configuration?

Answer: 

Benefits of Enterprise structure configuration as mentioned below

•      It is possible to create all the structures within an organization instantly and simultaneously

•      It is beneficial for testing the multiple scenarios. This is because it can easily create several configurations

•      It is possible for the users to roll back the configuration even when the same has been loaded by them

•      Users can even review the same thoroughly before it is actually loaded. This makes sure that there will be no errors in the configuration process at a later stage.


Oracle Access Manager Interview Questions and Answers


Ques. 6): Is Fusion HCM a currently independent platform?

Answer: 

Yes, it is a currency independent platform. Users need not to worry about the same. It has also been equipped with some inter-currency conversion features that make it easy for the users to understand the basic concepts. It is also possible for the users to understand the management aspects in terms or rates of local currency in an equivalent manner.


Oracle Financials Interview questions and Answers


Ques. 7): What is Normalization in Oracle Fusion?

Answer: 

When the users need to create the rating models, there is always a need for them to define the rating distribution at the same time. This is because it gives an idea about the overall percentage of the workforce that needs to be involved in the task. It even reflects the information if it is possible to increase/decrease the workforce at different levels. This process is known as normalization.


Oracle Cloud Interview Questions and Answers


Ques. 8): Can you tell the difference between the Watchlist and the Worklist in Oracle HCM?

Answer: 

There are certain items that a user always wants to track while performing important tasks. The Watchlist is a basic feature where the shortcuts to all the items are reflected. The count for all the items can easily be seen and can be navigated to the relevant application sector.

The shortcuts can easily be modified as per need and users can even create a track record of the same. One of the best things is it makes report generation and management very easy and there are certain items that need to be opened again and again.

On the other side, the Worklist reflects all the important tasks that are sensitive and needs the approval of the user before the final execution. It also reflects some important notifications and the tasks which are on priority. All the tasks can easily be managed with the help of Worklist. The concerned users can act in any manner on the tasks.


Oracle PL/SQL Interview Questions and Answers


Ques. 9): What exactly do you know about the plan types in Fusion HCM?

Answer: 

There are 3 plans available in the Fusion HCM. These are Accrual, Qualification, and No Entitlement. An accrual is an approach that defines the purpose of the workforce for taking leaves. Qualification states whether the workforce is actually eligible to take the benefits of the leaves and why they should be given wages for such a time period.

No entitlement keeps a track of all the leaves whether they are paid or unpaid. It generally doesn’t have an entitle that states the true purpose of absence.


Oracle SQL Interview Questions and Answers


Ques. 10): How well you can define the term Capital?

Answer: 

It means the goods which are already produced and further plans to produce the same by an organization. Generally, it reflects any service or goods with the help of which an organization or an individual can deliver outputs that are totally error-free. It acts as a catalyst to enhance the overall business.


Oracle RDMS Interview Questions and Answers


Ques. 11): What do you mean by Inclusiveness and how significant it is?

Answer: 

It is nothing but a step by management to sit with the workforce for inviting suggestions and feedbacks. The fact is employees are always familiar with the ground reality and they always have plans to tackle many problems and daunting situations. Taking feedback from them brings multiple benefits for an organization simply.


BI Publisher Interview Questions and Answers


Ques. 12): What Is Legislative Data Group In Fusion Hcm?

Answer: 

Legislative data groups are a means of partitioning payroll and related data. At least one legislative data group is required for each country where the enterprise operates. Each legislative data group is associated with one or more payroll statutory units. Each legislative data group marks a legislation in which payroll is processed, and is associated with a legislative code, currency and its own cost key flexfield structure.


Oracle 10g Interview Questions and Answers


Ques: 13): If You Update An Assignment Record Multiple Times In A Single Day, Can You Still Track The Record, If Yes How?

Answer: 

For some objects, such as assignments, more than one update per day is maintained by creating a physical record for each update. Such objects include an effective sequence number in each physical record to show the order in which updates made to an object on a single day were applied.

 

Ques. 14): What Do You Understand By Reference Data Sharing?

Answer: 

In oracle Fusion Reference data sharing facilitates sharing of configuration data such as jobs, grades across business units. It can be understood as buckets of reference data assigned to multiple business units. It helps to reduce duplication and maintenance by sharing common data across business entities where appropriate. In Oracle Fusion Applications reference data sharing feature is also known as SetID. A set, which is available out of the box, is called Common Set.

In HCM Set enabled objects are: Departments, Locations, and Jobs & Grades.

 

Ques. 15): How Many Sections A Performance Template Can Hold and What Are Those?

Answer: 

An Oracle Fusion Performance Template can hold maximum of six sections, which are given below:

1.                   Competency Section

2.                   Goal Section

3.                   Worker Final Feedback Section

4.                   Manager Final Feedback Section

5.                   Questionnaire Section

6.                   Overall Review Section

 

Ques. 16): What’s Practical Setup Supervisor Or FSM As It’s Far More Generally Referred To As?

Answer: 

Oracle Fusion useful Setup supervisor (FSM) is an application that gives a give up-to-stop guided system for handling your useful implementation initiatives all through the whole implementation lifestyles cycle.

 

Ques. 17): What Type Of Structures Can Easily Be Managed By Fusion Tree? Is It Possible For The Users To Change These Structures?

Answer: 

Fusion HCM comes with many features. It can simply represent the structures of organizations, geography tree; inter departments within an organization, as well as positions associated with the same. It is not possible for the users to change the predefined tree structure. However, it is possible to create the new ones with the help of geography trees. Even a single copy can have multiple versions. This doesn’t actually mean that all the versions can be utilized at the same time. Users can consider only one at an instant.

 

Ques. 18): What is an enterprise structure Configurator (ESC)?

Answer: 

It is an interview-primarily based device that leads you through organization system configuration. Users use this device as a part of their installation to define the company systems, various activities, and function structures of the enterprise. To get access to ESC, select set-up business enterprise structures venture under the “initial Configuration assignment” listing. Moreover, you can also define organization setup, organization structure, position and jobs in an enterprise.

 

Ques. 19): What square measure The Common Tasks That square measure oftentimes Used throughout The Implementation?

Answer: 

Managing the legal addresses, grades, business units, legal entity, divisions, departments, locations, lookups, employee goal setups, review periods, documents sorts (performance related) still as managing the roles square measure the tasks that square measure quite common throughout the implementation.

 

Ques. 20): What Is Distribution Threshold In Fusion Performance Management?

Answer: 

When we create Rating Model for performance management, we do define Rating Distribution to tell what the minimum is and maximum percentage of worker should fall in each rating level. This is more commonly known as Normalization. Now the Distribution Threshold is a failed to control Number of eligible workers a manager must have to see distribution target.

 

 

February 10, 2021

Top 20 JavaScript Interview Questions and Answers

 

Ques. 1): What is JavaScript?

Answer: 

JavaScript is different from Java language. It is a scripting language. It is object-based, lightweight, cross-platform translated language. It is widely used for client-side validation. The JavaScript Translator, which is embedded in the browser, is responsible for translating the JavaScript code for the web browser.

AngularJS Interview Questions and Answers

Ques. 2): What are the differences between Java and JavaScript?

Answer: 

JavaScript is a coded program that can be introduced to HTML pages. In contrast, Java is a complete programming language. These two languages are not at all inter-dependent and are designed for the different intent. Java is an object - oriented programming (OOPS) or structured programming language like C++ or C whereas JavaScript is a client-side scripting language.

AJAX interview Questions and Answers

Ques. 3): What are the main advantages of JavaScript?

Answer: 

The main advantages of using JavaScript are as follows:

  • Less server interaction − You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.
  • Immediate feedback to the visitors − They don’t have to wait for a page reload to see if they have forgotten to enter something.
  • Increased interactivity − You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.
  • Richer interfaces − You can use JavaScript to include such items as drag-and-drop components and sliders to give a Rich Interface to your site visitors.

Node.js Interview Questions and Answers

Ques. 4): Which is faster, JavaScript or an ASP script?

Answer: 

JavaScript is a client-side language and thus it does not need the assistance of the web server to execute. On the other hand, ASP is a server-side language and hence is always slower than JavaScript. Javascript now is also a server-side language (nodejs). So the JavaScript is faster.

JQuery Interview Questions and Answers

Ques. 5): What is the use of history object?

Answer: 

The history object of a browser can be used to switch to history pages such as back and forward from the current page or another page. There are three methods of history object.

1.         history.back() - It loads the previous page.

2.         history.forward() - It loads the next page.

3.         history.go(number) - The number may be positive for forward, negative for backward. It loads the given page number.

Advance Java interview Questions and Answers

Ques. 6): What are global variables? How are these variables declared and what are the problems associated with using them?

Answer: 

Global variables are those that are available throughout the length of the code, that is, these have no scope. The var keyword is used to declare a local variable or object. If the var keyword is omitted, a global variable is declared.

Example:

// Declare a global globalVariable = "GLO_VAR";

The problems that are faced by using global variables are the clash of variable names of local and global scope. Also, it is difficult to debug and test the code that relies on global variables.

 

Ques. 7): What is the difference between ViewState and SessionState?

Answer: 

'ViewState' is specific to a page in a session.

'SessionState' is specific to user specific data that can be accessed across all pages in the web application.

 

Ques. 8): How can you convert the string of any base to integer in JavaScript?

Answer: 

The parseInt() function is used to convert numbers between different bases. parseInt() takes the string to be converted as its first parameter, and the second parameter is the base of the given string.

In order to convert 5F (of base 16) to integer, the code used will be -

parseInt ("5F", 16);

 

Ques. 9): What are undefined and undeclared variables?

Answer: 

Undefined variables are those that are declared in the program but have not been given any value. If the program tries to read the value of an undefined variable, an undefined value is returned.

Undeclared variables are those that do not exist in a program and are not declared. If the program tries to read the value of an undeclared variable, then a runtime error is encountered.

 

Ques. 10): What is this [[[]]]?

Answer: 

This is a three-dimensional array.

var myArray = [[[]]]; 

 

Ques. 11): Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?

Answer: 

Timers are used to execute a piece of code at a set time or also to repeat the code in a given interval of time. This is done by using the functions setTimeout, setInterval and clearInterval.

The setTimeout(function, delay) function is used to start a timer that calls a particular function after the mentioned delay. The setInterval(function, delay) function is used to repeatedly execute the given function in the mentioned delay and only halts when cancelled. The clearInterval(id) function instructs the timer to stop.

Timers are operated within a single thread, and thus events might queue up, waiting to be executed.

 

Ques. 12): What is the use of Void(0)?

Answer: 

Void(0) is used to prevent the page from refreshing and parameter "zero" is passed while calling.

Void(0) is used to call another method without refreshing the page.

 

Ques. 13): What is the main disadvantage of using innerHTML in JavaScript?

Answer: 

The main disadvantages of using innerHTML in JavaScript are:

  • Content is replaced everywhere
  • We cannot use like "appending to innerHTML"
  • Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by html
  • The entire innerHTML content is re-parsed and build into elements, therefore its much slower
  • The innerHTML does not provide validation and therefore we can potentially insert valid and broken HTML in the document and break it

 

Ques. 14): What are the different types of errors in JavaScript?

Answer: 

There are three types of errors in JavaScript:

  • Load time errors: Errors which come up when loading a web page like improper syntax errors are known as Load time errors and it generates the errors dynamically.
  • Run time errors: Errors that come due to misuse of the command inside the HTML language.
  • Logical Errors: These are the errors that occur due to the bad logic performed on a function which is having different operation.

  

Ques. 15): What is the requirement of debugging in JavaScript?

Answer: 

JavaScript didn't show any error message in a browser. However, these mistakes can affect the output. The best practice to find out the error is to debug the code. The code can be debugged easily by using web browsers like Google Chrome, Mozilla Firebox.

To perform debugging, we can use any of the following approaches:

•     Using console.log() method

•     Using debugger keyword

 

Ques. 16): What is the 'Strict' mode in JavaScript and how can it be enabled?

Answer: 

Strict Mode adds certain compulsions to JavaScript. Under the strict mode, JavaScript shows errors for a piece of codes, which did not show an error before, but might be problematic and potentially unsafe. Strict mode also solves some mistakes that hamper the JavaScript engines to work efficiently.

Strict mode can be enabled by adding the string literal "use strict" above the file. This can be illustrated by the given example:

function myfunction() {

    "use strict";

    var v = "This is a strict mode function";

}

 

Ques. 17): What is the purpose of ‘This’ operator in JavaScript?

Answer: 

The JavaScript this keyword refers to the object it belongs to. This has different values depending on where it is used. In a method, this refers to the owner object and, in a function, this refers to the global object.

 

Ques. 18): What is Callback in JavaScript?

Answer: 

A callback is a plain JavaScript function passed to some method as an argument or option. It is a function that is to be executed after another function has finished executing, hence the name ‘call back‘.

In JavaScript, functions are objects. Because of this, functions can take functions as arguments, and can be returned by other functions.

 

Ques. 19): What are JavaScript Cookies?

Answer: 

Cookies are the small test files stored in a computer and it gets created when the user visits the websites to store information that they need. Example could be User Name details and shopping cart information from the previous visits.

 

Ques. 20): Explain what is pop()method in JavaScript?

Answer: 

The pop() method is similar as the shift() method but the difference is that the Shift method works at the start of the array. Also the pop() method take the last element off of the given array and returns it. The array on which is called is then altered.

Example:

var cloths = ["Shirt", "Pant", "TShirt"];

cloths.pop();

//Now cloth becomes Shirt,Pant

 

Ques. 21): Define event bubbling?

Answer: 

JavaScript allows DOM elements to be nested inside each other. In such a case, if the handler of the child is clicked, the handler of parent will also work as if it were clicked too.

 

Ques. 22): How are event handlers utilized in JavaScript?

Answer: 

Events are the actions that result from activities, such as clicking a link or filling a form, by the user. An event handler is required to manage proper execution of all these events. Event handlers are an extra attribute of the object. This attribute includes event's name and the action taken if the event takes place.

 

Ques: 23): Explain the role of deferred scripts in JavaScript?

Answer: 

By default, the parsing of the HTML code, during page loading, is paused until the script has not stopped executing. It means, if the server is slow or the script is particularly heavy, then the webpage is displayed with a delay. While using Deferred, scripts delays execution of the script till the time HTML parser is running. This reduces the loading time of web pages and they get displayed faster.