Add office photos
Employer?
Claim Account for FREE

Airtel X- Labs

3.1
based on 99 Reviews
Filter interviews by

10+ Awesome Screens Interview Questions and Answers

Updated 13 Aug 2024

Q1. What are the test cases you can write for testing history in YouTube kind channel

Ans.

Test cases for testing history in YouTube-like channel

  • Verify that the history page displays the correct list of videos watched by the user

  • Test if the history can be cleared successfully

  • Check if the history is updated in real-time as the user watches videos

  • Ensure that the history is accessible only to the logged-in user

  • Verify that the history page loads quickly and efficiently

Add your answer

Q2. Given two stacks, one full and one empty, return one stack of odd and one of even numbers, without using any other memory.

Ans.

Return odd and even numbers from two stacks, one full and one empty, without using any other memory.

  • Pop elements from full stack and check if it's odd or even

  • Push odd elements to one stack and even elements to another

  • Push elements back to full stack in alternating order

  • Time complexity: O(n), Space complexity: O(1)

Add your answer

Q3. How to find and remove duplicates in table

Ans.

Use SQL query with GROUP BY and HAVING clause to find and remove duplicates in a table.

  • Use SELECT statement with COUNT() function to identify duplicates

  • Use GROUP BY clause to group duplicate records

  • Use HAVING clause to filter out groups with count greater than 1

  • Use DELETE statement to remove duplicates based on identified criteria

Add your answer

Q4. Q-Separate 0's and 1's from String Q-Reverse the string word-wise.

Ans.

Separate 0's and 1's from string and reverse the string word-wise.

  • Iterate through the string and separate 0's and 1's into separate arrays

  • Join the arrays back into a single string with 0's first and 1's second

  • Split the string into an array of words and reverse the order of the array

  • Join the array back into a single string with words in reverse order

Add your answer
Discover Awesome Screens interview dos and don'ts from real experiences

Q5. print left view of a binary tree

Ans.

Print the left view of a binary tree

  • Traverse the tree in a level order traversal

  • Print the first node at each level encountered

  • Use a queue to keep track of nodes at each level

Add your answer

Q6. LRU cache implementation with code.

Ans.

LRU cache implementation using doubly linked list and hash map.

  • Use a doubly linked list to keep track of the order of elements in the cache.

  • Use a hash map to store the key-value pairs for fast access.

  • When a new element is added, check if the cache is full and remove the least recently used element.

  • When an element is accessed, move it to the front of the linked list.

Add your answer
Are these interview questions helpful?

Q7. Write a program to find the Next Smaller Element.

Ans.

Program to find the Next Smaller Element

  • Create an empty stack

  • Traverse the array from right to left

  • Pop elements from stack until a smaller element is found

  • If no smaller element is found, output -1

  • Push the current element onto the stack

Add your answer

Q8. Q-Explain Automation Framework. Q- HTTP codes

Ans.

Automation Framework is a set of guidelines and standards for creating and maintaining automated tests.

  • Automation Framework provides a structure for organizing test code and data

  • It helps in reducing maintenance efforts and increasing test coverage

  • Examples of Automation Frameworks are Selenium, Appium, and TestNG

  • HTTP codes are status codes returned by a server in response to a client's request

  • Some common HTTP codes are 200 (OK), 404 (Not Found), and 500 (Internal Server Error)

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Explain any ML algorithm in depth

Ans.

Random Forest is an ensemble learning algorithm that builds multiple decision trees and combines their outputs.

  • Random Forest is a supervised learning algorithm.

  • It can be used for both classification and regression tasks.

  • It creates multiple decision trees and combines their outputs to make a final prediction.

  • Each tree is built on a random subset of the training data and a random subset of the features.

  • Random Forest reduces overfitting and improves accuracy compared to a single...read more

Add your answer

Q10. Design url shortner.

Ans.

Design a URL shortener

  • Generate a unique short code for each URL

  • Store the mapping of short code to original URL in a database

  • Redirect users to the original URL when they access the short code

Add your answer

Q11. merge two sorted array

Ans.

Merge two sorted arrays into a single sorted array

  • Create a new array to store the merged result

  • Compare elements from both arrays and add the smaller one to the result array

  • Continue this process until all elements from both arrays are merged

Add your answer

Q12. merge overlapping integers

Ans.

Merge overlapping intervals in an array of integers

  • Sort the intervals based on the start value

  • Iterate through the intervals and merge overlapping ones

  • Return the merged intervals

Add your answer

Q13. sort 0 1 2 array

Ans.

Sort an array of strings containing only 0s, 1s, and 2s.

  • Use counting sort algorithm to sort the array in linear time complexity.

  • Count the occurrences of 0s, 1s, and 2s in the array.

  • Reconstruct the array with the sorted counts.

Add your answer

Q14. CAP theorem

Ans.

CAP theorem states that a distributed system cannot guarantee consistency, availability, and partition tolerance at the same time.

  • Consistency: all nodes see the same data at the same time

  • Availability: every request receives a response, without guarantee that it contains the most recent version of the information

  • Partition tolerance: the system continues to function even when network partitions occur

  • Examples: Cassandra prioritizes availability and partition tolerance over consi...read more

Add your answer

Q15. what is your aim?

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Awesome Screens

based on 4 interviews in the last 1 year
Interview experience
4.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.7
 • 6.1k Interview Questions
4.0
 • 206 Interview Questions
4.0
 • 193 Interview Questions
4.2
 • 192 Interview Questions
3.8
 • 140 Interview Questions
4.3
 • 130 Interview Questions
View all
Top Airtel X- Labs Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter