1If and are integers with , we say divides if there exists an integer such that:
division
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
By definition, means there is an integer with . This is the formal definition of divisibility.
Incorrect! Try again.
2Which of the following is true about the notation ?
division
Easy
A. is a divisor of
B. divided by is an integer
C. is a divisor of
D. and are coprime
Correct Answer: is a divisor of
Explanation:
The notation reads as " divides ", meaning is a divisor (factor) of .
Incorrect! Try again.
3By the division algorithm, when is divided by , the quotient and remainder are:
the division algorithm
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since with , the quotient is and the remainder is .
Incorrect! Try again.
4In the division algorithm , the remainder must satisfy which condition?
the division algorithm
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The division algorithm guarantees a unique remainder with , where is the divisor.
Incorrect! Try again.
5We write if and only if:
modular arithmetic
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
By definition, means divides the difference .
Incorrect! Try again.
6What is ?
modular arithmetic
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , the remainder is , so .
Incorrect! Try again.
7Compute .
arithmetic modulo m
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
, and since divides .
Incorrect! Try again.
8Compute .
arithmetic modulo m
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
, and , so .
Incorrect! Try again.
9In base , the value of the digit string is given by:
representations of integers
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In positional notation, each digit is multiplied by the base raised to its position power, giving .
Incorrect! Try again.
10The base of the decimal number system is:
representations of integers
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The decimal (base-10) system uses ten digits, through , and has base .
Incorrect! Try again.
11What is the decimal value of the binary number ?
binary expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
.
Incorrect! Try again.
12Which digits are used in the binary number system?
binary expansions
Easy
A., , and
B. through
C. and
D. and
Correct Answer: and
Explanation:
The binary (base-2) system uses only the two digits and .
Incorrect! Try again.
13How many distinct digits are used in the hexadecimal number system?
octal and hexadecimal expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Hexadecimal (base-16) uses digits: – and the letters –.
Incorrect! Try again.
14In hexadecimal, the letter represents which decimal value?
octal and hexadecimal expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In hexadecimal, letters represent values –, with , , up to .
Incorrect! Try again.
15How many binary digits (bits) correspond to a single octal digit?
conversion between binary, octal, and hexadecimal expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , each octal digit corresponds exactly to binary digits.
Incorrect! Try again.
16How many binary digits (bits) correspond to a single hexadecimal digit?
conversion between binary, octal, and hexadecimal expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , each hexadecimal digit corresponds exactly to binary digits.
Incorrect! Try again.
17The binary number equals which octal digit?
conversion between binary, octal, and hexadecimal expansions
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The group of three bits , which is the octal digit .
Incorrect! Try again.
18Algorithms for integer operations such as addition and multiplication typically process digits in which representation?
algorithms for integer operations
Easy
A.Prime factorization
B.Roman numeral representation
C.Fractional representation
D.Base- (positional) representation
Correct Answer: Base- (positional) representation
Explanation:
Standard integer arithmetic algorithms operate on the base- positional digits of the numbers, digit by digit.
Incorrect! Try again.
19When adding two binary numbers, what happens when the sum of a column equals (i.e. )?
addition algorithm
Easy
A.Write and carry
B.Write and carry
C.Write and carry
D.Write and carry
Correct Answer: Write and carry
Explanation:
In binary, , so we write down and carry to the next column.
Incorrect! Try again.
20In the standard multiplication algorithm, each partial product is shifted according to the:
multiplication algorithm
Easy
A.Value of the largest digit
B.Position of the multiplier digit
C.Base of the result
D.Number of carries
Correct Answer: Position of the multiplier digit
Explanation:
Each partial product is shifted left by an amount equal to the position (place value) of the corresponding multiplier digit before summing.
Incorrect! Try again.
21When is divided by using the division algorithm ( with ), what are the quotient and remainder ?
the division algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The remainder must satisfy . Since and , we get and .
Incorrect! Try again.
22Which of the following statements about divisibility is TRUE?
division
Medium
A.If , then and
B.If and , then
C.If , then
D.If , then or
Correct Answer: If and , then
Explanation:
This is the linearity property of divisibility. If and , then divides any linear combination, including . The other statements are false in general.
Incorrect! Try again.
23What is the value of ?
modular arithmetic
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , we need . The powers of cycle with period : . Since , .
Incorrect! Try again.
24If and , what is ?
modular arithmetic
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Using the multiplication property of congruences, .
Incorrect! Try again.
25In arithmetic modulo , what is the additive inverse of ?
arithmetic modulo m
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The additive inverse of modulo is the value such that . Since , the inverse is .
Incorrect! Try again.
26What is the binary expansion of the decimal number ?
binary expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, giving .
Incorrect! Try again.
27What is the hexadecimal expansion of the decimal number ?
octal and hexadecimal expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
. Since , , , the hexadecimal is .
Incorrect! Try again.
28Convert the binary number directly to hexadecimal.
conversion between binary, octal, and hexadecimal expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Group into 4-bit blocks: and . Thus .
Incorrect! Try again.
29Convert the octal number to binary.
conversion between binary, octal, and hexadecimal expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Convert each octal digit to 3 bits: , , . Concatenating gives .
Incorrect! Try again.
30What is the octal expansion of the decimal number ?
octal and hexadecimal expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, so the octal expansion is .
Incorrect! Try again.
31How many digits are needed to represent the decimal number in base ?
representations of integers
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The number of digits is . Since , we have , so digits.
Incorrect! Try again.
32Convert the hexadecimal number to octal.
conversion between binary, octal, and hexadecimal expansions
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
in binary . Grouping into 3-bit blocks: . This equals decimal .
Incorrect! Try again.
33When adding the binary numbers and , what is the result?
addition algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
and ; their sum is . Performing binary addition with carries yields the same result.
Incorrect! Try again.
34Using the binary multiplication (shift-and-add) algorithm, what is ?
multiplication algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
and , so the product is .
Incorrect! Try again.
35What is the least non-negative residue of ?
modular arithmetic
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
We need with and . Since , the residue is .
Incorrect! Try again.
36Which value satisfies (the multiplicative inverse of mod )?
arithmetic modulo m
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
We seek with . Testing : . So the inverse is .
Incorrect! Try again.
37By the division algorithm, every integer can be written in exactly one of which forms when divided by ?
the division algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The division algorithm guarantees a unique remainder with , so , giving the forms .
Incorrect! Try again.
38The base- expansion of a number is in decimal. What is the base ?
representations of integers
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
. Solving gives (since ).
Incorrect! Try again.
39When adding two -bit binary integers using the standard addition algorithm, how many bit additions are performed in the worst case?
algorithms for integer operations
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The addition algorithm processes each of the bit positions once, performing a constant amount of work (bit addition plus carry) per position, so it uses bit operations.
Incorrect! Try again.
40Using the standard multiplication algorithm to multiply two -bit integers, what is the number of bit operations required?
algorithms for integer operations
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The conventional multiplication algorithm forms partial products (one per bit of the multiplier) and adds them, each involving operations, giving total bit operations.
Incorrect! Try again.
41By the Division Algorithm, when is divided by , the unique quotient and remainder (with ) satisfy . What are and ?
the division algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The Division Algorithm requires . Since and , we get and . Options with negative remainders violate the constraint.
Incorrect! Try again.
42Suppose and where are integers. Which statement is guaranteed to be true for all integers ?
division
Hard
A. only when
B.
C. implies
D. implies and
Correct Answer:
Explanation:
This is the linearity property of divisibility: if and , then divides any linear combination . The other statements are false in general.
Incorrect! Try again.
43What is the last digit of (equivalently, )?
modular arithmetic
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Powers of mod cycle with period : . Since , the result matches the second term in the cycle, which is .
Incorrect! Try again.
44In arithmetic modulo , which element is the multiplicative inverse of ?
arithmetic modulo m
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
We need . Testing : . So is its own inverse mod .
Incorrect! Try again.
45Compute using Fermat-style reduction.
modular arithmetic
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , write , so . Then .
Incorrect! Try again.
46The hexadecimal number is equal to which octal number?
conversion between binary, octal, and hexadecimal expansions
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. Grouping from the right in threes: becomes ? Regroup as . Its decimal value is , matching .
Incorrect! Try again.
47How many s appear in the binary expansion of ?
binary expansions
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
, whose binary form is (ten consecutive s). In general has exactly ones.
Incorrect! Try again.
48In base , the number equals in decimal. What is the base ?
representations of integers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
, so , giving . Check: .
Incorrect! Try again.
49What is the hexadecimal representation of the decimal number ?
octal and hexadecimal expansions
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. So the digits are , giving .
Incorrect! Try again.
50When adding the binary numbers using the standard addition algorithm, how many carry operations (carries generated) occur across the columns?
addition algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Column-by-column (right to left): (carry), (carry), (carry), (carry). The number of carries generated within/beyond the columns is before the final overflow, and the sum is .
Incorrect! Try again.
51Using the shift-and-add multiplication algorithm for , what is the product in binary?
multiplication algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
and , so the product is . Shift-and-add: add shifted by () and by () since multiplier bits at positions are : .
Incorrect! Try again.
52For which value of in does the congruence hold?
modular arithmetic
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The inverse of mod is (since ). Thus . Check: .
Incorrect! Try again.
53According to the Division Algorithm, for any integer and divisor , the possible remainders partition the integers into how many disjoint classes, and what characterizes the class of ?
the division algorithm
Hard
A. classes;
B. classes;
C. classes;
D. classes;
Correct Answer: classes;
Explanation:
Dividing by yields remainders , giving residue classes. Numbers of the form lie in the class .
Incorrect! Try again.
54A number has base- (ternary) representation . What is its value in decimal?
representations of integers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
.
Incorrect! Try again.
55The binary number is converted directly to octal by grouping bits. What is the correct octal result?
conversion between binary, octal, and hexadecimal expansions
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Group from the right in threes: . Its decimal value is , confirming the conversion.
Incorrect! Try again.
56In , how many elements are units (have a multiplicative inverse)?
arithmetic modulo m
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The units of are exactly those coprime to . By Euler's totient, .
Incorrect! Try again.
57When computing the product of two -bit integers with the standard (grade-school) multiplication algorithm, the number of bit multiplications needed grows on the order of which of the following?
multiplication algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The conventional algorithm multiplies each of the bits of one operand by each of the bits of the other, producing bit-level partial products, hence .
Incorrect! Try again.
58Which decimal integer is represented by the octal number ?
octal and hexadecimal expansions
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. Equivalently .
Incorrect! Try again.
59Determine the remainder when is divided by .
modular arithmetic
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Powers of mod cycle with period : . Since , the result equals the second term, which is .
Incorrect! Try again.
60In the fast modular exponentiation algorithm computing , roughly how many modular multiplications are required in terms of the number of bits of the exponent ?
algorithms for integer operations
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Repeated squaring processes each of the bits of with at most a squaring and a multiply per bit, so it uses modular multiplications rather than .
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →