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

Monday, 10 June 2019

Tricky Interview#6

Question:

WAC PROGRAM THAT GIVES THE SIZE OF STRING WITHOUT USING ANY FUNCTION(PRE DEFINED OR USER DEFINED), NO LOOPS AND NO RECURSION.

Solution:

#include<stdio.h>
void main()
{
int a[100],n;
printf("Enter the String\n");
scanf("%s",a);
n=printf("%s\n",a);
printf("%d",n-1);
}

Tricky Interview#5

Question:
How would you write a C program to print 1 to 100 without loop, recursion, or goto?

Solution:

#include<stdio.h>

void hundred() { static int i=1; printf("%d\n",i++); }

void  twenty(){ hundred(),hundred(),hundred(),hundred(),hundred(); }

void four() { twenty(),twenty(),twenty(),twenty(),twenty(); }

int main()
{
    four(),four(),four(),four();

}

Puzzle #3

Question:

12, X, 144, 441…….


 Find X?


Aptitude Hack#107(10-6-19)

Question:

If there are 51 rupees consisting of coins of 1 rupee, 50 paise, and 25 paise. Number
of 50 paise coin is double that of number of 1 rupee coin and four times that of 25
paise, and then what is the number of 50 paise coins in the collection.

(A)48
(B)51
(C)12
(D)24



Sunday, 9 June 2019

Aptitude Hack#106(9-6-19)

Question:

Mr. Das decided to walk down the escalator of a mall. He found that if he walks down
26 steps, he requires 30seconds to reach the bottom. However, if he steps down 34
stair He would only require 18 seconds to get to the bottom. If the time is measured
from the moment the top step begins to descend to the time he steps off the last step
at the bottom, find out the height of the stairway insteps?

(A)46
(B)35
(C) 56
(D)55

Saturday, 8 June 2019

Aptitude Hack#105(8-6-19)

Question:

In a family 7 children don't eat spinach, 6 don't eat the carrot, 5 don't eat beans, 4 don't eat spinach & carrots, 3 don't eat carrot & beans, 2 don't eat beans & spinach. One doesn't eat all 3. 
Find the no. of children.

(A)19
(B)9
(C)10
(D)11

Friday, 7 June 2019

Aptitude Hack#104(7-6-19)

Question:

The difference between simple and compound interests compounded annually on a certain sum of money for 2 years at 4% per annum is Re. 1.
 The sum (in Rs.) is:

A. 625
B. 630
C. 640
D. 650