9/15/2018
TCS Live Questions Dashboard » Prep Insta
PREP INSTA (HTTP://PREPINSTA.COM/) (HTTP://PREPINSTA.COM/) Prepare Better for Placement Papers
Home (http://prepinsta.com/) All Companies (http://prepinsta.com/all-companies-dashboard/) Wheebox (http://prepinsta.com/wheebox/) TCS Ninja (http://prepinsta.com/tcs-ninja/)
+
Accenture (http://prepinsta.com/accenture-previous-papers/)
+
Deloitte (http://prepinsta.com/deloitte/)
+
Wipro (http://prepinsta.com/wipro/)
+
Amcat (http://prepinsta.com/amcat/)
+
Capgemini (http://prepinsta.com/capgemini/)
+
CoCubes (http://prepinsta.com/cocubes/)
+
Cognizant (http://prepinsta.com/cognizant/)
+
eLitmus (http://prepinsta.com/elitmus/) IBM (http://prepinsta.com/ibm/)
+
Infosys (http://prepinsta.com/infosys/)
+
Mindtree (http://prepinsta.com/mindtree/) (http://prepinsta.com/mindtree/)
+
Mphasis (http://prepinsta.com/mphasis/)
+
TCS (http://prepinsta.com/tcs-placement-papers/)
+
Success Stories (http://prepinsta.com/stars/) Contact Us (http://prepinsta.com/contact/) (HTTPS://WWW.FACEBOOK.COM/PREPINSTA/) FACEBOOK (HTTPS://WWW.FACEBOOK.COM/PREPINSTA/) ON G+ (HTTPS://PLUS.GOOGLE.COM/101604564915439709306) (HTTPS://PLUS.GOOGLE.COM/101604564915439709306) hFOLLOW ttp://prepinsta.com/tcs-ninja/live-questions/
1/74
TWITTER (HTTPS://TWITTER.COM/PREPINS (HTTPS://TWITTER.COM/PREPINSTA) TA) 9/15/2018
TCS Live Questions Dashboard » Prep Insta
(HTTPS://IN.LINKEDIN.COM/COMPANY/PREPINSTA) PANY/PREPINSTA) LINKEDIN (HTTPS://IN.LINKEDIN.COM/COM
TCS Live Questions Dashboard
(http://prepinsta.com/infosys/prepster-achievers-online-course/)
http://prepinsta.com/tcs-ninja/live-questions/
2/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
(http://prepinsta.com/amcat/prepster-achievers-online-course/)
(http://prepinsta.com/cognizant/prepster-achievers-online-course/)
http://prepinsta.com/tcs-ninja/live-questions/ http://prepinsta.com/tcs-ninja/live-questions/
3/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
(http://prepinsta.com/wipro/prepster-achievers-online-course/)
Check this page again and again, we are posting Live questions from TCS Ninja Exam here – Make sure that you refresh this page every 2-3 mins. Bookmark this page and these are actual questions and fastest only on PrepInsta Number website for Placements.
PrepInsta Again No.1 70% repetition from Aptitude Paid Materials http://prepinsta.com/tcs-ninja/live-questions/ http://prepinsta.com/tcs-ninja/live-questions/
4/74
9/15/2018
CS Live Questions Dashboard » Prep Insta 100% Repetition from C MCQ PaidTMaterials
60% Repetition from Coding Materials What others did? Made YouTube Videos from our Free content !!! Our Free content has more materials than any other website’s Online Class or Paid Materials.
Programming Concepts Question Eesha was in a wonderland where she saw a treasure trove of seven items of various items (in lakhs) and weights (in kgs) as per the table given below.
items
values
weights
1
12
4
2
10
6
3
8
5
4
11
7
5
14
3
6
5
10
7
5
12
She wanted to bring back maximum value of items but she was not able to carry more than 10 kgs. Using dynamic programing, programing, what is the maximum value of of the items that she could carry back with her. Answer: 26 Question 2
In c language, if a function return type is not explicitly dened then it defaults to what data type? Answer: Int Question 3
Which of the following syntax is correct for command -line arguments? a. int main (char *argv[], *argv[], int argc) http://prepinsta.com/tcs-ninja/live-questions/
5/74
9/15/2018
b. none of the three options
TCS Live Questions Dashboard » Prep Insta
c. int main () { int argv, char *argc[]; } d. int main(int var, var, char *varg[]) var,char *varg[]) Answer: int main (int var,char Question 4 Advanced The gure depicts a search space in which the nodes are labelled with names like
A,B,A1,B1. Node S is the start node. The goal are drawn as square boxes boxes and the other noted in circle Enter answer as a sequence of node separated by a comma, please DO NOT enter any blanks anywhare in the response For example, example, If the answer (order of nodes) is a followed by c, followed by A1, followed by D, the answer should be A,C,A1,D Starting with the node start node,list the order in which the depth rst search algorithm explore the graph graph till termination, searching from right to left until it reaches one of the goal nodes.
S,C ,J,T,I1 ,I1 Answer: S,C,J,T Question 5
The full set of operations allowed on a stack are a. Push ,pop b. Push,pop,remove Push,pop,remove c. Push,pop, add,remove d. Push,pop,add,remove,substitute Push,pop,add,remove,substitute Answer: push,pop http://prepinsta.com/tcs-ninja/live-questions/
6/74
9/15/2018
Question 6
TCS Live Questions Dashboard » Prep Insta
Realloc () function is used to: a. Get back the memory that was released earlier using dree() funcion b. Reallocate a le pointer when switching between les c. Change the size of an array d. Change the size of dynamically allocated memory Answer: change the size of dynamically allocated memory Question 7
uniformly. The hash table size is 20. Advanced Consider a hash function that distributes keys uniformly. After hashing of how many keys will the probability that any new key hashed collides with an existing one exceed 0.5. a. 10 b. 7 c. 6 d. 5 Answer: 10 Question 8 Question 8
Which of the below is NOT a data type in C language: 1. Signed int 2. Big int 3. Short int 4. Long int Answer: Big int Question 9
Eesha wants to implement an image viewer application to view images in a given folder. folder. The application will be able to display an image and will also know what its next and previous images are at any given point of time so that the user can so that the user can view http://prepinsta.com/tcs-ninja/live-questions/
7/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta next/previous next/previous image by pressing right/left keys on the keyboard. keyboard. Which data structure is
appropriate for Esha to use? 1. Tree 2. Queue 3. Linked list 4. Stack Answer: Linked list Question 10
The pseudo code below sorts an array using bubble sort. Here A is the array and the” n” n” is the number of element in it. Function swap exchanges exchanges the value of 2 given value. 1. Function bubbleSort(A,B) 2. { 3. For For i =0 to n-2 step 1 4. For j = 0 to n-1-2 step 1 5. if( A (j) > A(j+1)) 6. Swap(A(j),A(j+1)) 7. }
This function is called with A and 7 as parameter where the array array a initially contains the element 64, 34, 25,12, 22, 11, 9 1. 34 25 12 22 11 9 64 2. 25 12 22 11 9 34 64 3. 11 9 12 22 25 34 64 4. 12 11 9 22 25 34 64 Answer:25 12 22 11 9 34 64 Question 11
uniformly. The hash table size is 20. Advanced Consider a hash function that distributes keys uniformly. After hashing of how many keys will the probability that any new key hashed collides with an existing one exceed 0.5. 1. 10 2. 7 http://prepinsta.com/tcs-ninja/live-questions/
8/74
9/15/2018
3. 6
TCS Live Questions Dashboard » Prep Insta
4. 5 Answer: 10 Question 12
#dene is used to a. Dene a variable b. Dene a macro c. Dene a function d. Dene a constant Answer: Dene a macro it is Question 13
What type of data structures are queues? a. First in last out b. First in rst out c. Last in rst out d. Last in last out Answer: First in rst out Question 14
Which of the following is NOT a valid storage class in C language? a. Extern b. Dynamic c. Register d. Auto Answer: Dynamic Question 15
Eesha is developing a word processing software in which she wants to provide undo feature.the software will maintain all the sequential changes and at any point of time pressing http://precontrol pinsta.comz/tcwill s-ninjundo a/live-quthe estionlatest s/
change,what change,what data structure should Eesha use for for this?
9/74
9/15/2018
a. Stack
TCS Live Questions Dashboard » Prep Insta
b. Queue c. Linked list d. Array Answer: Stack Question 16
#include
Main(int argc,char**argv) argc,char**argv) { printf(“%s\n”,argv[–argc]); Return 1; } The above program was run with the following command line parameters Asha usha nisha easha What was the output? a. Nisha b. Unable to run due to compilation error c. No output,run time error d. Eesha Answer: Eesha Question 17
Considering a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the rst 3 slots are unlled after the rst 3 insertions? (NOTE:100 ^ 3 means 100 raised to the power 3) a. (97 * 96 * 95) / 100 ^ 3 b. (97 * 96 * 95) / (6 * 100 ^ 3) c. (97 * 97 * 97 ) / 100 ^ 3 http://prepinsta.com/tcs-ninja/live-questions/
10/74
9/15/2018
d. (99 * 98 * 97) / 100 ^3
TCS Live Questions Dashboard » Prep Insta
Answer: (97 * 97 * 97 ) / 100 ^ 3 Question 18
Advanced Consider the following graph starting at node A. In what order will the nodes be visited using a breadth rst search?
NOTE NOTE 1 : Is there is ever a decision between multiple neighbour nodes in the algorithm, assume we always choose the letter closest to the beginning of the rst alphabet NOTE NOTE 2: Enter the answer as a sequence of nodes separated by a comma. Please do NOT enter any blanks anywhere in the response. For For example, is the answer (order of nodes) is A followed by C, followed by X, followed by D. the answer should be A,C,X,D. A,B,D,E,G,C,H,F Answer: A,B,D,E,G,C,H,F Question 19
This function is called with A and 7 as parameters where the array array A initially contains the elements 34,14,65 be the value of the elements in A after 3 iterations of the outer loop? l oop?
a. 14 12 22 5 34 65 71 b. 14 34 22 12 65 5 71 c. 14 22 12 34 5 65 71 Answer: 14 12 22 5 34 65 71 Question 20
Eesha is developing an IP telephony software in which the audio is encoded and transmitted by the sender as network packets through a communication channel. At the other end these packe processed further.eesha recognizes that there maybe a http://prepackets pinsta.cts omare /tcs-nassembled inja/live-questionand s/
very large
11/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta number of packets this number is unknown nd which will be processed while more packets packets
are being received .assume that the packets arrive arrive in right order .what data structure should eesha use? Array List Queue Stack Answer: List Question 21
A structure in C language is System dened data type that holds predened collection of data types User dened data type holding similar or dissimilar data types Another name for union data type A collection of similar user dened data type Ans : User dened data type holding similar or dissimilar data types Question 22
Which of the following is true for binary tree ? A) a node can have a single child also B) it must have two child only C) other options I don’t remember r Question 23
For(i=7;i!=0;i–) Print(“%d”,i); Ch=get char(); What will be the output? Compilation error innite loop Number display from 7 to 1 in descending order. Number display from 7 to 0 in descending order Question 24
The expression seems to be inx is solved using the data structure stack queue linked list tree http://prepinsta.com/tcs-ninja/live-questions/
12/74
9/15/2018
Answer – Stack
TCS Live Questions Dashboard » Prep Insta
Question 25
To get the most accurate value we prefer the data type int long int oat double Answer – Double Question 26
main(int argc,char*argv[]) argc,char*argv[]) in the above Denition of main function the variable argv denotes: An array of character pointers the rst array item pointing to the program name and remaining pointing to the command line parameters An array of character pointer each pointing to the command line parameters A pointer to character that points to command line parameters A pointer to pointer that points to the memory location where the program has been loaded to the memory Ans: An array of character pointers the rst array item pointing to the program name and remaining Question 27
#include Int main() { Int n,ch, for(n=7;n!=0;n–) printf(“n=%d”,n–) printf(“n=%d”,n–) ch=getchar(); Return 0; } Innite loop Numbers 7 to 0 in descending order None of the other choices as there is a compilation error Numbers 7 to 1 in descending order. Ans: Innite loop Question 28 http://prepinsta.com/tcs-ninja/live-questions/
13/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta Eesha works for ISRO where she is involved in a mission to intercept a comet that is li kely to
collide with in each with in i n 1 month.she is developing a c program to calculate the trajectory of the missile to be launched l aunched to intercept and destroying the approaching comet.in order to achieve highest accuracy accuracy of the missile trajectory what data type should she use for the variables in her equation?? Long int Double Float Int Ans: Double Question 29
a program reads in 500 integers in the range [0…100]representing the scores of 500 students.it then prints the frequency of each score above 50.what would be the best way for the program to store the frequencies? An array of 101 numbers An array of 50 numbers An array of 500 numbers A dynamically allocated array of 550 numbers Ans: An array of 50 numbers Question 30
Which of the following is TRUE about binary trees? The number of nodes on the last level is equal to the sum of the number of nodes on all other levels A.A node may have one child The total number of nodes is one less than a power of 2 Every node must have 2 children Ans : A node may have one child Question 31
#include Long int fact (int n); Int main () { Int n; Printf (“enter a positive integer: “); Scanf (“%d”, (“%d”, &n); printf(“factorial of %d = %ld “,“, n, fact (n)); Return 0; http://prepinsta.com/tcs-ninja/live-questions/
14/74
9/15/2018
}
TCS Live Questions Dashboard » Prep Insta
Long int fact (int n) { If (n.=1) Return n*fact (n-1) Else } Return 1; Ans: recursion Question 32
Not a core of os a)multi tasking b) memory management C) virus protection d) le management Answer – C Question 33
Which are crt options for array A) same type B) sequential memory allocation c) we can change size of array at run time D) counting items appropriate Answer ! Question 34
Which of the following statements are true..? 1. DFS linearly grows with depth. 2. BFS always has the shortest path from start state to goal state. http://prepinsta.com/tcs-ninja/live-questions/
15/74
9/15/2018
3. DFS uses stack
TCS Live Questions Dashboard » Prep Insta
4.BFS uses queue. Question 35
Esha writes a prgm for factorial but she forgot to write the function fact what is the error displayed A)le not found B)syntax errors c)it takes the function from standard library li brary Question 36
Eesha wants to incorporate a history feature .When she presses “go back” then it will be able to be vist the previous page.what data type is used ? 1. Tree 2. Queue 3. Stack 4. Array. Extra Questions without Solutions and Options that students couldn’t remember, remember, please add solutions in the comment section below you will nd below – 1. What should one use if want to create a image viewer application if u want to view the image as well as prev and next image? Opt- stack que linkedlist . 2. Function of realloc() 3. If not declaring any return type explicitly in c, what is the default return type? 4. Full functionality of stack? Opt- push pop , push pop add, push pop add remove, push pop add remove substitute 5. In a hash table all keys r uniformly distributed. Hash table size 20. After how many iteration does d key collide exactly after time interval of +0.5. 6. Working concept of bubble sort 7. Correct syntax for command line argument 8. Which of dese data type is not valid in i n C ? Option – long l ong int, big int, short int 9. 1. What is the principle for stack data structure.? Last – In-First – Out 10. They’ve given a bubble sort program and asked us to nd the error in which l ine.. Sir 11. 1.stack follows:LIFO,lo,fo,lilo 12. 2.meaning of structure in c A)user dened of similar data types B)same as union C)user dened of similar and disimmilar data types D)system dened of different data elemnets 13. 3.spotting error in given program sum of elements in given matrix 14. 4.bubble sort program nd the output after 3 iterations 15. Which of the following is not string function strlen strcpy strstr strchar http://prepinsta.com/tcs-ninja/live-questions/
16/74
9/15/2018
Quantitative Aptitude
TCS Live Questions Dashboard » Prep Insta
Question 1.
1. Advanced: In how many ways can we give give change for rs 100 using 1 rupee and 2 rupee coins? For example for 5 rs we can give three ways (1,1,1,1) (1,1,1,2) )(,1,2,2) Answer: 51 Question 2
2. We are driving along a highway at a constant speed of 55 miles per hour (mph). You observe a car one half mile behind you. The car is moving fast and zooms past you exactly one minute later. later. How fast is this car traveling traveling (mph) if its speed is constant? a. 80 b. 70 c. 72 d. 85 Answer: 85
3. What is the next number in the series 70,54,45,41? a. 40 b. 35 c. 45 d. 54 Answer: 40 Question 4
4. George can do some work in 8 hours. Paul can do the same work in 10 hours while Hari can do the same work in 12 hours. All the three of them start working at 9 AM. while George stops work at 11 am,the remaining two complete the work,approximately when will the work be nished? a. 11:30 AM b. 12 noon c. 12.30 PM http://prepinsta.com/tcs-ninja/live-questions/
17/74
9/15/2018
d. 1 PM
TCS Live Questions Dashboard » Prep Insta
Answer: 1 PM Question 5
A certain sum of money is sufcient to pay either George’s wages for 15 days or mark’s wages for 10 days, for how long will it i t sufce it both George and mark work together? a. 9 b. 8 c. 6 d. 5 Answer: 8 Question 6 Advanced: a,b,c are positive numbers such that a+b+ab= 8, b+c+bc=15 and c+a+ca = 35
What is the value of a+b+c+abc? Answer: 36 Question 7
The 260th term of the series a,b,b,c,c,c,d,d,d,d,e,e,e,e,e,f,f,f,f,f,f,….is: a. U b. W c. T d. V Answer: W Question 8
8. Advanced: It is possible to pair up all the numbers from 1 to 70 so that the positive difference of the numbers in each pair is always the same. For example, one such pairing up is (1,2), (3,4), (5,6),….(69,70). Here the common on difference is 1. What is the sum of all such common differences. Answer: 1680
http://prepinsta.com/tcs-ninja/live-questions/
18/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta . Advanced: It is possible to pair up all the numbers from 1 to 70 so that the positive
difference of the numbers in each pair is always the same. For example, one such pairing up is (1,2), (3,4), (5,6),….(69,70). Here the common on difference is 1. What is the sum of all such common differences. Answer: 1680 Question 9
9. Advanced: A regular polygon polygon with 12 sides (dodecagon) (dodecagon) is inscribed in a square of area 24 square units as shown in the gure where four of the vertices are mid points of the sides of the square . The area of the dodecagon in square units is.
Answer: 19.26 Question 10 Advanced:
In how many ways can we give change for 100 using 1 rupee and 2 rupee coins? For example for 5 rs, we can give in three ways : (1,1,1,1,1) (1,1,1,2) (1,2,2) Answer: 51 Question 11 Advanced: In the gure shown, a triangle is divided into nine strpes of equal height each
parallel to the same side of the triangle. The shaped stripes have a total area of 135 square units. What is the area of the triangle in square units.
http://prepinsta.com/tcs-ninja/live-questions/
19/74
9/15/2018
Answer: 243
TCS Live Questions Dashboard » Prep Insta
Question 12
In the IT department of backrub, the administrator password is changed every month. The team of administrator, administrator, spread across the globe, receive an 8 digits number via email. This number is to be prexed with a single digit number and sufxed with a single digit number to get the actual password. The password is divisible by 11 and 8. If the team received 54218345 this month. Then which of the following pairs give valid prex and sufx respectively? a. 3,7 b. 1,6 c. 2,4 d. 4,2 Answer: 1,6 Question 13
13. In the diagram below, the areas of the triangles are as follows: A1=1024, A2=1016, A3=1057. What is the area of A4?
a. 1032 b. 1036 c. 1020 d. 1065 Answer: 1065 Question 14
14. The people of the land of unsymmetrix to ensure that there is very little symmetry in life. Even their unit of length (no one knows what it i t is) is called as unsym. It is their pride that the front wheel and the real wheels of their bikes are of different sizes but are made so that they http://prepinsta.com/tcs-ninja/live-questions/
20/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta will not slip on the road . In a certain model of bike the radius of the front wheel is 28 unsyms
and that of the back wheels is 14 unsyms after driving a certain distance if front wheel had revolution 54 times how many revolution would the back wheel have undergone? a. 136 b. 122 c. 108 d. 94 Answer: 108 Question 15
15. Rs. 3000 is distributed among A, B and C such that A gets 2/3rd of what B and C together get and C gets ½ of what A and B together get. Find C’s share. a. 1500 b. 1000 c. 1200 d. 1800 Answer: 1000 Question 16
16. Given that 1 < a< b< c< d, Which of the following is largest ? In this question , x^y stands for x raised raised to the power of y. y. For example , 2^3=8 and 4^1.5=8 exp(x) is e (approx 2.7183) raised to the power x. Thus exp(2.303) is approximately 10. 1. exp (a^d)/exp (b^c) 2. exp (c^d)/ exp(a^b) 3. exp (b^d)/exp(a^c) 4. exp(b^c)/exp(a^d) Answer: exp(c^d)/exp(a^b) Question 17
17. 32 times of a two digit number is 23 times the number obtained by reversing reversing its digit. The sum of its digit is 15 Find the number: http://prepinsta.com/tcs-ninja/live-questions/
21/74
9/15/2018
a. 96
TCS Live Questions Dashboard » Prep Insta
b. 69 c. 87 d. Insufcient information Answer: 69 Question 18
18. Let N be the greatest number that will divide 148, 246 and 623 leaving remainders 4, 6 and 11 respectively. respectively. What is the remainder if N is divided by 7? a. 0 b. 1 c. 5 d. 6 Answer: 5 Question 19
19. A store is selling a jacket on sale at 30% off the marked price. A matching pair of pants is on sale at 40% off the marked price. If the marked price of the pants is Rs. 8500 less than the marked price of the jacket and the total sale price of both items is Rs. 23500, then what is the marked price of the jacket? a. 21700 b. 21800 c. 22000 d. 22100 Answer: 22000 Question 20
20. Initially, when Sona and Tina left for a shopping expedition , Sona had three times the money than Tina had. They bought things amounting to Rs. 480 altogether, altogether, out of which Tina’s share was 65%. At the end of shopping, Sona was left with 4 times the amount that Tina had. What was the amount with Tina at the beginning? a. 1080 http://prepinsta.com/tcs-ninja/live-questions/
22/74
9/15/2018
b. 1248
TCS Live Questions Dashboard » Prep Insta
c. 768 d. 936 Answer: 1080 Question 21
In a group of 5 families, every family has a certain number of children, such that the number of children forms an arithmetic progression with a common difference of one, starting with two children in the rst family. Despite the objection of their parents every child in a family has three times as many pets to look after as the number of offspring in the family. family. What is the total number of pets in the entire group of ve families. a. 270 b. 99 c. 165 d. 27 Answer: 270 Question 22
How many number plates can be made if the number plates have two letters of the English alphabet (A-Z) (A-Z) followed by two digits (0-9) ( 0-9) if the repetition of digits or alphabets is not allowed? a. 56800 b. 56500 c. 52500 d. 58500 Answer: 58500 Question 23
A,B and C can together do some work in 72 days.A and B together do two times as much work as C alone, and A and C together can do our times as much word as B alone. Find the time taken by C alone to do the whole work. a. 144 days http://preb. pin360 sta.codays m/tcs-ninja/live-questions/
23/74
9/15/2018
c. 216 days
TCS Live Questions Dashboard » Prep Insta
d. 180 days Answer: 216 days Question 24
In a cricket tournament, 16 school teams participated. A sum of Rs.8000 is to be awarded among them as prize money. money. If the team placed last is award Rs.275 as prize money money and the award increases by the same amount for successive nishing places, places, how much will the team placed rst receive? 1. 1000 2. 500 3. 1250 4. 725 Answer: 725 Question 24
4. A and B completed a work together in 5 days. Had A worked at twice his own speed and B half his own speed, it would have taken taken them 4 days to complete the job. How much time would it take for A alone to do the job? 5. 10 days 6. 20 days 7. 25 days 8. 15 days Answer: 10 days Question 25
Eesha’s Eesha’s father was 34 years of age when she was born.her younger brother, brother, Shashank, now that he is 13,is very proud of the fact that he is as tell as her, even though he is three years younger than her. Eesha’s mother , who is shorter than Eesha,was only 29 when Shashank was born .what is the sum of the ages of Eesha’s Eesha’s parents now? 1. 92 2. 76 3. 66 4. 89 Answer: 92 Question 26 http://prepinsta.com/tcs-ninja/live-questions/
24/74
9/15/2018
CS Live Questions Dashboard » Prep Insta A sum of Rs 2387 is divided into three Tparts in such a way that one fth of the rst part,one
half of the second part and fourth one the third part are equal. Find the sum of ve times the rst part,three times the second part and four times the third part (in rupees). 1. 9982 2. 7812 3. 9114 4. 10199 Answer: 10199 Question 27
Apples cost L rupees per kilogram for the rst 30 kilograms and Q rupees per kilogram for each additional kilogram. If the price paid for 33 kilograms of apples is Rs. 1167 and for 36 kilograms of apples is Rs. 1284, then the cost of the rst 10 kgs of apples is: a. Rs.117 b. Rs.1053 c. Rs.350 d. Rs.281 Answer: Rs.350 Question 28
A and B are traveling in the same duration. B is traveling at a constant speed of 55kmph and the distance between A and B is 1.5 km. If A crosses B within 1 minute, what is the speed of A? Answer: 145 kmph Question 29
In a test with 26 questions, ve points were deducted for each wrong answer and eight points were added for every correct answer. How many were answered correctly if the score was zero? 1. 11 2. 10 3. 13 4. 12 Answer: 10 Question 30 http://prepinsta.com/tcs-ninja/live-questions/
25/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta In a week in i n July the average average daily temperature of Monday to Wednesday was 27 degrees
and of Tuesday Tuesday to Thursday was 24 degrees.if the temperature remained constant throughout in any given day. a. 20 b. 22 c. 18 d. 16 Answer: 18 Question 31
In this question x^y stands for x raised to the power y. y. For example ,2^3=8 and 4^1.5=8. If a,b are real numbers such that a+b=3, a^2+b^2=7, the value of a^4+b^4 is? a. 49 b. 45 c. 51 d. 47 Answer: 47 Question 32
The air conditioned bus service from Siruseri industry park runs at regular intervals throughout the day. day. It is now 3:12 pm and it has arrived 1 minute ago but it was 2 minutes late. The next bus is due 3:18 pm. When is the next bus due? a. 3:27 pm b. 3:29 pm c. 3:24 pm d. 3:25 pm Answer: 3:27 pm Question 33
A road network covers some cities.city c can be reached only from city a or city b.the distance from a to c is 65 kms and that from B to C is 30 kms. The shortest distance from a to b is 58 kms. The shortest distance from city P to A is 420 kms and the shortest distance distance from city P distance from city P to city http://preto pinB stais .co345 m/tcs-kms. ninja/livThe e-quesshortest tions/
C in kms is:
26/74
9/15/2018
a. 153
TCS Live Questions Dashboard » Prep Insta
b. 478 c. 403 d. 375 Answer: 375 Question 34
A 70 foot pole stands vertically in a horizontal plane supported by three 490 foot wires, all attached to the top of the pole. Pulled and anchored to three equally spaced points in the plane. How many feet apart are any two of those anchor points? Answer: 149.61 Question 35 Advanced: The set A (0) is (1,2,3,4). For n > 0,A(n+1) contains all possible sums that can be
obtained by adding two different numbers from what is the number of integers in A(10). Answer: 67 Question 36 Advanced What is the number of positive integers less than or equal to 2017 that have at
least one pair of adjacent digits that are both even. For example example 24,564 are two examples of such numbers while 1276 does not satisfy the required property. property. Answer: 738 Question 37
In the following star, star, the numbers on each straight line are in arithmetic progression. What is H+K+L?
a. -8 http://prepinsta.com/tcs-ninja/live-questions/
27/74
9/15/2018
b. 11
TCS Live Questions Dashboard » Prep Insta
c. 5 Answer: -8 Question 38
Considering a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the rst 3 slots are unlled after the rst 3 insertions? (NOTE:100 ^ 3 means 100 raised to the power 3) a. (97 * 96 * 95) / 100 ^ 3 b. (97 * 96 * 95) / (6 * 100 ^ 3) c. (97 * 97 * 97 ) / 100 ^ 3 d. (99 * 98 * 97) / 100 ^3 Answer: (97 * 97 * 97 ) / 100 ^ 3 Question 39
example 2^3=8 and Advanced In this question x^y stands for x raised to the power y .for example 4^1.5=8 Find the number of positive integers n>2000 which can be expressed as n=2^m+2^n where m and n are integers (for example, 33=2^0+2^5) Answer: 65 Question 40
Fishing is a serious environmental issue.It has been determined by the scientists that if the net of a trawler has mesh size x cm by x (square mesh) then the percentage of sh entering the net that are caught in the net is i s (100-0.02x^2-0.05x.for example if the mesh size is zero 100% of the sh that enter the net will be caught. The trawler with net with a square mesh that was suspected of using an illegal size net dropped its net to the ocean oor near the damans and coast guard ofcials arrested the crew.the scientists later looked at the size of the sh caught and estimated that the net used by the trawler at least least 97.93% of the sh entering the net would be caught. What is the maximum value of x for the net by the trawler? a. 8.5 b. 9 c. 11 d. None of the answers
http://prepinsta.com/tcs-ninja/live-questions/
28/74
9/15/2018
Answer: 9
TCS Live Questions Dashboard » Prep Insta
Question 41
Babla alone can do a piece of work in 10 days. Ashu alone can do it in 15 days. The total wages for the work is Rs.5000. How much should be Babla be paid if they work together for an entire duration of work? a. 5000 b. 4000 c. 3000 d. 2000 Answer: 3000 Question 42
How many of the integers from 1 to 86 (inclusive) contain the digit 4 or have the digit sum divisible by 4? a. 40 b. 41 c. 24 d. 35 Answer: 35 Question 43
How many of the integers from 1 to 86 (inclusive) contain the digit 4 or have the digit sum divisible by 4? 1. a. 40 2. 41 3. 24 4. 35 Answer: 35 Question 44
In this problem ABS(X)is the mathematical value of X without regard to its sign. for example ABS(3)IS 3 and ABS(-3) is also 3.if 3.i f the equation ABS(x+12)+ABS(x-5)=r is satised by innitely many values of x the value of r is is http://prepinsta.com/tcs-ninja/live-questions/
29/74
9/15/2018
1. 12
TCS Live Questions Dashboard » Prep Insta
2. No such r exists 3. 17 4. 5 Answer: 17 Question 45
Of height 36 m at the edge of a road broke ( While remaining attached to the tree ) at a certain height and it fell in such a way that touched the other edge of the road. If the breadth of the road is 12m. Then the height at which the tree broke was 16 18 24 12 Answer 16 Question 46
Two cars start at the same time from a and b and travel travel towards each other at speeds of 50kmph and 60 kmph respectively at the time of their of their meeting the second car has travelled travelled 120 km more than the rst the distance between a and b is 720 km 1320 km 600 km 1230 km Answer: 1320 KM Question 47
The numbers from 5 to 26 are written side-by-side as follows 567..2526. What is the remainder of dividing the resultant number by 9? 1 3 8 5 Answer: 5 Question 48
http://prepinsta.com/tcs-ninja/live-questions/
30/74
9/15/2018
Live Questions Dashboard » Prep Insta A certain number of teams took part inTCaScompetition each team i n the competition must play
one game with each of the other teams, how many teams took part in the competition if they played 55 games in all? 10 12 7 11 Answer: 11 Question 49
Which of the following represents the largest 4 digit number which can be added to 7855 in order to make the derived number divisible by each of the following numbers 12,14,21,33 and 54? a. 461 b. 8777 c. 9953 d. 9965 Answer: 461 Question 50
You are driving along a highway at a constant speed of 55 miles per hour you observe a car one-half mile behind you the car is moving fast and zooms past you exactly one minute later. How fast is this car travelling (mph)if its speed is constant? 80 70 85 72 Answer: 85 Question 51
A store is selling a jacket on sale at 30% off the marked price. A matching pair of pants is on sale at 40% off the marked price. If the marked price of the pants is Rs. 8500 less than the marked price of the jacket and the total sale price of both items is Rs. 23500, then what is the marked price of the jacket? a. 21700 http://prepinsta.com/tcs-ninja/live-questions/
31/74
9/15/2018
b. 21800
TCS Live Questions Dashboard » Prep Insta
c. 22000 d. 22100 Answer: 22000 Question 52
In a group of 5 families, every family has a certain number of children, such that the number of children forms an arthmetic progression with a common difference of one, starting with two children in the rst family. Despite the objection of their parents every child in a family has three times as many pets to look after as the number of offspring in the family. family. What is the total number of pets in the entire group of ve families. a. 270 b. 99 c. 165 d. 27 Question 53
If we add x to both numerator and denominator of the fractions ⅔ and 20/23 the resulting fractions are equal x is 56 12 7 143 Answer: 7 Question 54
How many words of 11 letters could be formed with all the vowels present only in the even places, and the consonants only in the odd places, using letters of the english alphabet? Each letter may appear only once . the vowels are A,E,I,O,U and the consonants are the remaining letters of the alphabet. In the answer ,n! Donotes n factorial (or 1*2*…*n) a. 21! b. 26! / 5! c. 21! * 5! / 15! d. 21! / (5!*5!)
http://prepinsta.com/tcs-ninja/live-questions/
32/74
9/15/2018
Answer: 21! * 5! / 15!
TCS Live Questions Dashboard » Prep Insta
Question 55
On a certain assembly line the rejection rate for hyundai i10’s production was 4 percent for hyundai i20’s production 8 percent and the two cars combined 7 percent .what was the ratio of hyundai i20’s production to hyundai i10’s production? a. 1:1 b. 2:1 c. 1:2 d. 3:1 Answer: 3:1 Question 56
the average temperature of may, may, July and august was 31 degrees. The average temperature of July, august and October was 30 degrees, if the temperature of May was 30 degrees , nd the temperature October (in degrees) 27 28 26 25 Answer: 27 Question 57
The arithmetic mean of three numbers is 147.if the mean of the rst two numbers is 141.what is the third number? a. 18 b. 159 c. 6 d. 723 Answer: 159 Question 58
Raj divided 50 in to two parts such that the sum of their reciprocal is 1/12 we get the parts as http://prea. pin28,22 sta.com/tcs-ninja/live-questions/
33/74
9/15/2018
b. 36,14
TCS Live Questions Dashboard » Prep Insta
c. 20,30 d. 24,36 Answer: 20, 30 Question 59
A child was looking for his father. He went 90 metres in the East before turning to his right. He went 20 metres before turning to his right again to look for his father at his uncle’s uncle’s place 30 metres from this point. His father was not there. From here he went 100 metres to the North before meeting his father in a street. How far did the son meet his father from the starting point? 80 30 90 100 Answer:100 Question 60
The greatest common divisor of two numbers A and B is 22. The least common multiple of A and B is 2002, if A has fewer divisors B, what is A + B? Answer: 20 Question 61
Usha has three boxes boxes with ten balls in each.she plays a game where the goal is to end up with as few balls as possible in the boxes.the boxes.the boxes are each marked with a seperate number 4,7, and 10.it is allowed to remove n balls from the box marked with the number n,put three of them aside and put the rest in another box.what is the least possible number of balls the boxes boxes together can contain in the end?? Answer: 1 Question 62
For a positive integer N. Let P(N) be the product of the digits of N. example,P(123) = 6. The value of P(101) + P (102)+…..P(201) + P(202) is Answer: 504 Question 63 http://prepinsta.com/tcs-ninja/live-questions/
34/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta We have have two cubes . the sum of the two cubes is 25. The sum of a side length of one cube and
a side length of the other is 4. What is the sum of the total surface areas of the two cubes? Answer: 57 Question 64
An Aeroplane has four emergency exits. In an emergency it requires 8 seconds per passenger to evacuate the plane, if the hand baggage is not carried by the passenger. passenger. How long will it take to eliminate 53 passengers in an emergency? 1 min 52s 1 min 44s 7 min 4s Answer – A Question 65
There are 5 boxes in a cargo. The weight of the 1st box is 200 KG, the weight of the 2nd box is 20% higher than the third box, whose weight is 25% higher than the 1st box weight. The 4th box which weighs 350 KG is 30% lighter than the 5th box. Find the difference in average weight of the 4 heaviest boxes boxes and the four lightest boxes. Answer – 75 Question 66
Scooter is purchased for 40000 at the beginning of the year and its rate will be decreased to 3/4 at the end of the year what will be it’s rate after 3 years? Answer – 16875 Question 67
Given that 0
A passenger train takes takes 5 hours less for a journey of 252 km if its speed is increased i ncreased by 35 kmph from its normal speed.the normal speed in kmph (to the nearest integer ) is http://prepinsta.com/tcs-ninja/live-questions/
35/74
9/15/2018
42
TCS Live Questions Dashboard » Prep Insta
35 None of the other answers 28 Ans: 28 Question 69
In a single throw with two dice di ce nd the probability that their sum is i s a multiple of 4 and 5 ½ 4/9 17/36 ⅓
Ans: 4/9 Question 70
The value of a scooter depreciates in such a way that its value at the end of each year is ¾ of its value at the beginning of the same year.if the initial value of the scooter is rs 40000 what is the value at the end of 2 years? a. 16875 b. 19000 c. 13435 d. 23125 Ans: 16875 Question 71
8 year old Eesha visited her grandpa. He gave her this riddle.: I started working at 18.i spent ⅙ of my working life in a factory. factory. I spent ⅓ of my working life in ofce and I spent ⅓ of my working life as a school caretaker. For the last 9 years of my working life I have been doing social service. How old am I? 72 69 75 60 Ans: 72 http://prepinsta.com/tcs-ninja/live-questions/
36/74
9/15/2018
Question 72
TCS Live Questions Dashboard » Prep Insta
an aeroplane has 4 emergency exits.in an emergency it requires 8 seconds per passenger to evacuate the plane.if no hand baggage is carried by the passenger .how long will it take to evacuate 53 passengers passengers in an emergency (when hand baggage is not allowed to be carried)? None of the other 3 choices? 7 min 4 secs 1 min 52 secs 1 min 44 secs Ans: 1 min 52 secs Question 73
three blocks of cheese weighs 690 kg,710 kg,750 kg,for packing the cheese is cut in to pieces of equal weight with no waste .what will be the maximum number of pieces?? a. 128 b. 215 c. 430 d. None of the others Ans: 215 Question 74
in this question a^b means a raised to the power b .what is the remainder when 48^565 is divided by 7? 4 5 1 6 Ans: 6 Question 75
there are 5 boxes in a cargo.the weight of the rst box is 200 kg and second box is 20% heavier than the third box which is i s 25% heavier than the rst box.the fourth box which weighs 350 kg is 30% light than the fth box.nd the average average weight of the four heaviest boxes and the four lightest boxes? 51.5kg 65kg 75kg 37.5kg
http://prepinsta.com/tcs-ninja/live-questions/
37/74
9/15/2018
Ans: 75kg
TCS Live Questions Dashboard » Prep Insta
Question 76
six bags of marble contain 18,19,21,23,25 and 34 marbles respectively.all respectively.all the marbles in i n one of the bags are chipped.the other bags contain no chipped marbles.ria takes three of the bags and ruhi takes two of the others one of the bags of chipped marbles remains.if ria gets twice as many marbles as ruhi how many chipped marbles are there? Ans: 23 Question 77
Brinda and shanthi run in opposite direction on PrepInsta a circular track starting at diametrically opposite points .they rst meet after brindha and run 100 meters .they next meet after shanthi has run 150 metres past their rst meeting point.each girl runs at a constant speed .what is the length of the track in metres? Ans: 350 Question 78
100 books are distributed to 30 people so that each receives at least one book.the least number of people that would receive the same number of book is?? Ans: 20 Question 79
when asha and usha stand on a weighing scale together the reading shows 151 kgs when usha and isha stand together the real reading is 132k gs and when isha and asha stand together the reading is 115kgs .what is the weight of usha in kgs?? Ans: 84 Question 80
In the gure shown , each side of the outer square is divided into our four equal segments as shown . the shaded square in the middle area 18 square units. What is the area of the outer square units? Ans: 144 Question 81
there are two bags containing white and black balls.in the rst bag there are 8 white and 6 black balls and in the second bag there are 4 white and 7 black balls.one of the bag is chosen at random from it.nd the probability of this ball is i s being black? http://prepinsta.com/tcs-ninja/live-questions/
38/74
9/15/2018
a. 41/77 b. 41/308 c. 21/308
TCS Live Questions Dashboard » Prep Insta
d. 8/77 Ans: 41/77 Question 82
A pizza restaurant has a tradition of creating specialty pizzas all of the same thickness, and in the shape of the perfect circle it also divides them up into exactly equal slices even if the number of slices per pizza is sometimes unusual. It sells small medium ,large and extra large pizzas. The diameter are 8,11,13 and 15 inches respectively they are each divided into 4,9, 12, and 13 slices respectively. Which pizza has the largest slice? Extra large Small Large Medium Ans: Extra large Question 83
jake can can dig a well in 16 days days paul can dig the the same well in 24 days. days. Jake ,paul and hari together dig the well in 8 days. Hari alone in dig the well in 96 days 32 days 48 days 24 days Ans: 48 Question 84
Eesha bought two varieties of rice, costing 50 rs per kg and 60 rs pre kg each, and mixed them in some ratio. Then she sold the mixture at 70 rs per kg. Making a prot of 20 percent. What was the ratio of the mixture? a. 1:5 b. 1:10 c. 2:7 d. 3:8 Ans : 1:5 Question 85
P,q,r,s are four cities on a straight highway, not necessarily in that order. The distance between the following table http://prepinsta.com/tcs-ninja/live-questions/
39/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta What is the order of the cities in the highway?
S,P,Q,R R,S,Q,P S,Q,P,R Q,P,R,S Ans: S,Q,P,R Question 86
there are 8 houses built in a line and they contain valuables worth 6,7,1,3,8,2,4,5, lakh rupees respectively. respectively. A thief is going to steal the maximum values in these houses but he cannot steal in two adjacent house because the owner of the stolen house will tell his two neighbours on the left and right side.what is the maximum value (in lakhs) that can be stolen? Ans: 20 Extra Questions without Solutions and Options that students couldn’t remember, remember, please add solutions in the comment section below – 1. If a can do a work in 8 days, b in 9 days and c in 10 days. Working together how much time will dey take if dey start at 9a.m and A leaves d work at 11a.m ? 2. If a certain amount of money can be paid to A for 10 days and B for 15 days together how many days can they be paid? 3. What will the 260th term in the series a,bb,ccc,dddd…… ? 4. Which 2 digit number when multiplied by 32 gives d same number when reverse is multiplied with 23? 5. A group of 5 families has children in the AP with difference of 1 , starting with 2. Each family has as many number of pets as the offsprings. What is the total number of pets in all families ? 6. Marked price of jacket jacket is 40% off sp and marked price of pant is 30% off price. The difference between price of jacket and pant is “xyz”. “xyz”. What is the marked price of jacket 7. 2 girls go for shopping . A has 3 times money dat of B . Dey together shop for “xyz”. “xyz”. B shopped for 65% in the price. When they returned A has 4 times money dat of B. How much money they both had ?
English Question 1
Technology has revolutionized our lives and inuenced nearly every industry, including tness. From apps to wearables, technology is constantly changing the way the tness industry functions. Mobile technology, tness wearables and data, and smart equipment are shaping the way health clubs and equipment manufacturers operate today. Engaging members via mobile with digital tness challenges, reward programs, push http://prepinsta.com/tcs-ninja/live-questions/
40/74
9/15/201notications 8
S Livonly e Quesallows tions Das tness hboard » Properators ep Insta and wearable integrationTCnot to foster existing relationships relationships with clients but also build on them.
Question 2
The Super twenty just …….. their rst baseball game of the new season; I believe there is much to be ……… about. Although they lost, it was against an excellent team that had won the championship last year year.. The Super twenty fell behind early but …….. excellent teamwork and …….. back to tie the game. The team had 15 hits and scored 8 runs, which was excellent! excellent! Unfortunately, Unfortunately, they made 5 elding errors, which kept the other team in the lead the entire game. The game ended with the umpire …… a bad call, and if the call had gone the other way, way, The Super twenty might have actually won the game. It wasn’t a victory, victory, but I say The Super twenty look like they have a shot at the championship, especially if they ……… to improve. A. 1. played 2. plays 3. play Correct Option: 1
B. 1. excitement 2. excited 3. excite Correct Option: 2
C. 1. showed 2. shows 3. show Correct Option: 1
D. 1. came 2. come 3. will come http://prepinsta.com/tcs-ninja/live-questions/
41/74
9/15/2018
Correct Option: 1
TCS Live Questions Dashboard » Prep Insta
E. 1. making 2. made 3. make Correct Option: 1
F. 1. continues 2. continue 3. continued Correct Option: 2 Question 3
Rohan used to do well in school, and people thought he was smart because of it. But it’s not true. In fact, three years ago he …….. in school. However, However, two years ago he decided to get serious about school and made a few changes in his lifestyle and routine. First, he ……… he …….. become interested in whatever was being taught in the class, regardless of what other people ……. . He decides he would work hard every day and never give up on any assignment. He decided to never, never, never fall behind. Finally, Finally, he ……. school a priority over friends and fun. After the …….. these changes, he became an active participant in classroom discussions, his test scores began to rise. Some students made fun of him because “He was smart.” How exciting! exciting! It seems that being smart is simply a matter of working hard and being interested. After all, learning a new sport or a video game is hard work even when you are interested. Unfortunately, Unfortunately, learning a new video game takes you nowhere. A. 1. struggle 2. struggled 3. struggles Correct Option: 2
B. 1. decides http://prepinsta.com/tcs-ninja/live-questions/
42/74
9/15/2018
2. decided
TCS Live Questions Dashboard » Prep Insta
3. decide Correct Option: 2
C. 1. would 2. will 3. shall Correct Option: 2
D. 1. thinks 2. think 3. thought Correct Option: 2
E. 1. made 2. makes 3. will make Correct Option: 1
F. 1. implementation 2. implementing 3. implement Correct Option: 1 Question 4
The proverb “Think before you Leap” has a deep meaning, which is always useful for a successful life. It ……….. the idea that we should always think before we act. Impulsive actions always lead us to embarrassing and odd situations. As we should always think before we http://prespeak, pinsta.coin m/tcthe s-ninsame ja/live-quway estionwe s/ should always think before we act. Life is
full of various factors, the
43/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta factors which can ……… us for the moment but may lead us to failure or the factors which can
repel immediately but may be the stepping stones …….. success. For example, going to a movie or playing video games may seem an attractive attractive thing for the time being but can, in the course of time the ……….. of it will disturb the studies of a student . Therefore, we should always put some ………. on our intuitive and impulsive desires and then act according to what our mind says is right. A. 1. convey 2. conveys 3. conveyed Correct Option: 2
B. 1. fascinate 2. fascinates 3. fascinated Correct Option: 1
C. 1. to 2. towards 3. for Correct Option: 1
D. 1. excess 2. excessive 3. access Correct Option: 1
E. 1. restrain http://prepinsta.com/tcs-ninja/live-questions/
44/74
9/15/2018
2. restrict
TCS Live Questions Dashboard » Prep Insta
3. restriction Correct Option: 3 Question 6
Internet is one of the most creative and popular …… the world has ever seen. It has efciently …….. up the possibilities of further advancements in many other elds of existence. It has made our ……. convenient and has also made the world look smaller to us. Internet allows us to ……… the information displayed on various websites. These websites who display and add information to the internet have to follow certain set …….. for ensuring cyber safety. Internet opens up the possibility of various activities such as accessing almost all the books across the world, connecting with people across oceans, providing education even in the remote areas, paying bills while sitting in the comfort of our ……, shopping for anything at just the click of a button, ordering food quickly, learning what’s going around the world and more. Searching information on the internet is a quick business and is very convenient. A. 1. inventions 2. invention 3. innovation Correct Option: 1
B. 1. open 2. opened 3. opening Correct Option: 2
C. 1. life 2. lives 3. lifestyle Correct Option: 2
D. http://prepinsta.com/tcs-ninja/live-questions/
45/74
9/15/2018
1. excess
TCS Live Questions Dashboard » Prep Insta
2. access 3. excessing Correct Option: 2
E. 1. protocols 2. protocol 3. rules Correct Option: 1
F. 1. home 2. house 3. homes Correct Option: 3 Question 5
Child trafcking is the form of trafcking in which children are kidnapped, bought … and sold for the purpose of exploitation. It is amongst the …. growing crime globally. There is a …….. of several several people involved in activities of recruiting, transporting and exploiting. They use various ……..to trick the children or their families. Poor children are l ured by high wages or a better lifestyle. Handsome amount is paid to the ……..parents to sell their children. Later they are transported to different places where they are exploited within the country or abroad. Illegal documents are used for transportation transportation of victims across the border. And nally they are exploited mentally and sexually by several people. They are forced to work, beg and steal, verbally and physically abused and kept under worst conditions. These innocent children are taken away away from the families and are deprived of love and family environment which effects the growth and development of a child. It has the most ……… and severe effect on the life of children and their families. Prevention of child trafcking is a global issue. Severe laws must be set against the grave grave problem of child trafcking. Legal processes must also stringently be implemented to prevent the crime and save the victims of child trafcking. A. 1. transported http://prepinsta.com/tcs-ninja/live-questions/
46/74
9/15/2018
2. transport
TCS Live Questions Dashboard » Prep Insta
3. transporting Correct Option: 1
B. 1. fast 2. faster 3. fastest Correct Option: 3
C. 1. passage 2. group 3. chain Correct Option: 3
D. 1. ways 2. mathods 3. paths Correct Option: 1
E. 1. weak 2. vulnerable 3. defenceless Correct Option: 2
F. 1. distressed 2. distressing http://prepinsta.com/tcs-ninja/live-questions/
47/74
9/15/2018
3. distress
TCS Live Questions Dashboard » Prep Insta
Correct Option: 1 Question 8
There are ……… issues on the way of women empowerment. ………. number of crimes against women in the society are raising the issues of rights of women i n India. For the ……. of women empowerment in India, it needs to remove all the issues and challenges from the root that every women is facing over the years since independence. Most common issues are related to the education, poverty, poverty, health and safety of the women. After the independence, India has faced many challenges which created a huge difference di fference between men and women especially in the eld of education. The ratio between educated adult men and women in India is 82.14% and 65.46%.Women 65.46%.Women in India have been the …….. of exploitation for many years despite of UN Charter of Human Rights and provisions of the Indian Constitution. This ratio in the education system can be ……… by educating women and making them independent. This will break the wall of inequality, inequality, negligence, intolerance, social taboo and exploitation of women in our society. Generally women are exploited in the home as domestic helps. If poverty, poverty, health, safety, safety, crime and other issues related to women are …….., then we can see the real dream of women empowerment in near future. A. 1. many 2. more 3. several Correct Option: 3
B. 1. Rising 2. Increasing 3. Alarming Correct Option: 2
C. 1. prot 2. betterment 3. benet http://prepinsta.com/tcs-ninja/live-questions/
48/74
9/15/2018
Correct Option: 3
TCS Live Questions Dashboard » Prep Insta
D. 1. victim 2. slave 3. sufferer Correct Option: 1
E. 1. optimised 2. optimise 3. reduce Correct Option: 1
F. 1. removing 2. remove 3. removed Correct Option: 3 Question 9
‘Knowledge is Power’ is a well-known ultimate fact. Without knowledge it would have been impossible for human civilizations to ……… We live in the modern,……… nation where one cannot cope with lack of knowledge. To To compete and transform in the evolving scenario it is very important to stay up to dated. We are in a tech-savvy ……. where the use of new technology and gadgets is not obligatory but essential. One can only use technology if he/she he/she is well-informed about how to use it …… or we might just feel helpless and dependent on others. Knowledge is the key …… progress and achieve success in life. One can gain knowledge not just by reading books but also by the practical experience they face in everyday everyday life. PrepInsta Knowledge is more powerful than the physical strength as it gives us the ability to deal effectively with any situation in life. One can achieve anything in life with the power of knowledge. Knowledge is a powerful resource that we can gain and use in …….. and the good news is it won’t get depleted. A. 1. evolve
http://prepinsta.com/tcs-ninja/live-questions/
49/74
9/15/2018
2. evolution
TCS Live Questions Dashboard » Prep Insta
3. evolved Correct Option: 1
B. 1. urbanized 2. urban 3. urbanization Correct Option: 1
C. 1. era 2. generation 3. both 1 and 2 Correct Option: 3
D. 1. well 2. wisely 3. without difculty Correct Option: 1
E. 1. for 2. to 3. towards Correct Option: 2
F. 1. quantity 2. abundance http://prepinsta.com/tcs-ninja/live-questions/
50/74
9/15/2018
3. access
TCS Live Questions Dashboard » Prep Insta
Correct Option: 2 Question 10
Chatbots are now part of the cultural narrative and are becoming even more sophisticated. It is hard to nd someone who has not had an interaction with a chatbot or virtual assistant. As chatbots and virtual assistants get more sophisticated, they will be able to respond with increasing empathy and personalization, seamlessly tracking the customer journey. Whether voice or text activated, bots will be able to help users nd products and answers 24 X 7, on any device or channel faster than ever before. In fact, more and more people are rating messaging as a top choice for customer service. Question 11
ANTI MONEY LAUNDERING__A.__ TO A__B____OF PROCEDURES, LOSS AND REGULATIONS DESIGNED TO __C___, THE ____D____ OF GENERATING GENERATING INCOME___E____ ILLEGAL___F___. _____G___ AML COVERS___H___ LIMITED ___I___ OF TRANSACTION AND CRIMINAL BEHAVIOURS THEIR ___J____ ARE FAR REACHING. ANSWER:
A.) REFERS B.) SET C.) STOP D.) PRACTICE E.) THROUGH F.) ACTIONS G.) THOUGH H.) RELATIVELY I.) NUMBER J.) IMPLICATIONS
Programming / Coding Link to this Question (http://prep (http://prepinsta.com/tcs-write-a insta.com/tcs-write-a-program- -program-nd-the-nth-term-of-thend-the-nth-term-of-theseries-112349827168132243/) Question 1
Find the nth term of the series. 1,1,2,3,4,9,8,27,16,81,32,243,….
http://prepinsta.com/tcs-ninja/live-questions/
51/74
9/15/2018
#include
TCS Live Questions Dashboard » Prep Insta
#include int three(n) { int x,i; for(i=0;i<100;i++) { x=pow(3,i); if(i==n) printf(“%d”,x); } } int two(n) { int x,i; for(i=0;i<100;i++) { x=pow(2,i); if(i==n) printf(“%d”,x); } } int main() { int n; scanf(“%d”,&n); if(n%2==0) three(n/2); else two(n/2+1); } In Java
import java.util.ArrayList; java.util.ArrayList; import java.util.Scanner; public class NthTermInASeries { public static void main(String[] args) { // // start!!! // // 1,1,2,3,4,9,8,27,16,81,32,243,…. int i, j, k = 1, m = 1, o = 0; ArrayList ArrayList odd = new ArrayList(); ArrayList(); http://prepinsta.com/tcs-ninja/live-questions/
52/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta ArrayList ArrayList even = new ArrayList();
ArrayList ArrayList result = new ArrayList(); ArrayList(); System.out.println(“enter System.out.println(“enter the number”); Scanner in = new Scanner(System.in); int n = in.nextInt(); odd.add(1); for (i = 1; i < n; i++) { k = k * 2; odd.add(k); } even.add(1); for (j = 1; j < n; j++) { m = (m * 3); even.add(m); } System.out.println(odd); System.out.println(even); int f = 0; int g = 0; for (o = 0; o < 2 * n; o++) { if (o % 2 == 0) { result.add(odd.get(f)); f++; } else { result.add(even.get(g)); g++; } } System.out.println(result); System.out.println(result.get(n-1)); } } In C++
#include using namespace std; int main() { int n; cout<<“Enter the value for n\n”; http://prepinsta.com/tcs-ninja/live-questions/
53/74
9/15/2018
cin>>n;
TCS Live Questions Dashboard » Prep Insta
cout<<“1″<<” “<<“1″<<” “<<“2″<<” “; if(n==3) return 100; int a[100],x; a[0]=1;a[1]=1;a[2]=2; int i=3; while(i<=n){ if((a[i-2])%2!=0){ x=a[i-2]*3; a[i]=x; } else{ x=a[i-2]*2; a[i]=x; } i++; }i=3; while(i<=n){ cout<
Link to this Question (http://prep (http://prepinsta.com/this-seriesinsta.com/this-series-is-a-mixture-of-2-seriesis-a-mixture-of-2-series-all-the-oddall-the-oddterms-in-this-series-form-a-geometric-series-a terms-in-this-series-for m-a-geometric-series-and-all-the-even nd-all-the-even-terms-form-yet-a -terms-form-yet-anothernothergeometric-series/) Consider the following series: 1,1,2,3,4,9,8,27,16,81,32,243,64,729,128,2187… This series is a mixture of 2 series – all the odd terms in this series form a geometric series and all the even terms form yet another geometric series. Write a program to nd the Nth term in the series. The value N in a positive integer that should be read from STDIN. The Nth term that is calculated by the program should be written to STDOUT. STDOUT. Other than value of n th term,no other character / string or message should be written to STDOUT. STDOUT. For example , if N=16, the 16th term in the series is 2187, so only value 2187 should be printed to STDOUT. STDOUT. You can assume that N will not exceed 30. http://prepinsta.com/tcs-ninja/live-questions/
54/74
9/15/2018
#include
TCS Live Questions Dashboard » Prep Insta
#include int main() { //co //code de int n; scanf(“%d”, &n); if(n % 2 == 1) { int a = 1; int r = 2; int term_in_series = (n+1)/2; int res = pow(2, term_in_series – 1); printf(“%d “, res); } else { int a = 1; int r = 3; int term_in_series = n/2; int res = pow(3, term_in_series – 1); printf(“%d “, res); } return 0; } Extra Questions without Solutions and Options that students couldn’t remember, remember, please add solutions in the comment section below – 1. Given a series whose even term creates a separate geometric series and odd term creates another geometric series . Prog in any language to nd the nth term. Where u may consider that n not greater dan 30. 2. 1,1,2,2,4,4,8,8,16,16 also this code Solutions to one of the problem discussed above – #include #include #include long long int power(long long int a,long long int b ){ long long int i,ans=1; for(i=0;i
55/74
9/15/2018
ans=ans*a;
TCS Live Questions Dashboard » Prep Insta
} return ans; } // // long long int three(long long int n){ // // return pow(3,n); // // } // // long long int two(long long int n){ // // return pow(2,n); // // } int main() { clrscr(); long long int i,nth,a[1000]; scanf(“%lld”,&nth); for(i=0;i
Link to this Question – (http://prep (http://prepinsta.com/0021426384105126147168-thisinsta.com/0021426384105126147168-this-series-is-aseries-is-amixture-of-2-series-all-the-odd-terms-in-this-series-fo mixture-of-2-series-all-the -odd-terms-in-this-series-form-even-numbe rm-even-numbers-in-ascendingrs-in-ascendingorder-and-every-even-t order-and-every-even-terms-is-derived-from-th erms-is-derived-from-the-previous/) e-previous/) Consider the below series : 0,0,2,1,4,2,6,3,8,4,10,5,12,6,14,7,16,8 http://prepinsta.com/tcs-ninja/live-questions/
56/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta This series is a mixture of 2 series all the odd terms in this series form even numbers in
ascending order and every every even terms is derived from the previous previous term using the formula (x/2) Write a program to nd the nth term in this series. The value n in a positive integer that should be read from STDIN the nth term that is calculated by the program should be written to STDOUT. STDOUT. Other than the value of the nth term no other characters /strings or message should be written to STDOUT. For example example if n=10,the 10 th term in the series is to be derived from the 9th term in the series. The 9th term is 8 so the 10th term is (8/2)=4. Only the value 4 should be printed to STDOUT. You can assume that the n will not exceed 20,000. Code:
#include #include int main() { //co //code de int n; scanf(“%d”, &n); if(n % 2 == 1) { int a = 1; int r = 2; int term_in_series = (n+1)/2; int res = 2 * (term_in_series – 1); printf(“%d “, res); } else { int a = 1; int r = 3; int term_in_series = n/2; int res = term_in_series – 1; printf(“%d “, res); } return 0; } http://preSolution pinsta.com/tcnot s-ninAvailable ja/live-questionin s/ other languages as of now- Please add
in comments
57/74
9/15/2018
Question 4
TCS Live Questions Dashboard » Prep Insta
0,0,2,1,4,2,6,3,8,4,10,5,12,6…. Link to this Question (http:/ ( http://prep /prepinsta.com/tcs-con insta.com/tcs-consider-the-series-belowsider-the-series-below0021426384105126/) #include int main() { int i=3,n; printf(“enter printf(“enter nth term”); scanf(“%d”,&n); int a[n+1]; a[1]=0; a[2]=0; while(i<=n) { if(i%2==0) a[i]=a[i-2]+1; else a[i]=a[i-2]+2; i++; } printf(“%d”,a[n]); } Question 5
Link to this Questions (http://prep (http://prepinsta.com/tcs-co insta.com/tcs-coding-1-the-progr ding-1-the-program-will-recieve-3am-will-recieve-3english-words-inputs-from-stdin-these-three-words english-words-inputs-from-stdin-these-three-words-will-be-read-one-at-a-will-be-read-one-at-a-time-in-threetime-in-threeseparate-line/) 1. The program will recieve 3 English words inputs from STDIN 1. These three words will be read one at a time, in three separate line 2. The rst word should be changed like all vowels should be replaced by $ 3. The second word should be changed like all consonants should be replaced by # 4. The third word should be changed like all char should be converted to upper case 5. Then concatenate the three words and print them Other than these concatenated word, no other characters/string characters/string should or message should be written to STDOUT For example if you print how are you then output should be h$wa#eYOU. http://preYou pinstacan .com/assume tcs-ninja/livethat -quesinput tions/ of each word will not exceed more than 5 chars
58/74
9/15/2018
Write Code for this
TCS Live Questions Dashboard » Prep Insta
#include #include #include int main() { char *str1=malloc(sizeof(char *str1=malloc(sizeof(char)*256); )*256); char *str2=malloc(sizeof(char *str2=malloc(sizeof(char)*256); )*256); char *str3=malloc(sizeof(char *str3=malloc(sizeof(char)*256); )*256); printf(“ENter 3 words : “); scanf(“%s%s%s”,str1,str2,str3); int p1=strlen(str1); int p2=strlen(str2); int p3=strlen(str3); for(int i=0;i
59/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta Series question t(n)=t(n-1)+t(n-2) for 14th term
Fibbonacci Series #include #include int main() { int n,next,a=1,b=2; scanf(“%d”,&n); if(n==1) printf(“1”); else if(n==2) printf(“2”); else { n=n-2; while(n>0) { next=a+b; a=b; b=next; n–; } printf(“%d”,next); } return 0; } Alter Code – #include int Fibonacci(int); int main() { int n, i = 0, c; scanf(“%d”,&n); printf(“Fibonacci series\n”); for ( c = 1 ; c <= n ; c++ ) { printf(“%d\n”, Fibonacci(i)); http://prepinsta.com/tcs-ninja/live-questions/
60/74
9/15/2018
i++;
TCS Live Questions Dashboard » Prep Insta
} return 0; } int Fibonacci(int n) { if ( n == 0 ) return 0; else if ( n == 1 ) return 1; else return ( Fibonacci(n-1) + Fibonacci(n-2) ); } Question 7
Link to this code is here (http://prep (http://prepinsta.com/tcs-co insta.com/tcs-coding-look-at-the-series-be ding-look-at-the-series-belowlow123581321345589144233377610987-this-series-is-formed-as-below-1-term11/) look at the series below: 1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,….. This series is formed as below: 1.term(1)=1 2.term(2)=2 3.term(N)=term(N-1)+term(N-2)for N>2 Write a program to nd the Nth term in this series .the value N is a positive integer that should be read from STDIN.the Nth term that is calculated by the program should be written to STDOUT,other STDOUT,other than the value of nth term no other characters /strings and messages should be written to STDOUT. For example example if N =15,the value of 15thn term is 987 which is the sum of 13th and 14th terms . You can assume that the value of n will not exceed 30 Ans: #include int main() { //co //code de int n; scanf(“%d”, &n); if(n == 1) http://prepinsta.com/tcs-ninja/live-questions/
61/74
9/15/2018
{
TCS Live Questions Dashboard » Prep Insta
printf(“1”); } else if(n ==2) { printf(“2”); } else { int t1=1, t2=2, nth_term; for(int i = 3; i <=n; i++) { nth_term = t1 + t2; t1 = t2; t2 = nth_term; } printf(“%d”, nth_term); } return 0; } Question 8
aaaabbBccdee change to a4b2B1c2d1e2 Write code for this in the comment section below – int main() { char a[100]; int i,count=0; scanf(“%s”,a); http://prepinsta.com/tcs-ninja/live-questions/
62/74
9/15/2018
for(i=0;a[i]!=’\0′ ;i++) ;i++)
TCS Live Questions Dashboard » Prep Insta
{ count=1; while(a[i]==a[i+1]) { i++; count++; } printf(“%c%d”,a[i],count); } return 0; } Programming auestion :replacing multiple occurances of characters by single character and printing in reverse order if input:aaaaEEeeecccCCCGEExffe input:aaaaEEeeecccCCCGEExffe then output:efxEGCceEa output:efxEGCceEa
Solution not Available as of now- Please add in comments
Please comment explanations below – Also you can study other coding questions here – TCS Coding Dashboard (http://prepinsta.com/tcs-coding-questions/) TCS ninja Coding Dashboard (http://prepinsta.com/tcs-ninja/coding-questions/)
Slot 1 Questions Set 1. THE AIR CONDITIONED BUS SERVICE FROM SIRUSERI INDUSTRY PARK RUNS AT REGULAR INTERVALS THROUGHOUT THE DAY. IT IS NOW 3:12PM AND THE LAST BUS ARRIVED 1 MINUTE SAGO BUT IT WAS 2 MINUTES LATE. THE NEXT BUS IS DUE AT 3:18 PM. WHEN IS THE BUS AFTER THAT BUS? A)3:24 PM B)3:29 PM C)3:25 PM http://preD)3:27 pinsta.comPM /tcs-ninja/live-questions/
63/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
2. IN A FOOTBALL TOURNAMENT, SIXTEEEN TEAMS PLAY. THEY ARE FIRST DIVIDED INTO FOUR GROUPS,EACH OF FOUR TEAMS. IN EACH GROUP EACH TEAM PLAYS EACH OTHER ONCE. THE BEST TWO TEAMS FROM EACH GROUP THEN PLAY IN THE KNOCKOUT TOURNAMENT(WHEN A TEAM LOSES IT IS ELIMINATED) TO DECIDE THE OVERALL WINNER. HOW MANY MATCHES SHOULD BE PLAYED? a) 16 b) 15 c) 31 d) 35 3. OVERFISHING IS A SERIOUS ENVIRONMENTAL ISSUE. IT HAS BEEN DETERMINED BY THE SCIENTISTS THAT IF THE NET OF THE TRAWLER HAS MESH SIZE X CM BY X CM(A SQUARE MESH),THEN THE % OF FISH ENTERING THE NET THAT ARE CAUGHT IN THE NET IS (100-0.02X^2-0.05X). FOR EXAMPLE IF THE MESH SIZE IS ZERO 100% OF THE FISH THAT ENTERS WILL BE CAUGHT. A TRAWLER WITH NET WITH A SQUARE MESH, THATWAS SUSPECTED OF USING AN ILLEGAL SIZE NET DROPPED ITS NET TO THE OCEAN FLOOR NEAR THE ANDAMANS AND THE COAST GUARD OFFICIALS ARRESTED THE CREW. THE SCIENTISTS ESTIMATED THAT FOR THE NET USED BY THE TRAWLER, AT LEAST 97.93% OF THE FISH ENTERING THE NET WOULD BE CAUGHT. WHAT IS THE MAXIMUM VALUE FOR X? a) 11 b) 8.5 c) 9 d) NONE
4. IN THIS QUESTION X^Y STAND FOR X RAISED TO THE POWER Y. FOR EXAMPLE 2^3=8 AND 4^1.5=8 IF A,B ARE REAL NUMBERS SUCH THAT A+B=3,A^2+B^2=7. THEN THE VALUE VALUE OF A^4+B^4 IS a) 51 b) 47 c) 49 d) 45
5. HOW MANY NUMBER PLATES CAN BE MADE IF THE NUMBER PLATES HAVE TWO LETTERS OF THE ENGLISH ALPHABET (A TO Z) FOLLOWED BY THE TWO DIGITS (0 TO 9) REPETETION IS NOT ALLOWED. a.) 58500 b.) 52500 c.) 59680 d.) 58580 6. 20 FEET POLE STANDS VERTICALLY IN A HORIZONTALLY SUPPORTED THREE 490 FOOT WIRES, ALL ATTACHED TO THE TOP OF THE POLE PULLED AND ANCHORED TO THREE POINTS IN THE PLANES. WHAT IS THE DISTANCE BETWEEN ANY TWO http://preEQUALLY pinsta.com/tcsSPACED -ninja/live-que stions/
64/74
9/15/201ANCHOR 8
TCS Live Que stions DashboINTEGERS ard » Prep InstaTHAT DIVIDES POINTS. WHAT IS THE NUMBER OF POSITIVE 1*2*3*4*5*6*7*8*9*10 WITHOUT LEAVING A REMAINDER. 7. IN A WEEK IN JULY AVERAGE DAILY TEMPERATURE OF MONDAY TO WEDNESDAY WAS 27 DEGREES AND AT TUESDAY TO THURSDAY WAS 24 DEGREES. IF THE TEMPERATURE ON THURSDAY WAS TWO THIRD OF THE TEMPERATURE ON MONDAY. WHAT WAS THE TEMPERATURE ON THURSDAY? A.) 16 B.) 22 C.) 20 D.) 18 8. IF A AND B COMPLETES A WORK IN 5 DAYS ,IF A WORK TWICE ITS OWN SPEED IT WOULD HAVE TAKE 4 DAYS TO COMPLETE. IF A WORKD ALONE , HOW MANY DAYS IT WOULD TAKE
A.)10 b.)15 C.)20 D.)25
9. A ROAD NETWORK COVERS THREE CITIES , CITY C CAN BE REACHED ONLY FROM CITY A OR FROM B. DISTANCE FROM A TO C IS 65KM. AND FROM B TO C IS 30KM. THE SHORTEST DISTANCE BETWEEN A TO B IS 58 KM. SHORTEST DISTANCE FROM B TO TO A IS 420KM. AND B TO P IS 365KMS. SHORTEST DISTANCE FROM P TO C IS _________? A.)453 B.)478 C.)353 D.)375
10. A SUM OF 2387 RUPEES IS DIVIDED DI VIDED INTO THREE PARTS PARTS IN SUCH A WAY WAY THAT ONE FIFTH OF THE FIRST PART, ONE HALF OF THE SECOND PART, AND ONE FOURTH OF THE THIRD PART ARE EQUAL. FIND THE SUM OF 5 TIMES THE FIRST PART ,THREE TIMES THE SECOND PART ,FOUR TIMES THE THIRD PART IN RUPEES. A.) 10599 B.) 9114 C.) 5812 D.) 9982
http://prepinsta.com/tcs-ninja/live-questions/
65/74
9/15/20111. 8
LiveGREATER Questions DasTHAN hboard »ZERO Prep InstA(N+1) a A SET A OF ZERO IS{1,2,3,4}. FORTCNS IS CONTAINS ALL PPOSSIBLE SUMS THAT CAN BE OBTAINED BY ADDING TWO DIFFERENT NUMBERS FROM A(N). WHAT IS THE NUMBER OF INTEGERS IN A(10). 12. ESHA FATHER WAS 34 YEARS OF AGE WHEN SHE WAS BORN, HER YOUNGER BROTHER SHAWSHAWNK ,NOW HE IS 13 IS VERY PROUD OF FACT THAT. HE IS TALL AS HER EVENTHOUGH HE IS THREE YEARS YOUNGER THAN HER. ESHA’S MOTHER WHO IS SHORTER THAN ESHA WAS ONLY 29, WHEN SHASHAWNK WAS BORN. WHAT IS THE SUM OF AGES OF ESHA’S PARENTS NOW?
A.)88 B.)86 C.)66 D.)76
13. WHAT IS THE NUMBER OF POSITIVE INTEGERS THAT HAVE ATLEAST ONE PAIR OF ADJCENT DIGITS THAT ARE BOTH EVEN, FOR EX: 24,564 ARE TWO EXAMPLES OF SUCH NUMBERS. WHILE 10276 DOES NOT SATISFY THE REQUIRED PROPERTY. 14. IN A CRICKET TOURNAMENT 16 SCHOOL TEAMS PARTICIPATED A SUM 8000RS. IS TO AWARDED AMONG THEM AS PRIZE MONEY. IF THE TEAM PLACED LAST IS AWARDED 275 RS. AND THE AWARD INCREASE BY THE SAME AMOUNT FOR SUCESSIVE FINISHING PLACES HOW MUCH THE TEAM PLACED FIRST WILL RECEIVE? A.)725 B.)1250 C.)500 D.)1000
15. A,B AND C WORK TOGETHER TO DO A WORK IN 72 DAYS. A AND B TOGETHER TO DO A WORK 2 TIMES AS MUCH AS C. A AND C WORK TOGETHER 4 TIMES AS MUCH AS B. FIND C ALONE TO DO THE WHOLE WORK 180 DAYS,360 DAYS ,144 DAYS. 16. IN A TEST WITH 26 QUESTIONS 5 POINTS WERE DEDUCTED FOR EACH WRONG ANSWER AND 8 POINTS WERE ADDED FOR EACH CORRECT ANSWER. IF ALL QUESTIONS WERE ANSWERED , HOW MANY WERE CORRECTLY ANSWERED, IF THE SCORE IS 0. A.)11 B.)13 C.)10 D.)12 http://prepinsta.com/tcs-ninja/live-questions/
66/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
PROGRAM:
1. WHICH OF THE FOLLOWING IS NOT A VALID STORAGE CLASS IN C. A.)EXTERN B.)AUTO C.)DYNAMIC D.)REGISTER ENGLISH:
1. ANTI MONEY LAUNDERING__A.__ TO A__B____OF PROCEDURES, LOSS AND REGULATIONS DESIGNED TO __C___, THE ____D____ OF GENERATING INCOME___E____ ILLEGAL___F___. _____G___ AML COVERS___H___ LIMITED ___I___ OF TRANSACTION AND CRIMINAL BEHAVIOURS THEIR ___J____ ARE FAR REACHING. ANSWER:
A.) REFERS B.) SET C.) STOP D.) PRACTICE E.) THROUGH F.) ACTIONS G.) THOUGH H.) RELATIVELY I.) NUMBER J.) IMPLICATIONS
Slot 2 Questions Set programming question Question: 1 1 2 3 4 9 8 27 16 ……… nth term Find the nth term, Code: #include http://prepinsta.com/tcs-ninja/live-questions/
67/74
9/15/2018
Int main()
TCS Live Questions Dashboard » Prep Insta
{ Int n, f,ctr,pow=1; Scanf(“%d”,&n); If(term%2==0); f=n/2; else f=n/2+1; if(n%2==0) { for(ctr=0;ctr
1) A number is multipli multiplied ed by 32 is equal to the reverse the number when multiplied multiplie d by 23.nd the number? Ans :69 2) Find the next number in the series: 70 54 45 41 ? ans :40 3) In the following : a b b c c c d d d d e e e e e e………………nd the 260 th word? Ans: w 4) a+b+ab=8; b+c+bc=15; c+a+ca=35; http://prepinsta.com/tcs-ninja/live-questions/
68/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
a+b+c+abc=?
5) A sum of rs 3000 is distributed distribu ted among A B and C. A gets 2/3 of what B and C together and C gets 1/3 of what A and B together gets, C’Share?
MCQ
1) The full set of operations of stack are a)push and pop b)push and pop remove substitute c)remove pus and pop d)delete add push and pop 2) the default return return type of main()__________
3) which of the following is syntax for command line argument? a) int main(int var, var, char *varg[]) b)int main(char * argv[],int argc()) c) none of the mentioned 4) while hearing song esha returns from from to back in mobile phone. This is example for ________data structure a)stack b)queue c)linked list
14 Comments Recommend
www.prepinsta.com 1
⤤ Share
1 Login
Sort by Best
Join the discussion… LOG IN WITH WITH
OR SIGN UP WITH DISQUS ?
Name http://prepinsta.com/tcs-ninja/live-questions/
69/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
preksha • 13 days ago
QUESTION 5 CODING (CONCATENATION (CONCATENATION IN PYTHON) import sys word1=input("enter the first word") word2=input("enter the second input") word3=input("enter the third input") for ch in word1: if ch in "aeiouAEIOU": word1=word1.replace(ch,"$") for ch in word2: if ch in "aeiouAEIOU": word2= ord2=word2.replace(ch,"#") word2.replace(ch,"#") for ch in word3: if ch in "abcdefghijklmnopqrstuv "abcdefghijklmnopqrstuvwxyz": wxyz": word3=word3.upper() print(word1,word2,word3) 3
• Reply • Share ›
preksha • 13 days ago
0,0,2,1,4,2,6,3,8,4,10,5,12,6…. 0,0,2,1,4,2,6,3,8 ,4,10,5,12,6…. ( python code ) def odd(m): return m+2 def half(m) : return int(m/2) n=int(input("Enter n") ) a=[0] for i in range(1,n+1): if i%2==0: x=odd(a[i-2]) a.append(x) else: x=half(a[i-1]) a.append(x) print(a[n-1]) 2
• Reply • Share ›
phani • 13 days ago
#include #include int main() { char s1[50],s2[50],s3[5 s1[50],s2[50],s3[50]; 0]; int i,l1,l2,l3,j,k; scanf("%s%s%s",s1,s2,s3); l1=strlen(s1); l2=strlen(s2); http://prepinsl3=strlen(s3); ta.com/tcs-ninja/live-questions/
70/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta for(i=0;i
2
• Reply • Share ›
Ram Chandra • 12 days ago
#include #include //code for the question2 1 1 2 3 4 9 8 27 16..... int main() { int a[1000],i,result,n,j; scanf("%d",&n); //n=result; for(i=0;i 1
• Reply • Share ›
Kota Vs Naidu • 13 days ago
sir , please upload qood quality images for question 1 & 4 1
• Reply • Share ›
preksha • 13 days ago
1,1,2,3,4,9,8,27,16,81,32,243,6 1,1,2,3,4,9,8,27 ,16,81,32,243,64,729,128,2187 4,729,128,2187… … (question 2 coding in python ) import sys import math n=int(input("enter the number")) def three(n): for i in range(0,100,1): x=pow(3,i) if(i==n): print(x) def two(n): for i in range(0,100,1): x=pow(2,i) if (i==n): print(x) if n>30: print("input invalid") elif n%2==0: three(n/2) else: two(n/2 +1) 1
• Reply • Share › Hema Gayathri > preksha • 12 days ago
hey hii http://prepinsta.com/tcscan -ninjayou /live-qplease uestions/ try code in python for this
71/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
Input:: aaaDdddEEffG aaaDdddEEffGh h Output:: hGfEdDa this was coding question in slot 6 • Reply • Share ›
Shubham Jain > Hema Gayathri • 12 days ago
#include using namespace std; int main(){ int i,j; string s; cin>>s; for(i=s.length();i>=0;i--){ if(i==s.length()) cout< • Reply • Share › Hema Gayathri > Shubham Jain • 11 days ago
tq • Reply • Share › Ram Chandra > preksha • 12 days ago
#include #include int main() { int a[1000],i,result,n, a[1000],i,result,n,j; j; scanf("%d",&n); //n=result; for(i=0;i • Reply • Share › Shubham Chaurasia • 12 days ago
#include #include int main() { char c[30],res[30]; int i,j; scanf("%s",c); for(i=strlen(c)-1,j=0;i>=0;i--) { if(i==0) res[j]=c[i]; else if(c[i]!=c[i-1]) { res[j]=c[i]; http://prepins++ ta.com/tcs-ninja/live-questions/
72/74
9/15/2018
} } printf("%s",res); return 0; }
TCS Live Questions Dashboard » Prep Insta
• Reply • Share › nitin aditya • 12 days ago
Which of the following represents the largest 4 digit number which can be added to 7855 in order to make the derived number divisible by each of the following numbers 12,14,21,33 and 54? the answer looks like 8777 • Reply • Share › Uday Kanth • 13 days ago
solution to question 5 coding 3rd slot without using any string functions #include int main() { char s1[100],s2[100],s s1[100],s2[100],s3[100]; 3[100]; printf("enter"); int i,j; scanf("%s\n%s\n%s",s1,s2,s3); for(i=0;s1[i]!='\0';i++) { if(s1[i]=='a'||s1[i]=='e'||s1[i]=='i'||s1[i]=='o'||s1[i]=='u') { s1[i]='$'; } } for(i=0;s2[i]!='\0';i++) { see more
• Reply • Share › Radhika chadha > Uday Kanth • 4 days ago
sir please give some papers for TCS softwar e engineer industrial practice test (micro degree) which is gonna conduct on 15 sept 2018
A new star is born - Samsung Galaxy A8 Star with dual intellicam A new star is born - Samsung Samsung Galaxy Galaxy A8 Star with dual dual intellicam Learn More Sponsored by Samsung
Report ad http://prepinsta.com/tcs-ninja/live-questions/
73/74
9/15/2018
TCS Live Questions Dashboard » Prep Insta
HOME HOME (HTTP:/ (HTTP://PR /PREPI EPINST NSTA. A.COM COM/) /) COMP OMPANIE ANIESS-D DASHB ASHBO OARD ARD/)
ALL COMP COMPANIES ANIES (HTTP:/ (HTTP://PR /PREPI EPINST NSTA. A.COM COM//ALLALL-
WHEEB HEEBO OX (HTT (HTTP P://P ://PR REP EPIN INS STA.C A.COM/W OM/WHE HEE EBOX BOX/)
NINJ NINJA A (HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/T TCS-N CS-NIN INJJA/) A/)
ACCE ACCENT NTUR URE E
(HTTP: (HTTP:///PREPI /PREPINST NSTA. A.COM COM//ACCEN ACCENTUR TURE-P E-PREV REVIOU IOUS-P S-PAPE APERS/ RS/)) (HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/DE DEL LOITT OITTE/ E/)) (HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/AM AMCA CAT T/)
DELOIT DELOITTE TE
WIPR WIPRO O (HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/WI WIPR PRO O/)
(HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/CO COCU CUBE BES/ S/)) (HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/CO COGN GNIZ IZAN ANT T/)
COCU COCUBE BES S COGN COGNIZ IZAN ANT T ELIT ELITMU MUS S
(HTT (HTTP P://P ://PRE REP PINS INSTA.C A.COM/E OM/ELI LITM TMUS US/) /)
IBM IBM (HTT (HTTP P://P ://PR REP EPIN INS STA.C A.COM/I OM/IBM BM/) /)
(HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/IN INFO FOSY SYS/ S/))
MIND MINDTR TREE EE
(HTTP: (HTTP:///PREPI /PREPINST NSTA. A.COM COM/MP /MPHAS HASIS/ IS/)) PAPER APERS S/)
AMCA AMCAT T
CAPG CAPGEM EMIN INII
(HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/CA CAPG PGEM EMIN INI/ I/))
(HTT (HTTP: P:///PRE /PREPI PINS NST TA.CO A.COM/ M/MI MIND NDTR TREE EE/) /)
TCS
INF INFOSYS OSYS
MPHA MPHASI SIS S TCS (HTTP: (HTTP:///PREPI /PREPINST NSTA. A.COM COM/T /TCSCS-PLA PLACEM CEMENT ENT--
SUC SUCCES CESS ST STORIES RIES (HTT (HTTP P://P ://PRE REP PINST INSTA. A.C COM/S OM/ST TARS ARS/)
CON CONTACT US
(HTTP://PREPINSTA.COM/CONTACT/)
Copyright © 2018 Prep Insta — Escapade WordPress theme by GoDaddy (https://www.godaddy.com/)
http://prepinsta.com/tcs-ninja/live-questions/
74/74