You are on page 1of 5

Name: DINESH KUMAR Date: 24th Oct 2017

Section 1:
1. A mobile app is designed to indicate the battery level of the device with different color
LED indicator. Lets assume there are four colors for indication-
Green- Battery > 80%
Blue- (greens range) > Battery > 50%
Yellow- (blues range) >Battery
Red- Battery < 10%
What approach would you take to test the app?
Solution:
To test the above application I would follow below type of testing where I start with
functional testing then move to non-functional scenarios;
1. Test the Installation of the application in different devices.
2. Test the uninstallation of the application in different devices.
3. Do a Sanity Test to make sure that application is testable.
4. Start with Functional Testing where we test the application features thoroughly ;
a. Test the battery when its 100%, should be Green.
b. Test the battery when its >80%, should be Green.
c. Test the battery when its 80%, should be Blue.
d. Test the battery when its <80%, should be Blue.
e. Test the battery when its >50%, should be Blue.
f. Test the battery when its 50%, should be Yellow.
g. Test the battery when its <50%, should be Yellow.
h. Test the battery when its >10%, should be Yellow.
i. Test the battery when its 10%, should be red.
j. Test the battery when its <10%, should be red.
k. Test all above conditions for a fast draining battery
l. Test all above conditions while charging mode[AC]
m. Test all above conditions while non charging mode[DC]
5. Start with Non Functional Testing.
a. Compatibility Testing;
i. Different Mobile Devices

Coviam Confidential. Duplication of this paper or publishing through any other source is
prohibited.
ii. Different Operating System.
iii. Test the application in Emulators
iv. Test the application in physical device.
v. Check if any scattered or gathered contents in the application in
different platforms.
b. Performance Testing.
i. Verify the battery indication for the application in heavy use i.e. using
the multiple applications with multiple users at same time and check
that battery indication is correct.
c. Do the stress testing by using the application beyond the limit i.e. keep open
the application for more than the time given?
d. Do a security check with respect to the application where it ask for different
permissions i.e. accessing phone book, contacts, other application and user
authentication etc.
e. Check the application user friendliness of application by doing Usability
Testing ;
i. Check the User interface used in application.
ii. Check for spelling issues.
iii. Check the Looks and feel.
iv. Test the color used in application, Test format and font of the text and
images etc

----------------------------------------------------------------------------------------------------------------

Coviam Confidential. Duplication of this paper or publishing through any other source is
prohibited.
2. You have an app installed on your device which has a refresh button. When you press
refresh, the data on the page gets refreshed and sometimes it gives bad request and
sometimes it displays no data. List down on what you think the problems could be.
Solution:
1. Scanrio01: if there is data to be fetched or updated in server then system will fetch
that data and refresh the page successfully.
2. Scenario02: Bad request error occurs in a situation where we are requesting for a
page which has been incorrect or corrupted or has been removed from the location
and the server couldn't understand it.
3. Scenario03: If there is no data updated in the source or no new information exist
then system will give no data message.

----------------------------------------------------------------------------------------------------------------
--------------------
3. You changed battery of your TVs remote control - what tests would you perform to
ensure the remote is working alright?
Solution: To make sure remote is working with new battery, I will follow below scenarios;
4. Insert new battery and switch on/Off the TV to Verify the functionality of power
ON-OFF button
5. Verify that all the buttons are working i.e. 0 to 9, volume, channel up-down and
other audio-video functionality.
6. Verify that the Remote Control should work for a particular TV set model
numbers only.
7. Verify that user can navigate to different single digit and multi digit channels
8. Verify that user can increase or decrease the volume.
9. Verify that user can navigate up and down the channel using channel up and down
buttons
10. Verify the maximum distance from the Television set upto which the remote
works smoothly.
11. Verify the button press event that triggers the functionality i.e. an event gets
triggered on button down press, button release etc.
12. Verify the arc/different directions the remote control works correctly.
13. Verify the remote's functioning on pressing more than one button simultaneously
14. Verify that on battery discharge, the remote should work normally on inserting
new batteries
15. Verify that any operation performed on the remote control while the TV is
switched off should not make any difference to TV's functioning when switched
on.

---------------------------------------------------------------------------------------------------------------
Coviam Confidential. Duplication of this paper or publishing through any other source is
prohibited.
Section 2:
1. A person has certain number of cows and birds. They have 172 eyes and 344 legs.
How many cows and birds does he have?
Answer:
Lets Assume
Number of cows = x
Number of birds = y
so total number of eyes = 2x + 2y = 172

total number of legs are = 4x + 2y = 344

so solving these equations we get

0 birds and 86 cows

---------------------------------------------------------------------------------------------------------------
1. (Optional bonus points)
Write Pseudo-code or code in a language you are comfortable with to get a decimal
input, round off and print the rounded-off value. You are not allowed to use a
conditional operator or an in-built function to round-off, however you can use a
function post round off to process and print the value. Ex: When a user inputs 26.2,
the round off value should be 26, while 26.7, it should be 27.
Solution Code :
public class covium
{
public static int RondoffNumber(Double number)
{
int rounded = (int) (number + 0.5);
return rounded;
}
public static void main(String[] args)
{
double number=26.7;//enter any number
int result=covium.RondoffNumber(number);
System.out.println(result );
}
}

Coviam Confidential. Duplication of this paper or publishing through any other source is
prohibited.
----------------------------------------------------------------------------------------------------------------
2. (Optional bonus points)
SQL: You have two tables which has product details in the products table and
corresponding merchant details in the merchants table (PTO for description). Write a
SQL statement to print Merchant Name and City, Product Name and Unit by Merchant
ID.

Products: PRODUCT_ID | PRODUCT_NAME | PRODUCT_UNIT | MERCHANT_ID


Merchants: MERCHANT_ID | MERCHANT_NAME | MERCHANT_CITY
Answer: [Here I am using Full Outer join to get all the records i.e. matching/non
matching,for other opetions we can use Inner,Left or Right join]

Select MERCHANT_NAME, MERCHANT_CITY, PRODUCT_NAME, PRODUCT_UNIT


From PRODUCTS
OUTER JOIN MERCHANT
ON
PRODUCTS.MERCHANT_ID= MERCHANT.MERCHANT_ID
----------------------------------------------------------------------------------------------------------------

Coviam Confidential. Duplication of this paper or publishing through any other source is
prohibited.

You might also like