• bhargava.megha

MemberDec 31, 2010

## Analytical Q asked in company

Q 1.
A man driving a car then see his spedometer the number is palindrome . the number is 13931 km.
after driving for 2hr then he see the another palindrome number .find the speed of the car?

Q 2.
main()
{
int a=20,b=10,c=7,x;
x=a<(b
printf(“%d”,x);
}
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
• MemberDec 31, 2010

Q 3.
Who invented Input device MOUSE?
Q 4.
What are the origins of the Internet?
Q 5.
Write a C program such that after execution it will delete itself. And you cannot find the file in the directory listings?
Are you sure? This action cannot be undone.
• MemberDec 31, 2010

C program code

int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 9 [c] 6 [d] 12 [e] 15
Are you sure? This action cannot be undone.
• MemberDec 31, 2010

Q
a) 1284566678
b)1234566678
c)1284566878
d)1284566678
which is dissimilar among them?explain
Are you sure? This action cannot be undone.
• MemberDec 31, 2010

C Code which deletes itself after its execution
Q
a) 1284566678
b)1234566678
c)1284566878
d)1284566678
which is dissimilar among them?explain
Megha Can you please give me their solution.
Are you sure? This action cannot be undone.
• MemberJan 1, 2011

bhargava.megha
Q 1.
A man driving a car then see his spedometer the number is palindrome . the number is 13931 km.
after driving for 2hr then he see the another palindrome number .find the speed of the car?

Q 2.
main()
{
int a=20,b=10,c=7,x;
x=a<(b
printf(“%d”,x);
}
1. I think the next palindrome should be 14041. So speed of car becomes 55 km/h. Correct?
Are you sure? This action cannot be undone.
• MemberJan 1, 2011

Makru I thought the same
And ZAP(6)=9
Are you sure? This action cannot be undone.
• MemberJan 1, 2011

bhargava.megha
Q
a) 1284566678
b)1234566678
c)1284566878
d)1284566678
which is dissimilar among them?explain
Ans is (b).
Are you sure? This action cannot be undone.
• MemberJan 1, 2011

Deepika Can you give some explanation.
As i think there should be some technical reason behind this dissimilar thing.
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

BlunderBoy just notice the first three digits of each number:
a) 1284566678
b) 1234566678
c) 1284566878
d) 1284566678

Are you sure? This action cannot be undone.
• MemberJan 2, 2011

blunderboy
And ZAP(6)=9
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

Deepika Bansal
BlunderBoy just notice the first three digits of each number:
a) 1284566678
b) 1234566678
c) 1284566878
d) 1284566678

Deepika, why can't we look at the last 3 digits of the numbers? In that case the answer would be (C). Right?
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

Q
n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

@makru: oh ya.... You are right. I didn't noticed that.
But I think these type of questions are solved like this only. I did it that way only.
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

Q
A speaks truth 70 % of the times, B speaks truth 80% of the times.
What is the probability that both are contradicting each other is ?
here "%" is %
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

Q
X,Yand Z are senior engineers. A,B,C,D are junior engineers. Company wants to select 4 enginers. Two will be senior and two will be juniors. The company wants these engineers to work in the most productive way so they respect each person's likes/dislikes.
Y is not friends with A
Z is not friends with C
B is not friends with A
If B is selected then who will be the remaining 4 members ?
If C is selected, Z and ___ cannot be selected?
D is always selected if ___ is selected?
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

Q
If the letters of the word "rachit" are arranged in all possible ways and these words are written
out as in a dictionary, what is the rank of the word "rachit".
(a) 485
(b) 480
(c) 478
(d) 481
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

@ Deepika
But i do not know why i can't find satisfaction by this answer.
We can also say the option should be C as the last three digits are different in that.

a) 1284566678
b) 1234566678
c) 1284566878
d) 1284566678

Hey sorry Guys i did not see Makru has already pointed out this thing.
Sorry 😔
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

bhargava.megha
Q
A speaks truth 70 % of the times, B speaks truth 80% of the times.
What is the probability that both are contradicting each other is ?
here "%" is %
Solution
Prob of A speaking truth : 0.7
Prob of A speaking lie : 0.3

