TCS OPA Unix Solution | July All Unix Solution | Unix Previous OPAs Solution | Unix Coding Solution

Опубликовано: 29 Июль 2020
на канале: Engineers Revolution
3,063
43

In this video, You will get the solutions for all the 4 problems asked in July month. Do watch the video and get benefited !


Write a unix code to display the roll number of student who failed in one subject alone.
The student is considered as fail if his score is below 60.

Sample input:
Roll,Name,Subject,Score
101,Adam,CsC,30
102,Juhi,Math,78
101,Adam,Math,90
103,Adam,Math,50
101,Adam,CHM,50
102,Juhi,CsC,50

Sample Output
102
103

Write a unix command to display the records where "Python" is present in the 3rd column and "Oracle" is present in the 4th column, and also sort the records in the descending order of student name

Sample Input
1,Raja,Python,Oracle
2,Latha,Oracle,Python
3,Raghu,Python,MySQL
4,Likit,MySQL,Oracle
5,Latha,Python,Oracle

Sample Output
1&Raja&Python&Oracle
5&Latha&Python&Oracle

Write the unix command to display all the fields along with Profit field ( as a last field of every record ). The output records of multiple stores are to be displayed in the ascending order of profit

Sample Input
1,RamsDeptStore,Stationary,100,50
2,RajaStore,Departmental,88,84
3,HealthyStore,Grocery,95,97
4,MiniStore,Medical,60,55

Sample Output
3|HealthyStore|Grocery|95|97|-2
2|RajaStore|Departmental|88|84|4
4|MiniStore|Medical|60|55|5
1|RamsDeptStore|Stationary|100|50|50


Write the unix command to display all the fields in the same order along with profit field (Revenue - Expense ) which are in profit. The store details are to be displayed in descending order of profit

Sample Input
1,RamsDeptStore,Stationary,100,50
2,RajaStore,Departmental,88,84
3,HealthyStore,Grocery,95,97
4,MiniStore,Medical,60,55

Sample Output
1|RamsDeptStore|Stationary|100|50|50
4|MiniStore|Medical|60|55|5
2|RajaStore|Departmental|88|84|4


Смотрите видео TCS OPA Unix Solution | July All Unix Solution | Unix Previous OPAs Solution | Unix Coding Solution онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Engineers Revolution 29 Июль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,063 раз и оно понравилось 43 людям.