### 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
- 100% Repetition from C MCQ Paid Materials
- 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, 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 defined 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[], int argc)

b. none of the three options

c. int main ()

{

int argv, char *argc[];

}

d. int main(int var, char *varg[])

**Answer:** int main (int var,char *varg[])

**Question 4**

**Advanced** The figure 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 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, 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 first search algorithm explore the graph till termination, searching from right to left until it reaches one of the goal nodes.

**Answer:** S,C,J,T,I1

**Question 5**

The full set of operations allowed on a stack are

a. Push ,pop

b. Push,pop,remove

c. Push,pop, add,remove

d. Push,pop,add,remove,substitute

**Answer: push,pop**

**Question 6**

Realloc () function is used to:

a. Get back the memory that was released earlier using dree() funcion

b. Reallocate a file pointer when switching between files

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**

**Advanced** Consider a hash function that distributes keys uniformly. The hash table size is 20. 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:

- Signed int
- Big int
- Short int
- Long int

**Answer:** Big int

**Question 9**

Eesha wants to implement an image viewer application to view images in a given 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 next/previous image by pressing right/left keys on the keyboard. Which data structure is appropriate for Esha to use?

- Tree
- Queue
- Linked list
- Stack

Answer: Linked list

**Question 10**

The pseudo code below sorts an array using bubble sort. Here A is the array and the” n” is the number of element in it. Function swap exchanges the value of 2 given value.

- Function bubbleSort(A,B)
- {
- For i =0 to n-2 step 1
- For j = 0 to n-1-2 step 1
- if( A (j) > A(j+1))
- Swap(A(j),A(j+1))
- }

This function is called with A and 7 as parameter where the array a initially contains the element 64, 34, 25,12, 22, 11, 9

- 34 25 12 22 11 9 64
- 25 12 22 11 9 34 64
- 11 9 12 22 25 34 64
- 12 11 9 22 25 34 64

Answer:25 12 22 11 9 34 64

**Question 11**

**Advanced** Consider a hash function that distributes keys uniformly. The hash table size is 20. After hashing of how many keys will the probability that any new key hashed collides with an existing one exceed 0.5.

- 10
- 7
- 6
- 5

**Answer: **10

**Question 12**

#define is used to

a. Define a variable

b. Define a macro

c. Define a function

d. Define a constant

**Answer:** Define a macro it is

**Question 13**

What type of data structures are queues?

a. First in last out

b. First in first out

c. Last in first out

d. Last in last out

**Answer:** First in first 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 control z will undo the latest change,what data structure should Eesha use for this?

a. Stack

b. Queue

c. Linked list

d. Array

**Answer:** Stack

**Question 16**

#include<stdio.h>

Main(int 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 first 3 slots are unfilled after the first 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 18**

A**dvanced **Consider the following graph starting at node A. In what order will the nodes be visited using a breadth first search?

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 first alphabet

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 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.

**Answer:** A,B,D,E,G,C,H,F

**Question 19**

This function is called with A and 7 as parameters where the array A initially contains the elements 34,14,65 be the value of the elements in A after 3 iterations of the outer loop?

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 packets are assembled and processed further.eesha recognizes that there maybe a very large number of packets this number is unknown nd which will be processed while more packets are being received .assume that the packets 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 defined data type that holds predefined collection of data types
- User defined data type holding similar or dissimilar data types
- Another name for union data type
- A collection of similar user defined data type

Ans : User defined 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
- infinite 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 infix is solved using the data structure

- stack
- queue
- linked list
- tree

Answer – Stack

**Question 25**

To get the most accurate value we prefer the data type

- int
- long int
- float
- double

Answer – Double

**Question 26**

main(int argc,char*argv[])

in the above Definition of main function the variable argv denotes:

- An array of character pointers the first 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 first array item pointing to the program name and remaining

**Question 27**

#include <stdio.h> Int main()

{

Int n,ch, for(n=7;n!=0;n–)

printf(“n=%d”,n–) ch=getchar(); Return 0;

}

Infinite 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: Infinite loop

**Question 28**

Eesha works for ISRO where she is involved in a mission to intercept a comet that is likely to collide with in each with in 1 month.she is developing a c program to calculate the trajectory of the missile to be launched to intercept and destroying the approaching comet.in order to achieve highest 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 <studio . h> Long int fact (int n);

Int main ()

{

Int n;

Printf (“enter a positive integer: “); Scanf (“%d”, &n);

printf(“factorial of %d = %ld “, n, fact (n)); Return 0;

}

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) file 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.

3. DFS uses stack

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)file not found

B)syntax errors

c)it takes the function from standard library

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, please add solutions in the comment section below you will find below –

