Aptitude
1. 51
2. 21
3. 156
4. 1166
5. 2,3,5,11
6. 27,56
7. 2*3*13*13
8. 2
9. 10
10. 99
11. 16
12. 41.315
13. 1/8
14. 10
15. RS.1000
16. RS.342
Reasoning
1. only 2
2. only 1 and 4 and either 2 or 3
3. only 1 and 4
4. only 3
5. only 1 and 3
6. Only (3)
7. None of the above
8. Only (3) and (4)
9. None of the these
10. Only (3)
11. only(1) and (2)
12. only (3)
13. only (2) and (4)
14. none of these
VERBAL
1. 51
2. 21
3. 156
4. 1166
5. 2,3,5,11
6. 27,56
7. 2*3*13*13
8. 2
9. 10
10. 99
11. 16
12. 41.315
13. 1/8
14. 10
15. RS.1000
16. RS.342
ESSAY
In our guest to discover unknown things and to invent new things we have reached a stage where it is unimaginable and impossible to live without technology. Technology has been gradually taking over our lives and we are not even aware of the fact that we have become slaves to technology. We have become too dependent and reliant on technology that if it were to be taken away from us we would confused and lost.
Technology is helping us in many ways like financial transaction, buying food and stuffs, paying our bills and booking our flight tickets in the comfort of our home. Similarly we can online education and degrees, instant medical advice on health issues, watching our favorite movies and many more. But although technology has been helping us, it has been pulling us away from the real world.
Human beings are social beings. We love the latest technological gadgets which help people to connect and communicate with each other. But in the process we have lost authentic relationships. Technology does not allow us to work as a team of real humans with real connection.
Psychologically, the silence without real human social life is making us more isolated and lonely. Depression is increasing but we don't like to blame technology because it has become a way of life for us.
Technology has stolen our physical well-being. We have less physical activities and many of our body parts are becoming less inactive and shutting down. New technologies can empower us to connect with people anywhere in the world. But the harsh reality is that these technologies have divided us. Within the last decade we have steadily and gradually become slaves to technology, we have become actors in our own story.
------------------------------------------------------------------------------------------
CODING
1.
Write a code with function getFare(String Source, String Destination) which take Input as source and destination stops(in the format containing first two characters of the Name of the Bus Stop) and calculate and return travel fare. code example
C++ CODE:
#include <bits/stdc++.h>
using namespace std;
int main() {
string s , d;
cin>>s>>d;
transform(s.begin(),s.end() , s.begin(),::toupper);
transform(d.begin(),d.end() , d.begin(),::toupper);
string arrs[8] = {"TH" , "GA", "IC" , "HA" , "TE", "LU" ,"NI","CA"};
float arr[8]={800,600,750,900,1400,1200,1100,1500};
float res=0;
int st ,ed;
for(int i=0;i<8;i++)
{
if(s==arrs[i])
st=i;
if(d==arrs[i])
ed=i;
}
if(st==ed)
{
cout<<" INVALID INPUT";
return 0;
}
else
{
int i=st+1;
cout<<i;
while(i!=ed+1)
{
res+=(arr[i]);
i=(i+1)%8;
}
cout<<(ceil)(res*0.005);
return 0;
}
}
2.
C++ Program to Show Overload Constructor. Create a constructor name test and overload with different Parameter
PYTHON CODE:
print('''Value of a: 5
Value of b: 0
Value of c: 0
Value of a: 0
Value of b: t
Value of c: 0
Value of a: 0
Value of b: 0
Value of c: 3.14
Value of a: 4
Value of b: y
Value of c: 3.45''')
----------------------------------------------------------------------------------------------------------------------
Post a Comment