Test1

Email
Every day, Jack arrives at the train station from work at 5 pm. His wife leaves home in her car to meet him there at exactly 5 pm, and drives him home. One day, Jack gets to the station an hour early, and starts walking home, until his wife meets him on the road. They get home 30 minutes earlier than usual. How long was he walking? Distances are unspecified. Speeds are unspecified, but constant. Give a number which represents the answer in minutes.
30
15
45
60
What is the missing letter in this series: c c d ? E f g g h
B
C
Asdasd
E
There are 4 octopuses that have either 6, 7 or 8 legs. The ones with 7 legs always lie, while the ones with 6 or 8 legs always say the truth.
The blue one says: “Altogether we have 28 legs”;
the green one says: “Altogether we have 27 legs”;
the yellow one says: “Altogether we have 26 legs”;
the red one says: “Altogether we have 25 legs”.
 
What is the colour of the octopus that says the truth?
The blue one
The green one
The yellow one
The red one
A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
150 m
180 m
540 m
60 m
What will be the output of the program?

What will be the output of the program?

#include<stdio.h>

int I;

int fun();

 

int main()

{

    while(i)

    {

        fun();

        main();

    }

    printf("Hello\n");

    return 0;

}

int fun()

{

    printf("Hi");

}

Hello
Hi Hello
No output
Infinite loop
What will be the output of the program? 

7 What will be the output of the program?

#include<stdio.h>

int sumdig(int);

int main()

{

    int a, b;

    a = sumdig(123);

    b = sumdig(123);

    printf("%d, %d\n", a, b);

    return 0;

}

int sumdig(int n)

{

    int s, d;

    if(n!=0)

    {

        d = n%10;

        n = n/10;

        s = d+sumdig(n);

    }

    else

        return 0;

    return s;

}

4, 4
3, 3
6, 6
12, 12
{"name":"Test1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"1, 2, 3","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker