C+ And Aptitude Exam! Trivia Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Vinayvyasking
V
Vinayvyasking
Community Contributor
Quizzes Created: 1 | Total Attempts: 4,321
Questions: 24 | Attempts: 4,321

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

    Correct Answer
    A. 7.5 m/sec
    Explanation
    The man crosses a bridge of length 500 meters in 4 minutes. To find his speed, we need to divide the distance by the time. Converting 4 minutes to seconds (4 minutes * 60 seconds/minute), we get a total time of 240 seconds. Dividing the distance of 500 meters by the time of 240 seconds, we find that the man is running at a speed of 2.08 meters/second. Rounding to the nearest tenth, we get the answer of 2.1 meters/second, which is equivalent to 7.5 m/sec.

    Rate this question:

  • 2. 

    What is the area of a triangle with base 5 meters and height 10 meters?

    • A.

      25

    • B.

      35

    • C.

      40

    • D.

      45

    Correct Answer
    A. 25
    Explanation
    The area of a triangle is calculated by multiplying the base by the height and dividing the result by 2. In this case, the base is 5 meters and the height is 10 meters. When we plug these values into the formula, we get (5 * 10) / 2 = 25. Therefore, the area of the triangle is 25 square meters.

    Rate this question:

  • 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

    Correct Answer
    B. 45
    Explanation
    Let's assume the present age of the son is x. According to the given information, the mother is twice as old as her son, so her present age is 2x. 20 years ago, the age of the mother was 10 times the age of the son, which can be written as (2x - 20) = 10(x - 20). Solving this equation, we get x = 10. Therefore, the present age of the mother is 2x = 2(10) = 20.

    Rate this question:

  • 4. 

    If January 1, 1996, was Monday, what day of the week was January 1, 1997?

    • A.

      SUNDAY

    • B.

      WEDNESDAY

    • C.

      FRIDAY

    • D.

      MONDAY

    Correct Answer
    B. WEDNESDAY
    Explanation
    January 1, 1996, was a Monday. In a non-leap year, there are 365 days. Since 365 is not divisible by 7, the same date in the following year will be one day ahead. Therefore, January 1, 1997, will be a Tuesday. However, since the options provided do not include Tuesday, the closest day is Wednesday. Therefore, the correct answer is Wednesday.

    Rate this question:

  • 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

    Correct Answer
    A. 2 km/hr
    Explanation
    The speed of a boat in still water is the average speed of the boat when there is no current or stream. In this case, the boat's speed in still water is given as 5 km/hr. The speed of the boat against the stream is the boat's speed relative to the stream when it is moving in the opposite direction. Here, the boat's speed against the stream is given as 3 km/hr. The difference between the boat's speed in still water and its speed against the stream gives the speed of the stream. Therefore, the speed of the stream is 5 km/hr - 3 km/hr = 2 km/hr.

    Rate this question:

  • 6. 

    How many times the hands of a clock coincide in a day?

    • A.

      22

    • B.

      21

    • C.

      20

    • D.

      24

    Correct Answer
    A. 22
    Explanation
    The hands of a clock coincide 11 times in a 12-hour period. Since there are two 12-hour periods in a day, the hands of a clock will coincide 22 times in a day.

    Rate this question:

  • 7. 

    40 % of 280 =?

    • A.

      112

    • B.

      115

    • C.

      119

    • D.

      124

    Correct Answer
    A. 112
    Explanation
    The question asks for 40% of 280. To find this, we can multiply 280 by 0.40 (which is the decimal equivalent of 40%). When we do this calculation, we get the answer of 112. Therefore, the correct answer is 112.

    Rate this question:

  • 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

    Correct Answer
    B. 12 hours
    Explanation
    When the first pipe is opened, it fills 1/6 of the tank per hour. When the second pipe is opened, it empties 1/12 of the tank per hour. To find the combined rate at which the tank is filled, we subtract the emptying rate from the filling rate: 1/6 - 1/12 = 1/12. Therefore, the tank is filled at a rate of 1/12 of the tank per hour when both pipes are opened. To find the time it takes to fill the tank completely, we divide the tank's capacity by the filling rate: 1 / (1/12) = 12 hours.

    Rate this question:

  • 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%

    Correct Answer
    A. 25%
    Explanation
    The profit percentage can be calculated by subtracting the cost price from the selling price and then dividing it by the cost price, and finally multiplying by 100. In this case, the profit is Rs. 2500 - Rs. 2000 = Rs. 500. Dividing this by the cost price of Rs. 2000 gives us 500/2000 = 0.25. Multiplying this by 100 gives us 25%. Therefore, the profit percentage is 25%.

    Rate this question:

  • 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

    Correct Answer
    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

    Correct Answer
    A. 0.5
    Explanation
    The probability of getting an even number when a dice is rolled is 0.5 because there are 3 even numbers (2, 4, and 6) out of a total of 6 possible outcomes (1, 2, 3, 4, 5, and 6). Therefore, the probability is calculated by dividing the number of favorable outcomes (3) by the total number of possible outcomes (6), resulting in 0.5.

    Rate this question:

  • 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

    Correct Answer
    A. 218.744
    Explanation
    The missing term can be found by subtracting the sum of the first two terms from the given total. Therefore, 18.834 + 818.34 - 618.43 = 218.744.

    Rate this question:

  • 13. 

    Complete the series 2, 5, 9, 19, 37.......

    • A.

      75

    • B.

      78

    • C.

      80

    • D.

      77

    Correct Answer
    A. 75
    Explanation
    The series follows a pattern where each number is obtained by multiplying the previous number by 2 and then adding 1. Starting with 2, the next number is obtained by (2 * 2) + 1 = 5. Similarly, 5 * 2 + 1 = 11, 11 * 2 + 1 = 23, and so on. Therefore, the next number in the series is (37 * 2) + 1 = 75.

    Rate this question:

  • 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

    Correct Answer
    A. #define PI 3.14
    Explanation
    The given answer "#define PI 3.14" is not a valid variable name declaration because it uses the preprocessor directive "#define" to define a constant value for PI. It is not declaring a variable, but rather creating a macro that will be replaced with the value 3.14 throughout the code. Variable name declarations typically involve specifying the data type followed by the variable name, such as "int PI" or "float PI".

    Rate this question:

  • 15. 

    Which of the following cannot be a variable name in C?

    • A.

      Volatile

    • B.

      True

    • C.

      Export

    • D.

      Fiend

    Correct Answer
    A. Volatile
    Explanation
    In C programming, "volatile" is a keyword that is used to indicate that a variable's value can be modified by external sources, so it cannot be used as a variable name. "true" and "export" are also not allowed as variable names in C because they are reserved keywords. However, "fiend" can be used as a variable name in C, so it is not the correct answer.

    Rate this question:

  • 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

    Correct Answer
    B. 4050
    Explanation
    The given declaration of a two-dimensional array in C, char a[100][100], means that the array has 100 rows and 100 columns. Each element in the array is of type char, which typically occupies 1 byte of memory. Since the main memory is byte-addressable and the array is stored starting from memory address 0, the address of a[40][50] can be calculated as follows:

    Each row in the array occupies 100 bytes (100 columns * 1 byte per element). So, the first element of the 41st row (a[40][0]) would be at memory address 40 * 100 = 4000. Adding 50 to this address gives us the address of a[40][50], which is 4050.

    Rate this question:

  • 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

    Correct Answer
    A. X=1-x
    Explanation
    The given statement if(x == 0) x = 1; else x = 0; is equivalent to x = 1 - x. This is because if x is equal to 0, then the statement x = 1; is executed, which assigns the value 1 to x. If x is not equal to 0, then the statement x = 0; is executed, which assigns the value 0 to x. In both cases, the value of x is being flipped or inverted, which is equivalent to x = 1 - x.

    Rate this question:

  • 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

    Correct Answer
    A. Float (1.414)
    Explanation
    The best way to convert the floating constant 1.414 to the "float" data type in a C program is by using the syntax "float (1.414)". This syntax explicitly casts the constant as a float, ensuring that it is treated as a floating-point value by the compiler. The other options, "(float)4.14" and "float (1.414)", either have incorrect syntax or do not accurately represent the value 1.414. Therefore, the correct answer is "float (1.414)".

    Rate this question:

  • 19. 

    Who was the founder of C?

    • A.

      Dennis ritchie

    • B.

      Bjarne Stroustrup

    • C.

      Guido Van Rossum

    • D.

      Sun Microsystems

    Correct Answer
    A. Dennis ritchie
    Explanation
    Dennis Ritchie is the correct answer because he is widely recognized as the founder of the C programming language. He developed C at Bell Labs in the 1970s and played a crucial role in its design and implementation. C has since become one of the most influential and widely used programming languages, serving as the foundation for many other languages and operating systems. Ritchie's contributions to the field of computer science, particularly with the creation of C, have had a lasting impact on the industry.

    Rate this question:

  • 20. 

    Who was the founder of C++?

    • A.

      Bjarne Stroustrup

    • B.

      Dennis ritchie

    • C.

      Guido Van Rossum

    • D.

      Sun Microsystems

    Correct Answer
    A. Bjarne Stroustrup
    Explanation
    Bjarne Stroustrup is the correct answer because he is widely recognized as the founder of C++. He developed the programming language in the early 1980s as an extension of the C programming language. Stroustrup's intention was to create a language that would support object-oriented programming while maintaining compatibility with C. His work on C++ has had a significant impact on the field of computer science and programming, making him a well-known figure in the industry.

    Rate this question:

  • 21. 

    Who was the founder of python?

    • A.

      Guido Van Rossum

    • B.

      Bjarne Stroustrup

    • C.

      Dennis ritchie

    • D.

      Sun Microsystems

    Correct Answer
    A. Guido Van Rossum
    Explanation
    Guido Van Rossum is the correct answer for the founder of Python. He created the Python programming language in the late 1980s and released the first version in 1991. Guido Van Rossum's creation of Python was influenced by his desire for a language that was easy to read and write, with a focus on simplicity and code readability. Python has since become one of the most popular and widely used programming languages in the world.

    Rate this question:

  • 22. 

    Who was the founder of java?

    • A.

      Sun Microsystems

    • B.

      Dennis ritchie

    • C.

      Bjarne Stroustrup

    • D.

      Guido Van Rossum

    Correct Answer
    A. Sun Microsystems
    Explanation
    Sun Microsystems is the correct answer because it was the company that developed and released the Java programming language in 1995. Although individuals like James Gosling played a significant role in the creation of Java, the company as a whole is credited as the founder because it provided the resources and platform for the language's development. Sun Microsystems was later acquired by Oracle Corporation, which now maintains and supports Java.

    Rate this question:

  • 23. 

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

    • A.

      *

    • B.

      #

    • C.

      %

    • D.

      &

    Correct Answer
    A. *
    Explanation
    The "*" operator, also known as the dereference operator, is used to access the value at the address stored in a pointer variable. It allows us to retrieve the value that the pointer is pointing to.

    Rate this question:

  • 24. 

    To print a double value which format specifier can be used?

    • A.

      %lf

    • B.

      %d

    • C.

      %llf

    • D.

      %f

    Correct Answer
    A. %lf
    Explanation
    The correct format specifier to print a double value is "%lf". This specifier is used in C programming language to indicate that the argument being passed is a double data type.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 17, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 26, 2020
    Quiz Created by
    Vinayvyasking
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.