- 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 .
- Function of realloc()
- If not declaring any return type explicitly in c, what is the default return type?
- Full functionality of stack? Opt- push pop , push pop add, push pop add remove, push pop add remove substitute
- 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.
- Working concept of bubble sort
- Correct syntax for command line argument
- Which of dese data type is not valid in C ? Option – long int, big int, short int
- 1. What is the principle for stack data structure.?

Last – In-First – Out - They’ve given a bubble sort program and asked us to find the error in which line.. Sir
- 1.stack follows:LIFO,filo,fifo,lilo
- 2.meaning of structure in c A)user defined of similar data types

B)same as union

C)user defined of similar and disimmilar data types

D)system defined of different data elemnets - 3.spotting error in given program sum of elements in given matrix
- 4.bubble sort program find the output after 3 iterations
- Which of the following is not string function strlen strcpy strstr strchar

## Quantitative Aptitude

**Question 1.**

**Advanced:**In how many ways can we 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. How fast is this car 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 finished?

a. 11:30 AM

b. 12 noon

c. 12.30 PM

d. 1 PM

**Answer: **1 PM

**Question 5**

A certain sum of money is sufficient to pay either George’s wages for 15 days or mark’s wages for 10 days, for how long will it suffice 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

. **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 with 12 sides (dodecagon) is inscribed in a square of area 24 square units as shown in the figure 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 figure 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.

**Answer: **243

**Question 12**

In the IT department of backrub, the administrator password is changed every month. The team of administrator, spread across the globe, receive an 8 digits number via email. This number is to be prefixed with a single digit number and suffixed 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 prefix and suffix 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 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 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 to the power of 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.

- exp (a^d)/exp (b^c)
- exp (c^d)/ exp(a^b)
- exp (b^d)/exp(a^c)
- 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 its digit. The sum of its digit is 15 Find the number:

a. 96

b. 69

c. 87

d. Insufficient 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. 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, 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

b. 1248

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 first 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. What is the total number of pets in the entire group of five 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) followed by two digits (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

b. 360 days

c. 216 days

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. If the team placed last is award Rs.275 as prize money and the award increases by the same amount for successive finishing places, how much will the team placed first receive?

- 1000
- 500
- 1250
- 725

**Answer:** 725

**Question 24**

- 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 them 4 days to complete the job. How much time would it take for A alone to do the job?
- 10 days
- 20 days
- 25 days
- 15 days

**Answer:** 10 days

**Question 25**

Eesha’s father was 34 years of age when she was born.her younger 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 parents now?

- 92
- 76
- 66
- 89

**Answer:** 92

**Question 26**

A sum of Rs 2387 is divided into three parts in such a way that one fifth of the first part,one half of the second part and fourth one the third part are equal. Find the sum of five times the first part,three times the second part and four times the third part (in rupees).

- 9982
- 7812
- 9114
- 10199

**Answer: **10199

**Question 27**

Apples cost L rupees per kilogram for the first 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 first 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, five 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?

- 11
- 10
- 13
- 12

**Answer:** 10

**Question 30**

In a week in July the average daily temperature of Monday to Wednesday was 27 degrees and of 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. 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. 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 from city P to B is 345 kms. The shortest distance from city P to city C in kms is:

a. 153

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 24,564 are two examples of such numbers while 1276 does not satisfy the required property.

**Answer:** 738

**Question 37**

In the following star, the numbers on each straight line are in arithmetic progression. What is H+K+L?

a. -8

b. 11

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 first 3 slots are unfilled after the first 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**

**Advanced** In this question x^y stands for x raised to the power y .for example 2^3=8 and 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 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 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 floor near the damans and coast guard officials arrested the crew.the scientists later looked at the size of the fish caught and estimated that the net used by the trawler at least 97.93% of the fish 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

**Answer:** 9

**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?

- a. 40
- 41
- 24
- 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 the equation ABS(x+12)+ABS(x-5)=r is satisfied by infinitely many values of x the value of r is

- 12
- No such r exists
- 17
- 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 towards each other at speeds of 50kmph and 60 kmph respectively at the time of their of their meeting the second car has travelled 120 km more than the first 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**

A certain number of teams took part in a competition each team in 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

b. 21800

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 first 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. What is the total number of pets in the entire group of five 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!)

**Answer: **21! * 5! / 15!

**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, 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 , find 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 first 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

a. 28,22

b. 36,14

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 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 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 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 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**

We 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. 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 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<b<c<d,which of the following is the largest? a. (a+d)/(b+c)

b. (c+d)/(a+b)

c. (b+d)/(a+c)

d. (b+c)/(a+d)

Ans: (c+d)/(a+b)

**Question 68**

A passenger train takes 5 hours less for a journey of 252 km if its speed is increased by 35 kmph from its normal speed.the normal speed in kmph (to the nearest integer ) is

