Find Interview Questions for Top Companies
Ques:- In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Asked In :-
Right Answer:
You can use JavaScript to get the cell data from the table. Here's a simple example:

```javascript
// Assuming the table rows are in a <table> with id "myTable"
let table = document.getElementById("myTable");
let rows = Array.from(table.rows);
let cellData = rows.map(row => Array.from(row.cells).map(cell => cell.innerText));

// Now cellData contains the text of all cells in the table
console.log(cellData);
```

This code retrieves the text content of each cell in the table and stores it in the `cellData` variable.
Comments
Admin May 17, 2020

To get data from table cells, u shld use innerHTML.
For that u need to give id's for all the TD's in the Table.
Try the below coding:
<script language="javascript">
function getdatas()
{
var data=document.getElementById('data6').innerHTML;
alert(data);
}
</script>
</head>
<body>
<table width="200" border="1">
<tr>
<td id="data1">ganesh</td>
<td id="data2">magesh</td>
<td id="data3">tanveer</td>
</tr>
<tr>
<td id="data4">satya</td>
<td id="data5">siddiq</td>
<td id="data6">bimal</td>
</tr>
<tr>
<td id="data7">jenson</td>
<td id="data8">nasrulla</td>
<td id="data9">dayanand</td>
</tr>
</table>
<input type="button" value="Get" onclick="getdatas()" />
</body>

Ques:- why script is client dependant.
Asked In :-
Right Answer:
Scripts are client-dependent because they run in the user's browser or environment, which can vary in capabilities, settings, and versions, affecting how the script executes and behaves.
Ques:- QTP not able to select multiple row selection when new rows are added
Asked In :-
Right Answer:
Ensure that the object repository is updated to include the new rows and use the appropriate methods to select multiple rows, such as using a loop to iterate through the rows or leveraging the `Select` method with the correct identifiers for the new rows.
Ques:- In sap script, created 1 form but when its went to production system , client want some changes in 1 (ex – addrss) window, what we will do?
Asked In :- Craft Silicon,
Ques:- a=”10.20.30.1″ replace 1 with 45 in python using reg ex
Asked In :-
Ques:- What is the procedure for installing USP-35 on my compure?
Asked In :-
Right Answer:
To install USP-35 on your computer, follow these steps:

1. Download the USP-35 installation file from the official website.
2. Locate the downloaded file on your computer.
3. Double-click the installation file to start the installation process.
4. Follow the on-screen instructions to complete the installation.
5. Once installed, restart your computer if prompted.

Make sure to check for any additional requirements or dependencies needed for USP-35.
Ques:- If we add regular expressions to a script recorded in QTP, will it effect the performance of the script?
Asked In :-
Right Answer:
Yes, adding regular expressions to a script recorded in QTP can affect the performance of the script, as it may increase the complexity and processing time during execution.


The term “Scripts All Other” refers to a diverse and expansive category of programming and scripting tasks that do not fit into a single, well-defined discipline. These scripts are the crucial, often-unseen tools that bridge gaps, automate repetitive tasks, and provide custom solutions across a multitude of industries and technical roles. Unlike scripts for specific applications like web development (e.g., JavaScript) or enterprise software, these “other” scripts are highly versatile and are typically written in languages such as Python, Bash, PowerShell, or Ruby to address a unique and specific need.

The primary function of these scripts is to enhance efficiency and productivity. A system administrator might write a Bash script to automate server backups and maintenance tasks, while a data analyst could use a Python script to clean and transform a dataset for a report. A mechanical engineer might develop a custom script to automate a complex calculation or to interface with a piece of laboratory equipment. These scripts are essential for automating mundane, manual processes that would otherwise consume valuable time and resources, freeing up professionals to focus on more strategic and creative work.

Furthermore, “Scripts All Other” also includes the development of small, one-off tools and utilities. This could be a script that converts file formats in bulk, a program that scrapes data from a website, or a simple application that monitors system performance. These solutions are often created in-house to solve a problem that commercial software cannot address or would be too expensive to implement. The ability to write and manage these scripts is a valuable skill for any technical professional, as it demonstrates a capacity for problem-solving, a deep understanding of system operations, and a commitment to creating efficient, tailored solutions. This category represents the spirit of custom development and automation that powers a vast array of modern professional workflows.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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