Uploaded by Awn Sukkar

Quiz 2 Review

advertisement
Name: ________________________ Class: ___________________ Date: __________
ID: A
MECH 1500 Quiz 2 Review
True/False
Indicate whether the statement is true or false.
____
1.
The decimal system uses the number 9 as its base.
____
2.
All digital computing devices perform operations in binary.
____
3.
The base of a number system determines the total number of unique symbols used by
that system.
____
4.
In any number system, the position of a digit that represents part of the number has a
weighted value associated with it.
____
5.
Usually a group of 8 bits is a byte, and a group of one or more bytes is a word.
____
6.
To express a number in binary requires fewer digits than in the decimal system.
____
7.
In the Gray code there is a maximum of one bit change between two consecutive
numbers.
____
8.
Binary number systems use positive and negative symbols to represent the polarity of
a number.
____
9.
Normally, a binary 1 represents the presence of a signal, while a binary 0 represents
the absence of a signal.
____ 10.
All inputs to an AND gate must be 1 to produce a 1 output.
____ 11.
All inputs to a NAND gate must be 1 to produce a 1 output.
____ 12.
Only one input to an OR gate must be 1 to produce a 1 output.
____ 13.
All inputs to a NOR gate must be 1 to produce a 1 output.
1
Name: ________________________
ID: A
____ 14.
The AND function, implemented using switches, will mean switches connected in
parallel.
____ 15.
A two input OR function, expressed as a Boolean equation, would be
Y= AB.
____ 16.
Hardwired logic is fixed and is changeable only by altering the way devices are
connected.
____ 17.
Programmable control is based on logic functions that are programmable and easily
changed.
____ 18.
There is no difference between a relay schematic and a ladder logic program.
____ 19.
One of the most common PLC programming languages is ladder logic.
____ 20.
Ladder logic is a graphical representation of a user program.
Multiple Choice
Identify the choice that best completes the statement or answers the question.
____ 21.
In any number system, the position of a digit that represents part of the number has a
"weight" associated with its value. The place weights for binary:
a. start with 1 and are successive powers of 2.
b. increase by adding 2 for each place, starting with 0.
c. increase by adding 2 for each place, starting with 2.
d. start with 2 and double for each successive place.
____ 22.
The number 12 is:
a. 12 in any number system.
b. 12 in decimal.
____ 23.
c.
d.
12 in binary.
all of the above.
The octal number 153 would be written in binary as:
a. 011
101 001.
c. 011 111 101.
b. 001
101 011.
d. 010
100 011.
2
Name: ________________________
ID: A
____ 24.
The decimal number 28 would be written in binary as:
a. 11100.
c. 10110.
b. 00111.
d. 01011.
____ 25.
The hexadecimal number 2D9 would be written in binary as:
a. 0010 1101 1001.
c. 1100 1111 0010.
b. 1001 1011 0010.
d. 0010 1011 1001.
____ 26.
One byte of the data shown is represented by:
a.
b.
____ 27.
____ 29.
c.
d.
No. 3
No. 4
The MSB of the data shown in Figure 3-1 is represented by:
a.
b.
____ 28.
No. 1
No. 2
No. 1
No. 2
The acronym BCD stands for:
a. binary-coded decimal.
b. binary code decoder.
c.
d.
No. 3
No. 4
c.
base code decoder.
base-coded decimal.
d.
For a base 8 number system, the weight value associated with the third digit would
be:
a. 16.
c. 64.
b. 32.
d. 512.
3
Name: ________________________
ID: A
____ 30.
In the sign bit position, a 1 indicates a(n):
a. negative number.
c. octal code.
b. positive number.
d. hexadecimal code.
____ 31.
The 2's complement form of a binary number is the binary number that results when:
a. all the l's are changed to 0's.
b. all the 0's are changed to 1's.
c. 1 is added to the 1's complement.
d. both a and b
____ 32.
A(n)
a. parity
b. negative
____ 33.
The binary concept makes use of the fact that certain informal
a. can exist in one of two possible states.
b. can be broken down into smaller units for easier analysis.
c. can be divided into two or more categories.
d. can be divided into two, or multiples of two, categories.
____ 34.
The basic rule for an AND gate is:
a. if all inputs are 1, the output will be 1.
b. if all inputs are 1, the output will be 0.
c. if all inputs are 0, the output will be 1.
d. both a and b.
____ 35.
The basic rule for an OR gate is:
a. if one or more inputs are 1, the output is 1.
b. if one or more inputs are 1, output is 0.
c. if one or more inputs are 0, the output is 1.
d. both band c.
____ 36.
The NOT function can be thought of as:
a. a FALSE-to-TRUE converter.
c. an inverter.
b. a changer of states.
d. all of these.
bit is used to detect errors that may occur while a word is moved.
c. positive
d. overflow
4
Name: ________________________
____ 37.
With reference to the logic circuit, the output Y will be at a logic 1 when:
a.
b.
c.
d.
____ 38.
b.
____ 40.
inputs A and B are logic 1.
input A or B is logic 1.
input A is at logic 1 and input B is at logic 0.
input A is at logic 0 and input B is at logic 1.
The logic symbol drawn in that of the:
a.
____ 39.
ID: A
AND function.
OR function.
c.
d.
NOR function.
NAND function.
The Boolean equation for the logic symbol is:
a.
A=Y
c.
b.
A=B
d.
The Boolean expression for the logic circuit drawn in is:
a.
b.
Y = (A B)(CD)
c.
d.
5
Y= ABC + D
Name: ________________________
____ 41.
Which logic circuit represents the Boolean expression Y = A(BC+D)?
a.
b.
____ 42.
ID: A
(a)
(b)
c.
d.
(c)
(d)
Which of the hardwired relay schematics of is being implemented by the PLC
program shown?
a.
b.
(a)
(b)
c.
d.
6
(c)
(d)
Name: ________________________
ID: A
____ 43.
A OR gate operates on the same principle as:
a. a series circuit.
c. a series-parallel circuit.
b. a parallel circuit.
d. none of these.
____ 44.
A NOR gate is:
a. an AND gate with an inverter connected to the output.
b. an OR gate with an inverter connected to the output.
c. equivalent to a series circuit.
d. equivalent to a parallel circuit.
____ 45.
If you want to know when one or both matching bits in two different words are ON,
you would use the logic instruction.
a. AND
c. OR
b. XOR
d. NOT
Short Answer
46. Convert the binary number to a decimal number:
1111110
47. Convert the binary number to a decimal number:
10000000
48. Convert the decimal number to a binary number:
20
49. Convert the decimal number to a binary number:
17
50. Convert the Octal number to a binary number:
74
51. Convert the decimal number to BCD:
99
52. What is the 1s complement of 1001101?
53. Simplify, answer must be in binary.
100 +101
7
Name: ________________________
ID: A
54. Simplify, answer must be in binary.
1110 - 0111
55. Answer must be in binary.
100 x 101
56. Answer must be in binary.
10100 ÷ 10
8
ID: A
MECH 1500 Quiz 2 Review
Answer Section
TRUE/FALSE
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
F
T
T
T
T
F
T
F
T
T
F
T
F
F
F
T
T
F
T
T
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
MULTIPLE CHOICE
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
A
B
B
A
A
A
B
A
C
A
C
A
A
A
A
D
1
ID: A
37.
38.
39.
40.
41.
42.
43.
44.
45.
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
ANS:
C
D
D
B
A
B
B
B
C
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
PTS:
1
1
1
1
1
1
1
1
1
SHORT ANSWER
46. ANS:
126
PTS: 1
47. ANS:
128
PTS: 1
48. ANS:
10100
PTS: 1
49. ANS:
10001
PTS: 1
50. ANS:
111100
PTS: 1
51. ANS:
1001 1001
PTS: 1
52. ANS:
0110010
PTS: 1
53. ANS:
1001
PTS: 1
2
ID: A
54. ANS:
0111
PTS: 1
55. ANS:
10100
PTS: 1
56. ANS:
1010
PTS: 1
3
Download