|
INTERVIEW QUESTIONS
TESTING
WIN RUNNER
DETAILS
Question: How you create user-defined functions and explain the syntax?
Answer: A user-defined function has the following structure: [class] function name ([mode] parameter...) { declarations; statements; } b. The class of a function can be either static or public. A static function is available only to the test or module within which the function was defined. c. d. Parameters need not be explicitly declared. They can be of mode in, out, or inout. For all non-array parameters, the default mode is in. For array parameters, the default is inout. The significance of each of these parameter types is as follows: in: A parameter that is assigned a value from outside the function. out: A parameter that is assigned a value from inside the function. inout: A parameter that can be assigned a value from outside or inside the function.
|
|
|
Category |
Win Runner Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9467 users |
Added on |
10/25/2009 |
Views |
71878 |
Rate it! |
|
|
Question:
How you create user-defined functions and explain the syntax?
Answer:
A user-defined function has the following structure: [class] function name ([mode] parameter...) { declarations; statements; } b. The class of a function can be either static or public. A static function is available only to the test or module within which the function was defined. c. d. Parameters need not be explicitly declared. They can be of mode in, out, or inout. For all non-array parameters, the default mode is in. For array parameters, the default is inout. The significance of each of these parameter types is as follows: in: A parameter that is assigned a value from outside the function. out: A parameter that is assigned a value from inside the function. inout: A parameter that can be assigned a value from outside or inside the function. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What does static and public class of a function means?
|
View Answer
|
|
What does in, out and input parameters means?
|
View Answer
|
|
What is the purpose of return statement?
|
View Answer
|
|
What does auto, static, public and extern variables means?
|
View Answer
|
|
How do you declare constants?
|
View Answer
|
|
How do you declare arrays?
|
View Answer
|
|
How do you load and unload a compile module?
|
View Answer
|
|
Why you use reload function?
|
View Answer
|
|
Write and explain compile module?
|
View Answer
|
|
How do you call a function from external libraries (dll).
|
View Answer
|
|
What is the purpose of load_dll?
|
View Answer
|
|
How do you load and unload external libraries?
|
View Answer
|
|
How do you declare external functions in TSL?
|
View Answer
|
|
How do you call windows APIs, explain with an example?
|
View Answer
|
|
Write TSL functions for the following interactive modes: i. Creating a dialog box with any message you specify, and an edit field. ii. Create dialog box with list of items and message. iii. Create dialog box with edit field, check box, and execute button, and a cancel button. iv. Creating a browse dialog box from which user selects a file. v. Create a dialog box with two edit fields, one for login and another for password input.
|
View Answer
|
|
What is the purpose of step, step into, step out, step to cursor commands for debugging your script?
|
View Answer
|
|
How do you update your expected results?
|
View Answer
|
|
How do you run your script with multiple sets of expected results?
|
View Answer
|
|
How do you view and evaluate test results for various check points?
|
View Answer
|
|
How do you view the results of file comparison?
|
View Answer
|