1.
A running man crosses a bridge of length 500 meters in 4 minutes. At what speed he is running?
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.
2.
What is the area of a triangle with base 5 meters and height 10 meters?
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.
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?
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.
4.
If January 1, 1996, was Monday, what day of the week was January 1, 1997?
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.
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?
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.
6.
How many times the hands of a clock coincide in a day?
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.
7.
40 % of 280 =?
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.
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
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.
9.
A shopkeeper sold an article for Rs. 2500. If the cost price of the article is 2000, find the profit percent.
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%.
10.
A: B: C is in the ratio of 3: 2: 5. How much money will C get out of Rs 1260?
Correct Answer
D. None of the above
11.
What is the probability of getting an even number when a dice is rolled?
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.
12.
Find the missing term of the given expression: 18.834 + 818.34 -? = 618.43
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.
13.
Complete the series 2, 5, 9, 19, 37.......
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.
14.
Which of the following is not a valid variable name declaration?
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".
15.
Which of the following cannot be a variable name in C?
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.
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
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.
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?
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.
18.
Suppose a C program has floating constant 1.414, what's the best way to convert this as "float" data type?
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)".
19.
Who was the founder of C?
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.
20.
Who was the founder of C++?
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.
21.
Who was the founder of python?
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.
22.
Who was the founder of java?
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.
23.
Which of the following operator can be used to access value at address stored in a pointer variable?
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.
24.
To print a double value which format specifier can be used?
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.