MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An integer is ____
A
A whole number
B
A number with a decimal part
C
Letters, numbers or punctuation
D
True or False
Explanation: 

Detailed explanation-1: -All whole numbers are integers. All integers are whole numbers.

Detailed explanation-2: -The set of natural numbers and ‘0’ are whole numbers. The set of natural numbers and their negatives and ‘0’ together form integers. So, every whole number is an integer.

Detailed explanation-3: -Every integer is not a whole number . Hence, the given statement is false . So, the correct answer is “FALSE”. Note: An integer can be positive or negative whereas whole numbers are only positive .

Detailed explanation-4: -Explanation: Any whole number is a non-negative integer, that is, either a positive integer or zero. So, in order to find the integers that are NOT whole numbers, we need to find integers that are NOT non-negative.

Detailed explanation-5: -An integer, also called a “round number” or “whole number, ” is any positive or negative number that does not include decimal parts or fractions. For example, 3, -10, and 1, 025 are all integers, but 2.76 (decimal), 1.5 (decimal), and 3 ½ (fraction) are not.

There is 1 question to complete.