anonymous
BAN USER
Questions (2)
Comments (2)
Reputation 50
- 1of 1 vote
AnswerWrite all possible scenarios for youtube app on your TV
- anonymous in United States| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Quality Assurance
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
I wrote approx 20 scenarios for this don't remember all but still a few I remember I am writing below:
1.launch app successfull
2.search bar enabled
3. Search icon enabled and clickbale
4.Typing in search bar working
5.Check for video search
6. Check for audio search
7. Check that a list is returned after each search
8. Check for play button on video
9.Check for Pause button on video
10. Check for rewind/forward button
11. check for tv/audio and video setting
12. check by typing special characters
13. check by keeping search bar blank and trying to search
These are some of them, but I gave some more
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
public class Frequency {
- anonymous August 25, 2020public static void main(String[] args) {
//Initialize array
int [] arr = new int [] {1, 2, 8, 3, 2, 2, 2, 5, 1};
//Array fr will store frequencies of element
int [] fr = new int [arr.length];
int visited = -1;
for(int i = 0; i < arr.length; i++){
int count = 1;
for(int j = i+1; j < arr.length; j++){
if(arr[i] == arr[j]){
count++;
//To avoid counting same element again
fr[j] = visited;
}
}
if(fr[i] != visited)
fr[i] = count;
}
//Displays the frequency of each element present in array
System.out.println("---------------------------------------");
System.out.println(" Element | Frequency");
System.out.println("---------------------------------------");
for(int i = 0; i < fr.length; i++){
if(fr[i] != visited)
System.out.println(" " + arr[i] + " | " + fr[i]);
}
System.out.println("----------------------------------------");
}}
Output :
----------------------------------------
Element | Frequency
----------------------------------------
1 | 2
2 | 4
8 | 1
3 | 1
5 | 1
----------------------------------------