Prob of B speaking truth : 0.8
Prob of B speaking lie : 0.2

So Prob of contradicting each other : 1 - (They will agree to same answer)
=> 1 - (0.7*0.8)
1-0.56

correct me if i am wrong
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

bhargava.megha
Q
If the letters of the word "rachit" are arranged in all possible ways and these words are written
out as in a dictionary, what is the rank of the word "rachit".
(a) 485
(b) 480
(c) 478
(d) 481
Answer to this will be 481
Solution :-
a _ _ _ _ _ = Total words 120
c _ _ _ _ _ = Total words 120
h _ _ _ _ _ = Total words 120
i _ _ _ _ _ = Total words 120
So now letters in dictionary will start from r
first word starting with r will be rachit.
So rank is 481
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

blunderboy
@ Deepika
But i do not know why i can't find satisfaction by this answer.
We can also say the option should be C as the last three digits are different in that.

a) 1284566678
b) 1234566678
c) 1284566878
d) 1284566678

Hey sorry Guys i did not see Makru has already pointed out this thing.
Sorry 😔
Yes BB. I too didn't realized this earlier before makru made me do so.. May be there is a typing error (just a guess😒).
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

bhargava.megha
Given that : F(1)=1 ,F(0)=1, F(-1)=1, F(-2)=1
Now,F(n)=F(n-3)+F(n-1)
You can solve this by using making characteristic equation, then solving it.
Since in this question , i just need to calculate F(6) so i did some manual calculation as:-
F(1)=1
F(2)=1 + 1 =2
F(3)=1 + 2 =3
F(4)=1 + 3 =4
F(5)=2 + 4 =6
F(6)=3 + 6 =9

Thats how i got it.
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

But if we have to calculate F(100) then obviously you have to make characteristic equation and then F(100).
Are you sure? This action cannot be undone.
• MemberJan 2, 2011

blunderboy
Solution
Prob of A speaking truth : 0.7
Prob of A speaking lie : 0.3

Prob of B speaking truth : 0.8
Prob of B speaking lie : 0.2

So Prob of contradicting each other : 1 - (They will agree to same answer)
=> 1 - (0.7*0.8)
1-0.56

