A badminton coach was trying to put together a team of 4 players for a friendly badminton championship out of 7 players. R, S, T are the male players, and W, X, Y, Z are the female players. Note that all players have equal ability, and the team needs to have atleast 2 male players. While selecting the team we need to keep in mind that all 4 players should be able to play with each other. We also need to keep the following restrictions in mind:
- R cannot play with Y
- S cannot play with W
- T cannot play with Z
Which of the following are true:
A: S and Z cannot be in the team together.
B: T and Y cannot be in the team together.
C: T and X cannot be in the team together.
Attention to Detail
In a new code language called Adira,
- '4A, 2B, 9C' means 'truth is eternal'
- '9C, 2B, 8G, 3F' means 'hatred is not eternal'
- '4A, 5T, 3F, 1X' means 'truth does not change'
What is the code for 'hatred' in Adira?
Alex’s uncle is a magician who gave them a magic bag in which coins get doubled each time you put those coins into it. Initially, Alex had few coins with them. So, Alex put all the coins, and the coins got doubled. Alex took out all the coins and gave a few to their friend and then again put the remaining coins back in the bag. The coins doubled again; Alex took out all the coins again and gave a few coins to their second friend. Alex then put the remaining coins in the bag and the coins doubled again. Alex took out all the coins and gave a few coins to their third friend.
There were no coins left with Alex when Alex gave coins to the third friend and Alex gave an equal number of coins to each friend. What is the minimum number of coins Alex had initially and how much did Alex give to each friend?
A: Started with 3 coins
B: Started with 5 coins
C: Started with 6 coins
D: Started with 7 coins
E: Started with 9 coins
F: Gave 3 coins in every turn
G: Gave 4 coins in every turn
H: Gave 5 coins in every turn
I: Gave 7 coins in every turn
J: Gave 8 coins in every turn
K: Gave 9 coins in every turn
Emma's cafe business
Emma's cafe has been operating successfully for the last 6 years. Profits have been growing every year, with this year (2020) being their best year so far. As a thank you, Emma treated her staff to a meal at a Michelin star restaurant. Below are 3 statements about Emma, her staff and her cafe. Can you help us decide whether the 3 statements are "True", "Probably True", "Insufficient Data to Say True or False", "Probably False", or "False".
1. Emma's staff members are happy.
2. Emma's cafe did well in 2016.
3. Emma is rich.
C: Probably True
D: Probably False
E: Insufficient Data
Ravens Progressive Matrices
Which of the following figures do you think would complete the pattern shown below?
Your company recently opened a second office overseas. Some of the people from the original office will be relocating. All the people hired in the last six months will continue working in the original location where they were hired. Which of the following statements can be true regarding employees relocating?
Async Await Promises
What will the following code output?
A: 24 after 5 seconds and after another 5 seconds, another 24
B: 24 followed by another 24 immediately
C: 24 immediately and another 24 after 5 seconds
D: After 5 seconds, 24 and 24
G: None of these
What does the following Java code output?
Review the following React code:
Pick the correct statements:
A: The code renders 10 INDIAN RUPEE
B: The code renders 10 SINGAPORE DOLLAR
D: When the currency portion is clicked, the parent component is re-rendered
E: When the currency portion is clicked, parent component will skip the re-render because shouldComponentUpdate returns false
F: Parent component can be converted to a functional component with memoization (useMemo or memo) to avoid the re-render
Slapchat deployed a new data processing application to the market. The backend part of the application does two specific segments:
- For every new data file submitted by the user, proprietary data cleanup logic is done
- Once data cleanup is complete, proprietary data transformations are done
After launching the application for few months, the metrics indicated that the clean up stage of the application is pretty quick while transformation stage takes longer time to complete. In the next phase, the application is being re-written as 2 microservices (’cleanup’ and ‘transformation’). The deployment strategy is to run both on ECS and scale independently. How should the services be integrated?
A: ‘cleanup’ publishes data to SNS topic, ‘transformation’ subscribes to the SNS topic
B: ‘cleanup’ sends data to S3 bucket, ‘transformation’ is invoked by S3 event notifications
C: ‘cleanup’ sends data to SQS queue, ‘transformation’ processes messages from the queue
D: ‘cleanup’ sends data to Kinesis Data Firehose, ‘transformation’ reads from the Kinesis Data Firehose
A startup company E-Motors is building driverless automated cars. The car contains a sensor that checks the road quality for the next N meters to decide the optimal speed at which the cars should move. We are given recorded data by the sensor in the form of an array, where each element of the array is the rating given to 1 meter of the road in sequence.
The rating given by the sensor is from 1 to 100, where 100 represents the road with the best condition, and any rating above 60 is optimal. Find the longest stretch of road in meters that is categorized as optimal by the sensor.
The input is an array of "strings" which needs to be converted from string to integer/number inside the function.
Review the following table in Power BI:
Here’s the visualisation generated when Book and ReadingChallenges columns are added to a table visualisation:
Why do we see only 4 rows?