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

Replies

  • bhargava.megha
    bhargava.megha
    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?
  • bhargava.megha
    bhargava.megha
    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
  • bhargava.megha
    bhargava.megha
    Q
    a) 1284566678
    b)1234566678
    c)1284566878
    d)1284566678
    which is dissimilar among them?explain
  • Sachin Jain
    Sachin Jain
    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.
  • makru921
    makru921
    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?
  • Sachin Jain
    Sachin Jain
    Makru I thought the same
    And ZAP(6)=9
  • Deepika Bansal
    Deepika Bansal
    bhargava.megha
    Q
    a) 1284566678
    b)1234566678
    c)1284566878
    d)1284566678
    which is dissimilar among them?explain
    Ans is (b).
  • Sachin Jain
    Sachin Jain
    Deepika Can you give some explanation.
    As i think there should be some technical reason behind this dissimilar thing.
  • Deepika Bansal
    Deepika Bansal
    BlunderBoy just notice the first three digits of each number:
    a) 1284566678
    b) 1234566678
    c) 1284566878
    d) 1284566678

    So the answer is b.
  • bhargava.megha
    bhargava.megha
    blunderboy
    And ZAP(6)=9
    I think u r right but PLEASE EXPLAIN YOUR ANSWER ,HOW IT IS.......
  • makru921
    makru921
    Deepika Bansal
    BlunderBoy just notice the first three digits of each number:
    a) 1284566678
    b) 1234566678
    c) 1284566878
    d) 1284566678

    So the answer is b.
    Deepika, why can't we look at the last 3 digits of the numbers? In that case the answer would be (C). Right?
  • bhargava.megha
    bhargava.megha
    Q
    n=7623
    {
    temp=n/10;
    result=temp*10+ result;
    n=n/10
    }
    Give your answer with explanation
  • Deepika Bansal
    Deepika Bansal
    @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.
  • bhargava.megha
    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 %
    Give your answer with EXPLANATION...........
  • bhargava.megha
    bhargava.megha
    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?
  • bhargava.megha
    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
  • Sachin Jain
    Sachin Jain
    @ Deepika
    Thanks for your answer
    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 πŸ˜”
  • Sachin Jain
    Sachin Jain
    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 %
    Give your answer with EXPLANATION...........
    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
    So answer will be 0.44

    correct me if i am wrong
  • Sachin Jain
    Sachin Jain
    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
  • Deepika Bansal
    Deepika Bansal
    blunderboy
    @ Deepika
    Thanks for your answer
    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πŸ˜’).
  • Sachin Jain
    Sachin Jain
    bhargava.megha
    I think u r right but PLEASE EXPLAIN YOUR ANSWER ,HOW IT IS.......
    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.
  • Sachin Jain
    Sachin Jain
    But if we have to calculate F(100) then obviously you have to make characteristic equation and then F(100).
  • shreyasm89
    shreyasm89
    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
    So answer will be 0.44

    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.
  • Sachin Jain
    Sachin Jain
    @ 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.
  • bhargava.megha
    bhargava.megha
    Q What does the following program print?

    #include
    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;
    }
  • bhargava.megha
    bhargava.megha
    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
  • bhargava.megha
    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?
  • fxg
    fxg
    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.
  • Kaustubh Katdare
    Kaustubh Katdare
    "Web browsing" is not an application. It's an activity, isn't it?
  • bhargava.megha
    bhargava.megha
    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 .....!!!!!!!!!!
  • fxg
    fxg
    browsing is an activity and browser is an application...
  • fxg
    fxg
    bhargava.megha
    please define how it is .....!!!!!!!!!!
    check this - Permutations, given a set of repeated digits (Page 1) / Help Me ! / Math Is Fun Forum
    -exactly what you want to know.
  • Sumit Chand
    Sumit Chand
    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
  • Sumit Chand
    Sumit Chand
    Q 3.Who invented Input device MOUSE?

    ans. Douglas Engelbart in 1963
  • Tejashree Katdare
    Tejashree Katdare
    Sumit Chand
    Q 3.Who invented Input device MOUSE?

    ans. Douglas Engelbart in 1963
    That's not an analytical question.
  • Sumit Chand
    Sumit Chand
    jst replied to the answer .....nt thinking of type of question,,πŸ˜‰
  • bhargava.megha
    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......
  • Sumit Chand
    Sumit Chand
    😎 3/8
  • Sumit Chand
    Sumit Chand
    could you tell gve me a way without downoading any s/w 2 hack facebook account..... send your summary to #-Link-Snipped-#
  • bhargava.megha
    bhargava.megha
    Q
    what is its prefix expression......solve it!!!!!
    ((2+3) * 4 + 5 * (6 + 7) * 8) + 9
  • bhargava.megha
    bhargava.megha
    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!!!!!!
  • Sumit Chand
    Sumit Chand
    is it 549? if nt pls gve the ans and hw ?
  • Sumit Chand
    Sumit Chand
    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
  • dhruvil thaker
    dhruvil thaker
    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
  • nareshkumar6539
    nareshkumar6539
    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

You are reading an archived discussion.

Related Posts

hello friends, I have some problem in controlling sound in my music player i used floatcontrol in order to control the volume check this. FloatControl volume = (FloatControl) c.getControl(FloatControl.Type.MASTER_GAIN); volume.setValue(-20.63f);...
CEans ... Dr. Ashok Agarwal graduated from BITS Pilani and later went to do Ph.D from the University of Minnesota. His experience includes working with Bell Telephone Labs and then...
Discuss the official announcement about our exclusive small talk with Mr. Ashok Agrwal, the chairman of engineers without borders: https://www.crazyengineers.com/forum...chairman-engineers-without-borders-india.html in this thread πŸ˜€
CEans, Here's our official Happy New Year Greetings Thread. Convey your wishes to all our engineers throughout the world here. 😁* HaPPy New Year To All Crazy Engineers * 😁...
Hi Friends, could anyone help me to get a circuit which would function as a battery level indicator for 12 volt lead acid battery. The circuit should indicate when the...