Find Interview Questions for Top Companies
Ques:- How can Loading video files in AS3?
Asked In :-
Right Answer:
To load video files in ActionScript 3 (AS3), you can use the `NetConnection`, `NetStream`, and `Video` classes. Here’s a simple example:

```actionscript
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.play("your_video_file.mp4");

var video:Video = new Video(640, 480); // Set the width and height
video.attachNetStream(ns);
addChild(video);
```

Replace `"your_video_file.mp4"` with the path to your video file.
Ques:- what is Eventflow.?
Asked In :-
Right Answer:
Eventflow is a framework or library used for building event-driven applications, allowing developers to manage and process events efficiently in a system.
Comments
Admin May 17, 2020

When events happen to an object on the display list (an
object displayed on the screen), all the objects that
contain the object are notified of the event and notify
their event listeners in turn. This process starts with the
Stage and proceeds through the display list to the actual
object where the event occurred, and then proceeds back to
the Stage again. This process is known as the event flow.

Ques:- what is difference between AS2 and AS3.?
Asked In :-
Right Answer:
AS2 (ActionScript 2) is an object-oriented programming language used in Flash that supports class-based programming but has limited features compared to AS3. AS3 (ActionScript 3) is a more advanced version that offers better performance, a more robust event model, and a more powerful object-oriented programming structure. AS3 also has a stricter syntax and improved garbage collection compared to AS2.
Comments
Admin May 17, 2020