- 42
- 35
- None of the other answers
- 28

Ans: 28

**Question 69**

In a single throw with two dice find the probability that their sum is 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. I spent ⅓ of my working life in office 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

**Question 72**

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 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 first box is 200 kg and second box is 20% heavier than the third box which is 25% heavier than the first box.the fourth box which weighs 350 kg is 30% light than the fifth box.find the average weight of the four heaviest boxes and the four lightest boxes?

- 51.5kg
- 65kg
- 75kg
- 37.5kg

Ans: 75kg

**Question 76**

six bags of marble contain 18,19,21,23,25 and 34 marbles respectively.all the marbles in 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 first meet after brindha and run 100 meters .they next meet after shanthi has run 150 metres past their first 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 figure 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 first 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.find the probability of this ball is being black?

a. 41/77 b. 41/308 c. 21/308

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 dig a well in 16 days paul can dig the same well in 24 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 profit 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

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. 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, please add solutions in the comment section below –

- 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 ?
- 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?
- What will the 260th term in the series a,bb,ccc,dddd…… ?
- Which 2 digit number when multiplied by 32 gives d same number when reverse is multiplied with 23?
- 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 ?
- Marked price of jacket is 40% off sp and marked price of pant is 30% off price. The difference between price of jacket and pant is “xyz”. What is the marked price of jacket
- 2 girls go for shopping . A has 3 times money dat of B . Dey together shop for “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**

**revolutionized**our lives and influenced nearly

**every**industry, including fitness. From apps to wearables, technology is constantly

**changing**the way

**the**fitness industry functions. Mobile technology, fitness wearables and data, and smart equipment

**are**shaping the way health clubs

**and**equipment manufacturers operate today. Engaging members via mobile with digital fitness challenges, reward programs, push notifications and wearable integration not only

**allows**fitness operators to foster existing relationships with clients

**but**also build

**on**them.

**Question 2**

The Super twenty just …….. their first 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. 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! Unfortunately, they made 5 fielding 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, The Super twenty might have actually won the game. It wasn’t a 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

**Correct Option: 1**

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, 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 fall behind. 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! 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, learning a new video game takes you nowhere.

A.

1. struggle

2. struggled

3. struggles

**Correct Option: 2**

B.

1. decides

2. decided

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 speak, in the same way we should always think before we act. Life is full of various factors, the 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 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

2. restrict

3. restriction

**Correct Option: 3**

**Question 6**

Internet is one of the most creative and popular …… the world has ever seen. It has efficiently …….. up the possibilities of further advancements in many other fields 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.

1. excess

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 trafficking is the form of trafficking 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 people involved in activities of recruiting, transporting and exploiting. They use various ……..to trick the children or their families. Poor children are lured 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 of victims across the border. And finally 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 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 trafficking is a global issue. Severe laws must be set against the grave problem of child trafficking. Legal processes must also stringently be implemented to prevent the crime and save the victims of child trafficking.

A.

1. transported

2. transport

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

3. distress

**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 in 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, health and safety of the women. After the independence, India has faced many challenges which created a huge difference between men and women especially in the field of education. The ratio between educated adult men and women in India is 82.14% and 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, negligence, intolerance, social taboo and exploitation of women in our society. Generally women are exploited in the home as domestic helps. If poverty, health, 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. profit

2. betterment

3. benefit

**Correct Option: 3**

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 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 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 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

2. evolution

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 difficulty

**Correct Option: 1**

E.

1. for

2. to

3. towards

**Correct Option: 2**

F.

1. quantity

2. abundance

3. access

**Correct Option: 2**

**Question 10**

Chatbots are now part of **the** cultural narrative and are **becoming** even more sophisticated. It is hard to find **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 find **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**

_____G___ AML COVERS___H___ LIMITED ___I___ OF TRANSACTION AND CRIMINAL BEHAVIOURS THEIR ___J____ ARE FAR REACHING.

ANSWER:

## Programming / Coding

**Question 1**

Find the nth term of the series.

1,1,2,3,4,9,8,27,16,81,32,243,….

#include<stdio.h>

#include<math.h>

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;

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<Integer> odd = new ArrayList<Integer>();

ArrayList<Integer> even = new ArrayList<Integer>();

ArrayList<Integer> result = new ArrayList<Integer>();

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 <iostream>

using namespace std;

int main()

{ int n;

cout<<“Enter the value for n\n”;

cin>>n;

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<<a[i]<<” “;

i++;

}

return 0;

}

**Question – 2**

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 find 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. Other than value of n th term,no other character / string or message should be written to STDOUT. For example , if N=16, the 16th term in the series is 2187, so only value 2187 should be printed to STDOUT.

You can assume that N will not exceed 30.

#include <stdio.h>

#include<math.h>

int main() {

//code

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, please add solutions in the comment section below –

- Given a series whose even term creates a separate geometric series and odd term creates another geometric series . Prog in any language to find the nth term. Where u may consider that n not greater dan 30.
- 1,1,2,2,4,4,8,8,16,16 also this code

Solutions to one of the problem discussed above –

#include <stdio.h>

#include<conio.h>

#include<math.h>

long long int power(long long int a,long long int b ){

long long int i,ans=1;

for(i=0;i<b;i++)

{

ans=ans*a;

}

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<nth;i++)

{

if(i%2==0)

{

a[i]=power(2,i/2);

}

if(i%2==1)

{

a[i]=power(3,(i/2)+1);

}

}

printf(“%lld “,a[nth-1]);

return 0;

}

**Question 3**

Consider the below series :

0,0,2,1,4,2,6,3,8,4,10,5,12,6,14,7,16,8

This series is a mixture of 2 series all the odd terms in this series form even numbers in ascending order and every even terms is derived from the previous term using the formula (x/2)

Write a program to find 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. Other than the value of the nth term no other characters /strings or message should be written to STDOUT.

For 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 <stdio.h>

#include<math.h>

int main() {

//code

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;

}

**Solution not Available in other languages as of now- Please add in comments**

**Question 4**

0,0,2,1,4,2,6,3,8,4,10,5,12,6….

#include<stdio.h>

int main()

{

int i=3,n;

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**

1. The program will recieve 3 English words inputs from STDIN

- These three words will be read one at a time, in three separate line
- The first word should be changed like all vowels should be replaced by $
- The second word should be changed like all consonants should be replaced by #
- The third word should be changed like all char should be converted to upper case
- Then concatenate the three words and print them

Other than these concatenated word, no other 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.

You can assume that input of each word will not exceed more than 5 chars

Write Code for this

#include<stdio.h>

#include<stdlib.h>

#include<string.h>

int main()

{

char *str1=malloc(sizeof(char)*256);

char *str2=malloc(sizeof(char)*256);

char *str3=malloc(sizeof(char)*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<p1;i++)

{

if(str1[i]==’a’||str1[i]==’e’||str1[i]==’i’||str1[i]==’o’||str1[i]==’u’)

{

str1[i]=’$’;

}

}

for(int i=0;i<p2;i++)

{

if(str2[i]!=’a’ && str2[i]!=’e’ && str2[i]!=’i’ && str2[i]!=’o’ && str2[i]!=’u’)

{

str2[i]=’#’;

}

}

for(int i=0;i<p3;i++)

{

str3[i]=str3[i]-32;

}

printf(“\n%s”,str1);

printf(“\n%s”,str2);

printf(“\n%s”,str3);

return 0;

}

**Question 6**

Series question t(n)=t(n-1)+t(n-2) for 14th term

Fibbonacci Series

#include<stdio.h>

#include<conio.h>

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<stdio.h>

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));

i++;

}

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**

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 find 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 than the value of nth term no other characters /strings and messages should be written to STDOUT.

For 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 <stdio.h>

int main() {

//code int n;

scanf(“%d”, &n);

if(n == 1)

{

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);

for(i=0;a[i]!=’\0′;i++)

{

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 then output:efxEGCceEa

**Solution not Available as of now- Please add in comments**

Please comment explanations below –

Also you can study other coding questions here –

**Slot 1 Questions Set**

A)3:24 PM

B)3:29 PM

C)3:25 PM

D)3:27 PM

A.)10

b.)15

C.)20

D.)25

A.)453

B.)478

C.)353

D.)375

A.)88

B.)86

C.)66

D.)76

A.)725

B.)1250

C.)500

D.)1000

A.)11

B.)13

C.)10

D.)12

**PROGRAM:**

A.)EXTERN

B.)AUTO

C.)DYNAMIC

D.)REGISTER

**ENGLISH:**

_____G___ AML COVERS___H___ LIMITED ___I___ OF TRANSACTION AND CRIMINAL BEHAVIOURS THEIR ___J____ ARE FAR REACHING.

ANSWER:

**Slot 2 Questions Set**

programming question

Question:

1 1 2 3 4 9 8 27 16 ……… nth term

Find the nth term,

Code:

#include<stdio.h>

Int main()

{

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<f;ctr++)

pow=pow*3;

}

Else

{

for(ctr=0;ctr<f;ctr++)

pow=pow*2;

}

Printf(“%d”,power);

}

Aptitude questions:

b+c+bc=15;

c+a+ca=35;

a+b+c+abc=?

MCQ

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 type of main()__________

3) which of the following is syntax for command line argument?

a) int main(int 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