Mathematics · Quantitative Aptitude
Number Operations and Properties
974 Questions
Improve your quantitative aptitude with these number operations and properties questions. The topics range from basic subtraction and division to highest common factor and roman numerals. Regular practice of these fundamentals builds speed for exams.
Basic arithmetic operationsHCF and number propertiesRoman numeral calculationsNumber series evaluation
Number Operations and Properties Questions
C
Correct answer
Explanation
Evaluating a list literal inside parenthesized syntax in a scalar context triggers the comma operator, which discards all but the last element. Thus, $scalar is assigned 30. Distractors like 10 or 3 assume array size or first-element behavior.
B
Correct answer
Explanation
The prefix increment ++$val changes $val from 26 to 27. The comma operator in scalar context evaluates the left expression, discards it, and returns the evaluation of the right expression, which is $val + 5, resulting in 27 + 5 = 32.
B
Correct answer
Explanation
CEILING(-10.4) returns the smallest integer greater than or equal to -10.4, which is -10. The CEILING function rounds up towards zero for negative numbers.
-
1}
-
It will give error
-
10
-
-10
C
Correct answer
Explanation
X is defined as PIC 99 (2-digit integer). When SUBTRACT 20 FROM X executes, X starts at 10, and 10 - 20 = -10. Since PIC 99 cannot hold negative values, COBOL truncates/ignores the sign, resulting in 10. No error occurs - this is how COBOL handles overflow in unsigned fields.
C
Correct answer
Explanation
Due to integer division in C/C++, 7/9 evaluates to 0. Multiplying 0 by 9 yields 0. Floats or doubles are not used unless explicitly cast or written as literals like 7.0.
A
Correct answer
Explanation
For a valid range of 18-25, the equivalence classes are: valid (18-25), invalid below (less than 18), and invalid above (greater than 25). Option A (17) is invalid because it's below the minimum valid value of 18. Options B (19), C (24), and D (21) are all valid values within the accepted range.
C
Correct answer
Explanation
The pattern involves reversing both numbers, then adding corresponding digits column-wise: reverse(137)=731, reverse(276)=672. Adding column digits: 7+6=13, 3+7=10, 1+2=3 gives 1-3-10-3, which rearranges to 1623. This pattern applied to 731+672: reverse(731)=137, reverse(672)=276, adding column digits: 1+2=3, 3+7=10, 7+6=13 gives 3-10-13, rearranging to 1623.
-
1100 0100
-
1001 1100
-
1010 0101
-
1101 0101
C
Correct answer
Explanation
In this expression, AND and OR are bitwise operators. 42 in binary is 00101010, 72 is 01001000, 55 is 00110111. (42 OR 72) = 01101010 = 106. Then 106 AND 55 = 00100010 = 34. The result is 34.
-
1100 0100
-
1001 1100
-
1010 0101
-
1101 0101
A
Correct answer
Explanation
Since MSB of a is 1, 2's complement of A = 0000 0110. Therefore A = -6
B = 10.
A x B = -60
Since a negative number we have to find the 2's complement of -60
Represent -60 in 2's complement.
Binary of 60 = 0011 1100
2's complement = 1100 0100
-
1000001111
-
00000111
-
11111001
-
111111001
C
Correct answer
Explanation
In 97, digit at tens place is 9 and decider is 7, which is greater than 5.
Thus, 97 rounded off to the nearest ten is 100.
-
3.2 × 1010
-
3.2 × 108
-
3.2 × 104
-
3.2 × 103
C
Correct answer
Explanation
32000 = 3.2 × 10000 = 3.2 × 10^4. The decimal point moved 4 places to the left (from after the last zero to between 3 and 2), giving exponent 4.