AS2 uses a lot of attributes that start with an underscore
(._x, ._alpha, etc). In AS3 the underscores are removed
(ie. .x, .alpha), if you see underscores you're probably in
2.
Second, look for variable typing. It's not required in
either version but a lot more people type their variables
in AS3...if variables are being typed (ie. var a:Number =
5) you're probably in 3.
Lastly, look for function return types. The majority of
functions in either language will be returning void...in
AS2 look for a capitol V (function():Void{) and in AS3 that
got lowercased (function():void{).
Another difference is the fact that all events in AS3 are
called with addEventListener function, instead of using
the "onEventName" property of each object.
• To add event listeners in ActionScript 2.0, you use
addListener() in some cases and addEventListener() in
others, whereas in ActionScript 3.0 you use addEventListener
() in all cases.
• There is no event flow in ActionScript 2.0, which
means that the addListener() method can be called only on
the object that broadcasts the event, whereas in
ActionScript 3.0 the addEventListener() method can be
called on any object that is part of the event flow.
• In ActionScript 2.0, event listeners can be either
functions, methods, or objects, whereas in ActionScript
3.0, only functions or methods can be event listeners.
• The on(event) syntax is no longer supported in
ActionScript 3.0, so you cannot attach ActionScript event
code to a movie clip. You can only use addEventListener()
to add an event listener.

Admin May 17, 2020

class concepts are also included in this version if u r
using external as file then u must know the class and oops
concept of programming.

Ques:- How to Communicate with JavaScript?
Asked In :-
Right Answer:
You can communicate with JavaScript using various methods such as:

1. **DOM Manipulation**: Use `document.getElementById()`, `document.querySelector()`, etc., to interact with HTML elements.
2. **Event Listeners**: Use `addEventListener()` to respond to user actions like clicks or key presses.
3. **AJAX**: Use `XMLHttpRequest` or the Fetch API to send and receive data from a server asynchronously.
4. **WebSockets**: Establish a persistent connection to communicate in real-time with a server.
5. **Local Storage**: Use `localStorage` or `sessionStorage` to store data on the client side.
6. **Console**: Use `console.log()` to output messages for debugging purposes.
Comments
Admin May 17, 2020

1. In previous versions of Flash, JavaScript communication
was done via fscommand. This was a buggy and complex
technology. In fact, it was so bad that most developers
actually preferred to put their JavaScript function calls
inside the getURL function. This got the job done, but was
far from ideal.
2. Flash 8 introduces a ground-breaking new way to
integrate Flash with its host called the External
Interface. This allows Flash/JavaScript integration to be
more powerful and stable. It is also very easy to use.
External Interface offers Flash 8 Developers the following
advantages: it's easier to implement, it allows for
synchronous communication, and it supports sending a wider
selection of data types, including objects.
3. Fscommand didn't allow for synchronous communication.
4. The External Interface allows you to call a JavaScript
function and receive a return value.
5. Fscommand allowed you to send primitive data types as
arguments in the function calls. Now, with External
Interface, you can send complex objects as arguments. In
example 2 below, we are passing the entire
system.capabilities object back to JavaScript.
<script language="JavaScript">
function getLocation() {
return window.location.toString();
}
</script>
import flash.external.ExternalInterface;
function displayPageLocation():Void {
locationDisplay.text = ExternalInterface.call
("getLocation");
}
locationButton.addEventListener("click",
mx.utils.Delegate.create(this,
displayPageLocation));

Ques:- how can i get two different fonts in a single line
Asked In :-
Right Answer:
You can use HTML `<span>` tags with different CSS styles for each font. For example:

```html
<span style="font-family: 'Font1';">Text with Font1</span>
<span style="font-family: 'Font2';">Text with Font2</span>
```

You can also use CSS classes to define the fonts and apply them to the spans.
Ques:- what is the difference between the start_form and open_form
Asked In :-
Right Answer:
`start_form` is typically used to begin a form in a web application, while `open_form` is often used to open an existing form for editing or viewing. The specific usage can vary based on the framework or library being used.
Comments
Admin May 17, 2020

Sart_form open the layouts
open_form open the layout.
Start_form initialise the spool.
Open_form initialise the layout.

Ques:- please send the scrpit driver program
Asked In :-
Right Answer:
Here is a simple script driver program in Python:

```python
def main():
# Call the function you want to test
result = my_function()
print("Result:", result)

def my_function():
# Example function logic
return "Hello, World!"

if __name__ == "__main__":
main()
```
Comments
Admin May 17, 2020

: When events happen to an object on the display list (an
object displayed on the screen), all the objects that
contain the object are notified of the event and notify
their event listeners in turn. This process starts with the
Stage and proceeds through the display list to the actual
object where the event occurred, and then proceeds back to
the Stage again. This process is known as the event flow.

Ques:- Would you tell me that what is test script? and how to write it? are there some templates?
Asked In :-
Right Answer:
A test script is a set of instructions or code written to automate the testing of a software application. It outlines the steps to execute a test case, including the input data, execution conditions, and expected results.

To write a test script, follow these steps:

1. **Define the Test Case**: Identify what you want to test.
2. **Choose a Testing Framework**: Select a framework (e.g., Selenium, JUnit, TestNG).
3. **Write the Script**: Use the framework's syntax to create the script, including setup, execution, and validation steps.
4. **Include Comments**: Add comments for clarity.
5. **Run the Script**: Execute the script to verify functionality.
6. **Review and Refine**: Analyze results and make necessary adjustments.

Templates can vary based on the testing framework but typically include sections for setup, execution, and validation. You can find specific templates in the documentation of the testing tools you are using.
Ques:- what we will test in functionality testing
Asked In :-
Right Answer:
In functionality testing, we will test whether the software functions as intended, including verifying features, user interactions, input handling, and output correctness against the specified requirements.
Comments
Admin May 17, 2020

Check all the Functions,Like Buttons/Shortcut keys/Radio
button/Scroll/Date combo box/Etc...
All function in the Screen must work accordingly.
Mohammed Mustafa Hussain
If any question mail me
mustafa_7_8_6@yahoo.com

Ques:- Difference between the SAP MDM vs IBM MDM in approach, the tools used , ease in handling/implementing.
Asked In :-
Right Answer:
SAP MDM focuses on integrating and managing master data within SAP environments, using tools like SAP Data Services and SAP Information Steward. It is designed for organizations heavily invested in SAP solutions.

IBM MDM, on the other hand, offers a more flexible approach that can integrate with various systems and platforms, utilizing tools like IBM InfoSphere MDM and IBM Watson for data governance.

In terms of ease of handling, SAP MDM may be simpler for SAP-centric organizations, while IBM MDM provides broader compatibility and customization options, making it potentially easier for diverse IT environments.
Ques:- ‘IMP’ is not recognized as an internal or external command, operable program or batch file. this is the error message i am getting when i importing dmp for the backup. where is the problem?
Asked In :-
Comments
Admin May 17, 2020

Please set path like set path=d:orantbin.
After that try importing.

Admin May 17, 2020

This happens when Oracle path is not set in Your
environment variable , "PATH"

Ques:- How to double click on Simple HtmlText in SilkTest automation tool?
Asked In :- Algoworks Technologies,
Right Answer:
To double click on a Simple HtmlText in SilkTest, you can use the following code:

```silktest
HtmlText htmlTextObject = HtmlText("YourHtmlTextIdentifier");
htmlTextObject.doubleClick();
```
Comments
Admin May 17, 2020

hmm, in process for finding answer for the question below:-
How to double click on Simple HtmlText in SilkTest
automation tool?

Ques:- how do i compose the text message in the yahoomail using descriptive programming in QTP?
Asked In :-
Right Answer:
To compose a text message in Yahoo Mail using descriptive programming in QTP, you can use the following code snippet:

```vbscript
' Launch Yahoo Mail
SystemUtil.Run "iexplore.exe", "https://mail.yahoo.com"

' Wait for the page to load
Wait 5

' Click on the "Compose" button
Browser("Yahoo").Page("Yahoo Mail").WebButton("Compose").Click

' Wait for the compose window to open
Wait 2

' Set the recipient email address
Browser("Yahoo").Page("Yahoo Mail").WebEdit("To").Set "recipient@example.com"

' Set the subject
Browser("Yahoo").Page("Yahoo Mail").WebEdit("Subject").Set "Your Subject Here"

' Set the message body
Browser("Yahoo").Page("Yahoo Mail").WebEdit("Body").Set "Your message content here"

' Click the "Send" button
Browser("Yahoo").Page("Yahoo Mail").WebButton("Send").Click
Comments
Admin May 17, 2020

even i need answer

Ques:- How can you convert QTP 8.2 scripts to QTP 9.2. Please give some inputs ASAP.
Asked In :-
Right Answer:
To convert QTP 8.2 scripts to QTP 9.2, follow these steps:

1. Open QTP 9.2 and load the QTP 8.2 script.
2. QTP will automatically prompt to upgrade the script to the new version.
3. Review and resolve any compatibility issues or deprecated functions.
4. Save the script in the new format.
5. Test the script to ensure it runs correctly in QTP 9.2.
Ques:- What are the advantages and disadvantages of Descriptive programing and Object repository in QTP??
Asked In :-
Right Answer:
**Advantages of Descriptive Programming:**
1. Flexibility: Allows dynamic identification of objects at runtime.
2. No maintenance of object repositories: Reduces overhead of managing object repositories.
3. Useful for applications with dynamic objects: Can handle changing UI elements effectively.

**Disadvantages of Descriptive Programming:**
1. Complexity: Requires more coding and can be harder to read and maintain.
2. Higher chances of errors: Manual coding increases the risk of mistakes.
3. Steeper learning curve: May be challenging for beginners.

**Advantages of Object Repository:**
1. Easier maintenance: Centralized management of objects simplifies updates.
2. User-friendly: Simplifies the process for non-technical users.
3. Reusability: Objects can be reused across multiple tests.

**Disadvantages of Object Repository:**
1. Limited flexibility: Static object definitions may not handle dynamic changes well.
2. Maintenance overhead: Requires regular updates as the application changes.
3. Performance: Can slow down test
Comments
Admin May 17, 2020

Advantages:
1. One place where DP can be of significant importance is
when you are creating functions in an external file. You
can use these function in various actions directly,
eliminating the need of adding object(s) in object
repository for each action [If you are using per action
object repository]
2. The objects in the application are dynamic in nature and
need special handling to identify the object. The best
example would be of clicking a link which changes according
to the user of the application, Ex. “Logout <>”.
3. When object repository is getting huge due to the no. of
objects being added. If the size of Object repository
increases too much then it decreases the performance of QTP
while recognizing a object. [For QTP8.2 and below Mercury
recommends that OR size should not be greater than 1.5MB]
4. When you don’t want to use object repository at all.
Well the first question would be why not Object repository?
Consider the following scenario which would help understand
why not Object repository
Scenario 1: Suppose we have a web application that has not
been developed yet. Now QTP for recording the script and
adding the objects to repository needs the application to
be up, that would mean waiting for the application to be
deployed before we can start of with making QTP scripts.
But if we know the descriptions of the objects that will be
created then we can still start off with the script writing
for testing
Scenario 2: Suppose an application has 3 navigation buttons
on each and every page. Let the buttons be “Cancel”, “Back”
and “Next”. Now recording action on these buttons would add
3 objects per page in the repository. For a 10 page flow
this would mean 30 objects which could have been
represented just by using 3 objects. So instead of adding
these 30 objects to the repository we can just write 3
descriptions for the object and use it on any page.
5. When you want to take action on similar type of object
i.e. suppose we have 20 textboxes on the page and there
names are in the form txt_1, txt_2, txt_3 and so on. Now
adding all 20 the Object repository would not be a good
programming approach.
Disadvantages:
1. Test should aware of VB scripting knowledge.
2. The main disadvantage of Descriptive programming is
Maintenance issue.
Since Object repository will be stored in centralized
place, property definition for any Object can be easily
changed at any time if the application developer changes
the property of the actual object/control.
But, in descriptive programming (DP) it is difficult to
change the object property as each QTP developer will be
defining object property in many places using DP.

Ques:- how can i type the text message in compose box in yahoo mail using descriptive programming in QTP?
Asked In :-
Right Answer:
To type a text message in the compose box in Yahoo Mail using descriptive programming in QTP, you can use the following code snippet:

```vbscript
' Set the browser and navigate to Yahoo Mail
Set objBrowser = Browser("name:=Yahoo Mail")
Set objPage = objBrowser.Page("title:=Yahoo Mail")

' Identify the compose box using its properties
Set objComposeBox = objPage.WebEdit("name:=composeBox")

' Type the message in the compose box
objComposeBox.Set "Your message here"
```

Make sure to replace `"Your message here"` with the actual text you want to input.
Ques:- how can we move to the next column in excel sheet in file operation using descriptive programming inQTP?
Asked In :-
Right Answer:
To move to the next column in an Excel sheet using descriptive programming in QTP, you can use the following code:

```vbscript
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("C:pathtoyourfile.xlsx")
Set objSheet = objWorkbook.Sheets(1)

' Assuming you are starting from cell A1
row = 1
column = 1 ' A = 1, B = 2, C = 3, etc.

' Move to the next column
column = column + 1
cellValue = objSheet.Cells(row, column).Value

' Clean up
objWorkbook.Close False
objExcel.Quit
Set objSheet = Nothing
Set objWorkbook = Nothing
Set objExcel = Nothing
```

This code opens an Excel file, accesses the first sheet, and moves to the next column by incrementing the column index.
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:
```python
def fun1(a, b):
c = a + b
return c

def fun2(value):
print("The value from fun1 is:", value)

# Example usage
result = fun1(2, 3)
fun2(result)
```
Comments
Admin May 17, 2020

Hi Ganesh,
I will try for this. Thank u for sending responce once
again.

Admin May 17, 2020

<script language="javascript">
function add()
{
var a=parseInt(document.getElementById('x').value);
var b=parseInt(document.getElementById('y').value);
var c= a + b;
fun(c);
}
function fun(disp)
{
alert(disp);
}
</script>
</head>
<body>
Enter First Number:<input type="text" id="x" /><br />
Enter Second Number:<input type="text" id="y" /><br />
<input type="button" value="Add" onclick="add()" />
</body>
Am i right ??

Ques:- database acl level has manager access.his name is listed in author and Reader fields. but he didn’t sea a documents what is the reason?
Asked In :-
Ques:- We have 1 web page with names column. I am giving the Service Providers1,2,3…. @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
Asked In :-


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