Find Interview Questions for Top Companies
Ques:- What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?
Asked In :-
Right Answer:
Thrashing occurs when a system spends more time swapping pages in and out of memory than executing processes, typically due to insufficient physical memory for the workload. The system detects thrashing by monitoring high page fault rates and low CPU utilization. To eliminate thrashing, the system can reduce the number of active processes, increase the amount of physical memory, or adjust the page replacement algorithm to be more efficient.
Ques:- Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?
Asked In :-
Right Answer:
Page faults occur when a program tries to access a page that is not currently in physical memory (RAM). This can happen if the page has been swapped out to disk or if it has not been loaded yet.

When a page fault occurs, the operating system takes the following actions:
1. It checks if the memory access is valid.
2. If valid, it locates the page on disk.
3. It swaps the required page into physical memory.
4. It updates the page table to reflect the new location.
5. It resumes the execution of the program from the point where the fault occurred.
Ques:- Difference Between Grep and Find command ?
Asked In :- MSys Technologies,
Right Answer:
The `grep` command is used to search for specific patterns within files, while the `find` command is used to search for files and directories in a directory hierarchy based on various criteria like name, type, size, etc.
Ques:- What is the complete name of the default configuration file for LILO?
Asked In :-
Right Answer:
The complete name of the default configuration file for LILO is `/etc/lilo.conf`.
Ques:- What is diff between grep and find
Asked In :-
Right Answer:
`grep` is used to search for specific patterns within files, while `find` is used to search for files and directories in a directory hierarchy based on various criteria like name, type, size, etc.
Ques:- Does Linux Support Virtualized File Systems Like RAID?
Asked In :- smsc,
Right Answer:
Yes, Linux supports virtualized file systems like RAID through various software RAID implementations, such as mdadm.
Ques:- What are threads (user/kernel)?
Asked In :- presidio,
Right Answer:
Threads are the smallest units of processing that can be scheduled by an operating system.

- **User Threads**: Managed by user-level libraries and the operating system kernel is unaware of them. They are lightweight and allow for fast context switching but may not utilize multiple processors effectively.

- **Kernel Threads**: Managed directly by the operating system kernel. They can be scheduled on multiple processors and provide better performance for multi-threaded applications, as the kernel can manage them more efficiently.
Ques:- What is process spawning?
Asked In :-
Right Answer:
Process spawning is the creation of a new process by an existing process, typically using system calls like `fork()` in Unix, which duplicates the current process, followed by `exec()` to replace the new process's memory space with a new program.
Ques:- What is the difference between a variable and value?
Asked In :- iOPEX,
Right Answer:
A variable is a named storage location in memory that can hold a value, while a value is the actual data or information that the variable represents.
Ques:- How to Swap 30 & 40 in IP address 192.30.40.1 using TCL script?
Asked In :-
Right Answer:
```tcl
set ip "192.30.40.1"
set new_ip [regsub {(d+).(d+).(d+).(d+)} $ip {1.40.30.4}]
puts $new_ip
```
Ques:- How can we return a value from User Defined Function ?For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var(c). Now i want to pass that var(c) to another function (fun2). What will be the script?
Asked In :-
Right Answer:
```bash
#!/bin/bash

# User Defined Function 1
fun1() {
local a=$1
local b=$2
local c=$((a + b))
echo $c # Return the value of c
}

# User Defined Function 2
fun2() {
local value=$1
echo "The value received from fun1 is: $value"
}

# Main script execution
result=$(fun1 5 10) # Call fun1 with arguments
fun2 $result # Pass the result to fun2
```
Ques:- How to find a substring in a string without using substrbuilt in functions, and print the substring found
Asked In :-
Right Answer:
You can find a substring in a string without using built-in functions by using a loop to compare each character. Here’s a simple shell script to do that:

```bash
#!/bin/bash

string="Hello, this is a sample string."
substring="sample"

found=0
for (( i=0; i<=${#string}-${#substring}; i++ )); do
match=1
for (( j=0; j<${#substring}; j++ )); do
if [[ ${string:i+j:1} != ${substring:j:1} ]]; then
match=0
break
fi
done
if [[ $match -eq 1 ]]; then
found=1
echo "Substring found: ${substring}"
break
fi
done

if [[ $found -eq 0 ]]; then
echo "Substring not found."
fi
```
Ques:- Create your own shell that completes the following problem: Ask the user their name, Compare it to your name and Give a reply that their response is either your name too or it is a nice name too ?
Asked In :-
Right Answer:
```bash
#!/bin/bash

# Ask for the user's name
echo "What is your name?"
read user_name

# Define your name
my_name="Assistant"

# Compare names and give a reply
if [ "$user_name" == "$my_name" ]; then
echo "That's my name too!"
else
echo "That's a nice name too!"
fi
```
Ques:- A string of charaters were given. Find the highest occurance of a character and display that character.eg.: INPUT: AEGBCNAVNEETGUPTAEDAGPE
Asked In :-
Right Answer:
The character with the highest occurrence is 'A', which appears 5 times.
Ques:- What are permissions in UNIX?
Asked In :-
Right Answer:
Permissions in UNIX are settings that determine who can read, write, or execute a file or directory. They are divided into three categories: owner, group, and others, with each category having three types of permissions: read (r), write (w), and execute (x).
Ques:- A man shows his friend a woman sitting in a park and says that she the daughter of my grandmother's only son. What is the relation between the two
Asked In :-
Right Answer:
The woman is the man's sister.
Ques:- What is Kernel parameters?
Asked In :-
Right Answer:
Kernel parameters are settings that control the behavior of the Linux kernel at runtime. They can be adjusted to optimize system performance, manage hardware resources, and configure system features. These parameters can be viewed and modified using the `/proc/sys` directory or through the `sysctl` command.


A Software Installation Engineer specializes in installing, configuring, and troubleshooting software on various client environments, ranging from individual computers to large networks. They follow technical specifications and customer requirements to ensure successful software deployment.

Responsibilities include verifying system compatibility, installing necessary dependencies, setting up configurations, and performing tests to confirm proper operation. They may also provide technical support during installation and update processes.

This role requires strong technical knowledge of operating systems, software packaging, and network environments. Familiarity with scripting and automation tools helps streamline installations.

Software Installation Engineers often work with IT teams, software developers, and end-users to resolve issues and document installation procedures. Their work ensures users can utilize software effectively with minimal downtime.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users