C+ And Aptitude Exam! Trivia Quiz

24 Questions | Total Attempts: 4276

SettingsSettingsSettings
C+ And Aptitude Exam! Trivia Quiz - Quiz

.


Questions and Answers
  • 1. 
    A running man crosses a bridge of length 500 meters in 4 minutes. At what speed he is running?
    • A. 

      7.5 m/sec

    • B. 

      8.5 m/sec

    • C. 

      7 m/sec

    • D. 

      9 m/sec

  • 2. 
    What is the area of a triangle with base 5 meters and height 10 meters?
    • A. 

      25

    • B. 

      35

    • C. 

      40

    • D. 

      45

  • 3. 
    A mother is twice as old as her son. If 20 years ago, the age of the mother was 10 times the age of the son, what is the present age of the mother?
    • A. 

      38

    • B. 

      45

    • C. 

      40

    • D. 

      42

  • 4. 
    If January 1, 1996, was Monday, what day of the week was January 1, 1997?
    • A. 

      SUNDAY

    • B. 

      WEDNESDAY

    • C. 

      FRIDAY

    • D. 

      MONDAY

  • 5. 
    The speed of a boat in still water is 5km/hr. If the speed of the boat against the stream is 3 km/hr, what is the speed of the stream?
    • A. 

      2 km/hr

    • B. 

      1 km/hr

    • C. 

      4 km/hr

    • D. 

      8 km/hr

  • 6. 
    How many times the hands of a clock coincide in a day?
    • A. 

      22

    • B. 

      21

    • C. 

      20

    • D. 

      24

  • 7. 
    40 % of 280 =?
    • A. 

      112

    • B. 

      115

    • C. 

      119

    • D. 

      124

  • 8. 
    A pipe can fill a tank in 6 hours and another pipe can empty the tank in 12 hours. If both the pipes are opened at the same time, the tank can be filled in
    • A. 

      10 hours

    • B. 

      12 hours

    • C. 

      20 hours

    • D. 

      15 hours

  • 9. 
    A shopkeeper sold an article for Rs. 2500. If the cost price of the article is 2000, find the profit percent.
    • A. 

      25%

    • B. 

      20%

    • C. 

      45%

    • D. 

      30%

  • 10. 
    A: B: C is in the ratio of 3: 2: 5. How much money will C get out of Rs 1260?
    • A. 

      112

    • B. 

      121

    • C. 

      1121

    • D. 

      None of the above

  • 11. 
    What is the probability of getting an even number when a dice is rolled?
    • A. 

      0.5

    • B. 

      0.45

    • C. 

      0.75

    • D. 

      1

  • 12. 
    Find the missing term of the given expression: 18.834 + 818.34 -? = 618.43
    • A. 

      218.744

    • B. 

      318.454

    • C. 

      245.254

    • D. 

      218.748

  • 13. 
    Complete the series 2, 5, 9, 19, 37.......
    • A. 

      75

    • B. 

      78

    • C. 

      80

    • D. 

      77

  • 14. 
    Which of the following is not a valid variable name declaration?
    • A. 

      #define PI 3.14

    • B. 

      Int PI 3.14

    • C. 

      Char PI 3.14

    • D. 

      Float PI 3.14

  • 15. 
    Which of the following cannot be a variable name in C?
    • A. 

      Volatile

    • B. 

      True

    • C. 

      Export

    • D. 

      Fiend

  • 16. 
    Consider the following declaration of a ‘two-dimensional array in C: char a[100][100]; Run on IDE Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 0, the address of a[40][50] is
    • A. 

      4040

    • B. 

      4050

    • C. 

      5050

    • D. 

      5040

  • 17. 
    Let x be an integer which can take a value of 0 or 1. The statement if(x = =0) x = 1; else x = 0; is equivalent to which one of the following?
    • A. 

      X=1-x

    • B. 

      X++

    • C. 

      X--

    • D. 

      X=1/x

  • 18. 
    Suppose a C program has floating constant 1.414, what's the best way to convert this as "float" data type?
    • A. 

      Float (1.414)

    • B. 

      (float)4.14

    • C. 

      Float (1.414)

    • D. 

      All of the above

  • 19. 
    Who was the founder of C?
    • A. 

      Dennis ritchie

    • B. 

      Bjarne Stroustrup

    • C. 

      Guido Van Rossum

    • D. 

      Sun Microsystems

  • 20. 
    Who was the founder of C++?
    • A. 

      Bjarne Stroustrup

    • B. 

      Dennis ritchie

    • C. 

      Guido Van Rossum

    • D. 

      Sun Microsystems

  • 21. 
    Who was the founder of python?
    • A. 

      Guido Van Rossum

    • B. 

      Bjarne Stroustrup

    • C. 

      Dennis ritchie

    • D. 

      Sun Microsystems

  • 22. 
    Who was the founder of java?
    • A. 

      Sun Microsystems

    • B. 

      Dennis ritchie

    • C. 

      Bjarne Stroustrup

    • D. 

      Guido Van Rossum

  • 23. 
    Which of the following operator can be used to access value at address stored in a pointer variable?
    • A. 

      *

    • B. 

      #

    • C. 

      %

    • D. 

      &

  • 24. 
    To print a double value which format specifier can be used?
    • A. 

      %lf

    • B. 

      %d

    • C. 

      %llf

    • D. 

      %f

Back to Top Back to top