Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Friday, 31 May 2019

Recursion in C

Recursion is the process which comes into existence when a function calls a copy of itself to work on a smaller problem. Any function which calls itself is called the recursive function, and such function calls are called recursive calls. Recursion involves several numbers...

Aptitude Hack#97(31-5-19)

Question: Mr.Jones gave 40% of the money he had to his wife. He also gave 20% of the remaining amount to his 3 sons. Half of the amount now left was spent on miscellaneous items and the remaining amount of Rs.12000 was deposited in the bank. How much money did Mr.jones have...

Thursday, 30 May 2019

Operator precedence chart

The below table describes the precedence order and associativity of operators in C. Precedence of the operator decreases from top to bottom. ...

Operators in C:

Operators are the foundation of any programming language. Thus the functionality of the C programming language is incomplete without the use of operators. We can define operators as symbols that help us to perform specific mathematical and logical computations on operands....

Puzzle#2

Question: One of twelve pool balls is a bit lighter or heavier (you do not know) than the others. At least how many times do you have to use an old balance-type pair of scales to identify this ball? (a) 1 (b) 3 (c) 7 (d) 12 ...

Puzzle #2 Solution

Question: One of twelve pool balls is a bit lighter or heavier (you do not know) than the others. At least how many times do you have to use an old balance-type pair of scales to identify this ball? (a) 1 (b) 3 (c) 7 (d) 12 Answer:(b) 3 Explanation:  Let's mark the balls using numbers from 1 to 12 and these special symbols:  x?...

Aptitude Hack#96(30-5-19)

Question: Find the single discount equivalent to a series discount of 20 %, 10%, and 5%    A )   Rs 68.40    B )   Rs 66.40    C )   Rs 65.40    D )   Rs 58.40 ...

Wednesday, 29 May 2019

Aptitude Hack#95(29-5-9)

Question:  Shobha’s mathematics test had 75 problems i.e. 10  arithmetic, 30 algebra, and 35 geometry problems. Although she answered 70% of the arithmetic, 40% of the algebra, and 60% of the geometry problems correctly.  she did not pass the test because...

Tuesday, 28 May 2019

Aptitude Hack#94(28-5-19)

 Question: A room is half as long again as it is broad. The cost of carpeting the at Rs. 5 per sq. m is Rs. 270 and the cost of papering the four walls at Rs. 10 per m2 are Rs. 1720. If a door and 2 windows occupy 8 sq. m, find the dimensions of the room.     A...

Monday, 27 May 2019

Aptitude Hack#93(27-5-19)

Question:  How many spherical bullets can be made out of a lead cylinder 28cm high and with radius 6 cm, each bullet being 1.5 cm in diameter?    A )   1795    B )   1892    C )   1772    D )  ...

Sunday, 26 May 2019

Composite Assignment Operators in C

Arithmetic operators may be combined with the assignment operator to obtain composite assignment operators. An arithmetic operator  is written first followed by the assignment operator but not vice versa.   In all the composite operators there should not be any blank space between the symbols.    For instance, in+=  if...

Aptitude Hack#92(26-5-19)

Question: A third of Arun’s marks in mathematics exceeds half of his marks in English by 80.if he got 240 marks In two subjects together how many marks did he got in English?    A )   70    B )   65    C )   50  ...

Saturday, 25 May 2019

Aptitude Hack#91(25-5-19)

Question: If the manufacturer gains 10%, the wholesale dealer 15% and the retailer 25 %, then find the cost of production of a retail price of which is Rs.1265?    A )   Rs.900    B )   Rs.600    C )   Rs.1000  ...

Friday, 24 May 2019

Aptitude Hack#90(24-5-19)

Question: A man can row 7 ½ kmph in still water.if in a river running at 1.5 km/hr an hour, it takes him 50 minutes to row to a place and back, how far off is the place?    A )   6km    B )   5km    C )   8km  ...

Thursday, 23 May 2019

Aptitude Hack#89(23-5-19)

Question: A Cone, a hemisphere and a cylinder stand on equal bases and have the same height. Find the ratio of their volumes.    A )   2:4:6    B )   1:5:8    C )   1:2:3    D )   1:4:6 ...

The Interview Question Today#91(25-5-19)

Loading....

Wednesday, 22 May 2019

Aptitude Hack#88(22-5-19)

Question:  The difference between the two parallel sides of a trapezium is 4 cm. the perpendicular distance between them is 19 cm. If the area of the trapezium is 475 find the lengths of the parallel sides.    A )   27 cm and 23 cm.    B...

Tuesday, 21 May 2019

Aptitude Hack#52(16-4-19)

Question: If in a certain language, NATURAL is coded as NBTVRBL, how is REPUBLIC coded in that code? A)RFPVBMJD B)RFPVBNID C)RFPVCMID D)RFPVBMID ...

Aptitude Hack#45(9-4-19)

Question: The least number, which when divided by 12, 15, 20 and 54 leaves in each case a remainder of 8 is:           A) 544     B) 548     C) 504     D) 536 ...

Aptitude Hack#87(21-5-19)

Question: A is twice as good a workman as B and together they finish a piece in 18 days. In how many days will A alone finish the work?    A )   25 days    B )   26 days    C )   28 days    D )   27...

Monday, 20 May 2019

Aptitude Hack#86(20-5-19)

Question:  A man is standing on a railway bridge which is 180 m long. He finds that a train crosses the bridge in 20 seconds but himself in 8 seconds. Find the length of the train and its speed?    A )   52 km    B )   53 km  ...

Sunday, 19 May 2019

Aptitude Hack#85(19-5-19)

Question: A crate of mangoes contains one bruised mango for every thirty mangoes in the crate. If three out of every four bruised mango are considerably unsaleable and there are 12 unsaleable mangoes in the crate then how many mangoes is there in the crate?    A ) ...

Saturday, 18 May 2019

Aptitude Hack#84(18-5-19)

Question:  In a caravan, in addition to 50 hens, there are 45 goats and 8 camels with some keepers. If the total number of feet be 224 more than the number of heads, find the number of keepers?   A )   17   B )   16   C ) ...

Friday, 17 May 2019

Aptitude Hack#83(17-5-19)

Question: The ages of two persons differ by 16 years. If 6 years ago, the elder one is 3 times as old as the younger one, find their present ages.    A )   15 years and 31 years    B )   14 years and 30 years       C...

Triplets with a given sum

Question: Write Program to find Triplets with a given sum Solution: ...

Repeating elements in an array

Question: Write Program to find repeating elements in an array  Solution: ...

Count distinct elements of an array

Question: Write a Program to count distinct elements of an array Solution: ...

The numbers of an array be made equal

Question: Write Program to find whether the numbers of an array be made equal? Solution: ...

The maximum scalar product of two vectors

Question: Write Program to find the maximum scalar product of two vectors Solution: ...

Array is a subset of another array or not

Question: Write Program to find whether an array is a subset of another array or not Solution: ...

Arrays are disjoint or not

Question: Write a Program to find whether Arrays are disjoint or not Solution: ...

Maximum product subarray in a given array

Question: Write Program to find maximum product subarray in a given array Solution: ...

Reversing an array

Question: Write Program for Reversing an array Solution: ...

Sorting the elements of an array

Question: Write Program for  Sorting the elements of an array Solution: ...

The second smallest element in an array

Question: Write a Program to find the second smallest element in an array Solution: ...

The sum of positive square elements in an array

Question: Write a Program to find the sum of positive square elements in an array Solution: ...

The minimum scalar product of two vectors

Question: Write Program to find the minimum scalar product of two vectors Solution: ...

Remove duplicate elements in an array

Question: Write Program to remove duplicate elements in an array Solution:  ...

The longest palindrome in an array

Question: Write Program to find the longest palindrome in an array Solution: ...

The sum of elements in an array

Question: Write Program to find the sum of elements in an array Solution: ...

The smallest and largest element in an array

Question: Write Program to find the smallest and largest element in an array Solution: ...

Basic array operations

Question: Write Program for basic array operations (Insert, delete and search an element) Solution: #include<stdio.h> #include<stdlib.h> int a[20],b[20],c[40]; int m,n,p,val,i,j,key,pos,temp; /*Function Prototype*/void create(); void display(); void insert(); void del(); void search(); void merge(); void sort(); int main(){int choice; do{printf("\n\n--------Menu-----------\n"); printf("1.Create\n"); printf("2.Display\n"); printf("3.Insert\n"); printf("4.Delete\n"); printf("5.Search\n"); printf("6.Sort\n"); printf("7.Merge\n"); printf("8.Exit\n"); printf("-----------------------"); printf("\nEnter...