correct me if i am wrong
I think we should also consider the fact that they can also lie at the same time. Buddy you haven't considered that. Probability of (A'^B) & (A^B') should be considered, so ans. will be P(A'^B)+P(A^B') which comes to 0.38 by considering independent events. i.e. they contradict 38% of the times.
Are you sure? This action cannot be undone.
• MemberJan 3, 2011

@ Shreya
Take this example..
What day is today ? { Suppose today is friday }
Prob of saying A friday is 0.7
Porb of B saying friday is 0.8

But if they both say false ,
A: tuesday
B: wednesday

They are both lying still they are both contradicting each other.
So i think we should subtract from 1 the prob when they same say truth.

PS: I know next comment will be.
You will say that when they both lie still they can say the same day.
Well then it depends on question for what they will be answering.
Are you sure? This action cannot be undone.
• MemberJan 6, 2011

Q What does the following program print?

#include <stdio.h>
void f (int *p, int *q)
{
P= q;
*p =2;
}
int i=0, j=1;
int main ( )
{
f(&i, & j);
print f ("%d%d \ n", i, j) ;
return 0;
}
Are you sure? This action cannot be undone.
• MemberJan 6, 2011

Q
A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some
order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?
(A) 196 (B) 192 (C) 197 (D) 195

Q What is the probability that divisor of 1099 is a multiple of 1096?
(A) 1/625 (B) 4/625 (C) 12/625 (D) 16/625
Are you sure? This action cannot be undone.
• MemberJan 6, 2011

Q
Given digits 2,2,3,3,4,4,4,4 how many distinct 4 digit numbers greater than 3000 can be formed?
(A) 50 (B) 51 (C) 52 (D) 54

Q Which one of the following is not a client server application?
(A) Internet chat (B) Web browsing (C) E-mail (D) Ping

Q what is cyclomatic complexity?
Are you sure? This action cannot be undone.
• MemberJan 10, 2011

bhargava.megha
Q
Given digits 2,2,3,3,4,4,4,4 how many distinct 4 digit numbers greater than 3000 can be formed?
(A) 50 (B) 51 (C) 52 (D) 54

Q Which one of the following is not a client server application?
(A) Internet chat (B) Web browsing (C) E-mail (D) Ping

Q what is cyclomatic complexity?
No. of distinct numbers formed with 4 digits is 44. So all options are wrong.
The most direct way is to use exponential generating function.

May be ping is the answer for the second Q.
Are you sure? This action cannot be undone.

"Web browsing" is not an application. It's an activity, isn't it?
Are you sure? This action cannot be undone.
• MemberJan 12, 2011

fxg
No. of distinct numbers formed with 4 digits is 44. So all options are wrong.
The most direct way is to use exponential generating function.
please define how it is .....!!!!!!!!!!
Are you sure? This action cannot be undone.
• MemberJan 13, 2011

browsing is an activity and browser is an application...
Are you sure? This action cannot be undone.
• MemberJan 13, 2011

bhargava.megha
please define how it is .....!!!!!!!!!!
check this - <a href="https://www.mathisfunforum.com/viewtopic.php?id=14910" target="_blank" rel="nofollow noopener noreferrer">Permutations, given a set of repeated digits (Page 1) / Help Me ! / Math Is Fun Forum</a>
-exactly what you want to know.
Are you sure? This action cannot be undone.
• MemberJan 21, 2011

Write a C program such that after execution it will delete itself. And you cannot find the file in the directory listings?
ans.at the end of the program jst include...........system.exit(0) or system() which will take the flow of control to the execution side
Are you sure? This action cannot be undone.
• MemberJan 21, 2011

Q 3.Who invented Input device MOUSE?

ans. Douglas Engelbart in 1963
Are you sure? This action cannot be undone.
• MemberJan 21, 2011

Sumit Chand
Q 3.Who invented Input device MOUSE?

ans. Douglas Engelbart in 1963
That's not an analytical question.
Are you sure? This action cannot be undone.
• MemberJan 21, 2011

jst replied to the answer .....nt thinking of type of question,,😉
Are you sure? This action cannot be undone.
• MemberJan 22, 2011

Q
consider a square ABCD, in which E is the mid-point of BC & F is that of CD. Now find the ratio of area of triangle AEF to the area of square ABCD?
please give ur answe with explanation!!!!
gud luck......
Are you sure? This action cannot be undone.
• MemberJan 22, 2011

😎 3/8
Are you sure? This action cannot be undone.
• MemberJan 23, 2011

Are you sure? This action cannot be undone.
• MemberJan 25, 2011

Q
what is its prefix expression......solve it!!!!!
((2+3) * 4 + 5 * (6 + 7) * 8) + 9
Are you sure? This action cannot be undone.
• MemberJan 25, 2011

Q If there are 1024 * 1280 pixels on a screen and each pixel can hav around 16 million colors .Find the memory required for this??????
define with explanation!!!!!!
Are you sure? This action cannot be undone.
• MemberJan 25, 2011

is it 549? if nt pls gve the ans and hw ?
Are you sure? This action cannot be undone.
• MemberJan 25, 2011

in case if i m wrong pls correct me! thnk there are 16 million colors implies 2^24, also 24-bits means 3bytes.Thus answer for 1024*1280*3 = 4MB
Are you sure? This action cannot be undone.
• MemberApr 16, 2012

bhargava.megha
Q
consider a square ABCD, in which E is the mid-point of BC & F is that of CD. Now find the ratio of area of triangle AEF to the area of square ABCD?
please give ur answe with explanation!!!!
gud luck......
it will be 1/8...
bcoz...
take 1 sqaure...divide it in four part.....
now divide each part in half diagonally....means each part will have two triangle......
so for 1 triangle it will be 1/8
Are you sure? This action cannot be undone.
• MemberApr 30, 2012

bhargava.megha
Q
what is its prefix expression......solve it!!!!!
((2+3) * 4 + 5 * (6 + 7) * 8) + 9
Prefix Expression: ++*+234**5+6789
((2+3) * 4 + 5 * (6 + 7) * 8) + 9=549
Are you sure? This action cannot be undone.