Java Unit 2
ASCII stands for:
c. American Standard Code for Information Interchange
Adding one extra bit to any binary sequence doubles its capacity.
doubles
Match the corresponding hexadecimal symbols to their decimal value: G: n/a C: 12 A: 10 E: 14
G: n/a C: 12 A: 10 E: 14
Represent this sequence of logic in terms of Binary numbers: TRUE - FALSE - TRUE - FALSE
TRUE - FALSE - TRUE - FALSE 1 - 0 - 1 - 0
Which of the following is TRUE about the Octal Number System. Choose two.
b. Octal is commonly used for the Unix File Permission c. Octal numbers can be converted to any number system like binary, decimal and hexadecimal
If you have an 8-bit binary value, what is the largest decimal value that you can have?
b. 255
Which of the following statements about swim lanes is LEAST accurate:
b. Swim lanes are used to separate several processes that are running at the same time.
Each digit in a binary number is called:
b. a bit
The hexadecimal number system is also called, base-
base-16
Convert Hexadecimal A1 to Binary.
c. 10100001
Convert Hexadecimal B4 to Binary.
c. 10110100
Given the hexadecimal value of 0xFF, what is the equivalent binary value?
c. 1111 1111
Given an n-bit signed number, what is the maximum number of positive values can it hold?
c. 2n-1
If you have a very long strand of binary numbers that needs to be converted to its octal value, we need to group the binary numbers into how many digits (or strands)?
c. 3 binary digits per group
Convert the Decimal 2018 to Hexadecimal.
c. 7E2
If you have a binary value of 0101 0101 (base 2), what is the decimal equivalent?
c. 85
The number system that uses numbers from 0 to 9 and letters from A to F is called?
c. Hexadecimal Number System
In the octal number system, what are the legal digits that an octal number can use?
d. 01234567
In a complex equation, which operation should go last?
+
Drag and drop the answer in to the correct place: When converting an 8-bit binary number to decimal, the format for conversion is:
1's ; 2's ; 4's ; 8's ; 16's ; 32's ; 64's ; 128's
What is decimal -5 in signed binary? [Hint: Follow the procedure on Signed and Unsigned numbers.]
1101
Convert the Decimal number 105 to Binary: (Hint: Answer consists of 7 bits)
1101001
What is Decimal -12 in signed binary? [Hint: Follow the procedure on Signed and Unsigned numbers.]
11100
Add the following Binary numbers: (Hint: Answer will be in binary with 6 bits) 101101 + 001101 ------------
111010
Convert the Decimal number 255 to Binary: (Hint: Answer consists of 8 bits)
1111 1111
What is the sum of the Hexadecimal expression: A2 + B4 in Hexadecimal?
156
What is Binary 10011110 in Decimal?
158
The hexadecimal number system has how many unique symbols?
16
The hexadecimal A4 in decimal i
164
Given the equation: 19 - 8 x 5 / 10 + 6 / 3 What is the result?
17
Compute for the answer of the given equation, what is the result? (18 / 3 +28 / 4 +2 x 4) / 3
7
What is the largest octal value that you can represent if you have a 3 digit octal number?
777
Each number system has its own radix, what is the radix of an octal number system?
8
Convert the decimal 128 to hexadecimal.
80
Convert binary 10010111 to hexadecimal.
97
Given the equation: 36 - 24 / (2 x 6) + 82 What is the result of the given equation?
98
If you are using the decimal number system, how many possible numbers can you represent with 5 digits?
100,000 digits
Convert Decimal 24 to Binary.
11000
Given the mathematical equation below, compute the given equation. 3x (24 / 2 -3 x 4 +2x6)
36
In the Hexadecimal equation: AB + CD, the sum in Decimal is 376 , and the sum in Binary is 101111000
376 101111000
Given the octal numbers 243 (base 8) and 213 (base 8), what is the sum of the both numbers in base 8? Hint: it is a three digit octal number.
456
Convert the binary number: 110010 to decimal. (Hint: The answer is a 2 digit whole number).
50
An Unsigned number can hold only positive numbers.
An Unsigned
Radix is another term for _________? Choose two.
Base Root
Given the hexadecimal C.1 : Binary value is: 1100.0001 Decimal value is: 12.0625
Binary value is: 1100.0001 Decimal value is: 12.0625
Given the decimal number 45: Binary value is: 2101101 Hexadecimal value is: D
Binary value is: 2101101 Hexadecimal value is: D
Convert binary 11001100 to a hexadecimal.
CC
Match the correct base to the corresponding Base Number System: Decimal : base-10 Hexadecimal : base-16 Binary : base-2
Decimal : base-10 Hexadecimal : base-16 Binary : base-2
What is the conventional node used at the final point or ending stretch of a process flowchart?
End
A signed number can hold both positive and negative numbers, thus making signed numbers capable of storing larger positive numbers than unsigned numbers.
False
In signed magnitude, the furthest digit to the right is a flag indicating whether the number is positive or negative.
False
We can convert the value 9 (base 10) to binary by using only two bits.
False
When converting a decimal number larger than 15, we reuse the existing Hexadecimal symbols and place them to the right of existing ones. Therefore, converting decimal 16 to hexadecimal will become 01.
False
In the decimal number 468: How many 100's are there?: 4 How many 10's are there?: 6 How many 1's are there?: 8
How many 100's are there?: 4 How many 10's are there?: 6 How many 1's are there?: 8
In the Binary number: 100 How many 4's are there?: 1 How many 2's are there?: 0 How many 1's are there?: 0
How many 4's are there?: 1 How many 2's are there?: 0 How many 1's are there?: 0
ou can use flowcharts to document a process.
True
In the binary number system there are only two values: 1 (TRUE) and 0 (FALSE)
True
Positional Notation is the process of reusing a number on the left of your current digit.
True
The greatest benefit of process documentation is that it enables process analysis and process improvement.
True
When adding binary numbers, the binary formulas are: a. 0 + 0 = 0 b. 1 + 0 = 1 c. 1 + 1 = 10
a. 0 + 0 = 0 b. 1 + 0 = 1 c. 1 + 1 = 10
Given a hexadecimal value of 55, what is the equivalent binary value?
a. 0101 0101
Convert Decimal 18 to Binary.
a. 10010
Convert Binary 1204FF00 to Hexadecimal.
a. 1204FF00 is not a Binary Number.
The number of bits determines the Maximum value of a number.
maximum
One hexadecimal digit is EQUAL to one
nibble
Given the octal numbers 777.5 (base 8) and 43.46 (base 8), what is the sum of these numbers in base 8 format? Hint: 4 whole number value and 2 decimal place.
1043.16
Convert the binary number: 10111010 to decimal. (Hint: The answer is a 3 digit whole number).
186
Convert binary number 11000100 to a decimal number.
196
Given a hexadecimal number of F2 (base 16), what is the corresponding decimal equivalent value?
242
Convert the hexadecimal ABC to decimal. [Hint: the answer is a whole number consisting of four digits only.]
2748
Convert the hexadecimal BBB to decimal.
3003
Convert hexadecimal 24 to decimal.
36
If you are using the octal number system, how many possible numbers can you represent with 3 digits?
512 digits
How many bits are there in the binary number 100101?
6
Convert the Binary number: 111110 to Decimal: (Hint: Th answer is a whole number with only 2 digits).
62
Convert decimal 100 to hexadecimal.
64
A signed number can hold both negative and positive numbers.
A Signed
Given the Decimal number 999: In Binary is:1111100111 In Hexadecimal is: 3E7
In Binary is: 1111100111 In Hexadecimal is: 3E7
Given the hexadecimal number E2: In decimal is: 226 In binary is: 11100010
In decimal is: 226 In binary is: 11100010
What is the logic path followed when the condition is not met or is false?
No
The starting and ending points of a flowchart have to be communicated clearly using a symbol called a terminator. What shape is a terminator symbol?
Oval
What is the conventional shape used to start and to end a flowchart?
Oval
Consider the equation: (5 + 10) x 2 - 32 Given two columns, column 1, the list of operations found in the given equation and in column 2 the operation themselves. Match the step number with the operator to show which operation should go first. Step 3: Multiplication Step 1: Parenthesis Step 4: Subtraction Step 2: Exponent
Step 3: Multiplication Step 1: Parenthesis Step 4: Subtraction Step 2: Exponent
In a given mathematical equation, we need to follow the PEMDAS Order of Operation. Match the PEMDAS meaning to its operator. Subtraction - Division / Addition + Parenthesis ( ) Multiplication x
Subtraction - Division / Addition + Parenthesis ( ) Multiplication x
The following are valid octal numbers, EXCEPT? Choose three.
a. 8 d. A e. 9
The electricity inside a microchip inside a computer is turned on or off. Which number system represents the electricity status?
a. Binary Number System
Divergence points in a flowchart are depicted using which of the following:
a. Diamond
In a complex equation, which operation should we compute first?
a. Parenthesis
An 8-bit binary value is also called:
a. a byte
The diamond operator represents a condition that may give us an answer of Yes or No, True or False, Correct or incorrect. Which of the following options can we put inside the diamond operator?
a. score >= 80