Innominds Software
NMG Technologies Interview Questions and Answers
Q1. (1) write a list comprehension to print a list from 1 to 10 (2) write a program to check if a given positive integer is a power of two (3) create a fibonacci series of 100 using recursive function (4) write a p...
read moreA technical interview question for Senior Automation Test Engineer involving list comprehension, power of two, fibonacci series, missing numbers, and character count.
Use range() function to generate a list from 1 to 10 in list comprehension
Check if the given integer is a power of two by using bitwise AND operator
Use recursion to create a fibonacci series of 100
Find missing numbers from a list by comparing it with a range of numbers
Use a dictionary to count the occurrence of e...read more
Q2. Python : (1) what is recursion ? Give example ? (2)what are the different data types in python? (3)What is negative indexing in python ? (4) How exception is handled in python ? (5) what is with statement (6) W...
read morePython interview questions covering recursion, data types, exception handling, memory management, and more.
Recursion is a function that calls itself. Example: factorial function.
Python data types include integers, floats, strings, lists, tuples, and dictionaries.
Negative indexing allows you to access elements from the end of a list or string. Example: my_list[-1] returns the last element.
Exceptions are handled using try-except blocks. Example: try: some_code except SomeExcept...read more
Q3. What is a generator ? Have you used it in real time?
A generator is a function that returns an iterator object. It generates a sequence of values on the fly.
Generators are used to create iterators for lazy evaluation of a sequence of values.
They are memory efficient as they generate values on the fly instead of storing them in memory.
Generators are used in Python for creating infinite sequences, reading large files, and processing data in chunks.
Example: def my_generator(): yield 1; yield 2; yield 3; for i in my_generator(): pr...read more
Q4. Print a list of odd index elements from list1 and even index elements from list2 and print the thrid list with the result set of both. list1 = [3,6,9,12,15,18,21] list2 = [4,8,12,16,20,24,28]
Print odd index elements from list1 and even index elements from list2 and combine them into a third list.
Loop through both lists and use conditional statements to append the elements to the third list.
Use the modulo operator to check for odd/even index.
Final list should contain [6, 4, 12, 12, 18, 20].
Q5. What is software Test life Cycle and Bug Life cycle?
Software Test Life Cycle (STLC) is a sequence of activities carried out to ensure quality in software testing. Bug Life Cycle is a process followed by the testing team to track and manage bugs found during testing.
STLC includes planning, designing, executing, and reporting of tests.
Bug Life Cycle includes bug identification, reporting, assigning, fixing, retesting, and closing.
STLC ensures that the software meets the requirements and is of high quality.
Bug Life Cycle ensures ...read more
Q6. What is pull request in git? how do you commit code ? how do you resolve merge conflicts ?
Pull request is a feature in git that allows developers to review and merge code changes.
A pull request is created when a developer wants to merge their changes into the main branch
Other developers can review the changes and leave comments or suggestions
Once the changes are approved, the pull request can be merged into the main branch
To commit code, use the 'git commit' command with a message describing the changes made
To resolve merge conflicts, use 'git merge' and manually ...read more
Q7. (1) what is chmod 644 example.txt permission ? (2) what is the use of xpath? (3) how will you find an element by xpath and by css in selenium ?
Answers to technical questions for Senior Automation Test Engineer position.
chmod 644 example.txt permission means the owner has read and write access, while others have only read access.
XPath is a language used to locate elements in an XML document or HTML page.
To find an element by XPath in Selenium, use the findElement() method with the By.xpath() locator. For example: driver.findElement(By.xpath("//input[@id='username']"));
To find an element by CSS in Selenium, use the fi...read more
Q8. What is a lambda function? Give a example
A lambda function is a small anonymous function that can take any number of arguments and return a single value.
Lambda functions are also known as anonymous functions or closures.
They are often used as arguments for higher-order functions, such as map, filter, and reduce.
Example: lambda x: x**2 defines a lambda function that takes one argument and returns its square.
Q9. write a python program to print the repititve characters in a list which should exclude integers input = ['a','a',4,4,'b','c','a'] output = {'a':3}
Python program to print repetitive characters in a list excluding integers
Use a dictionary to store the count of each character
Iterate through the list and check if the character is a string and not an integer
Print the characters with count greater than 1
Interview Process at NMG Technologies
Top Senior Automation Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month