CS302 Spring2009 2010 MidTerm PDF
CS302 Spring2009 2010 MidTerm PDF
► 24 (2 raise to power 4)
► 23 (2 raise to power 3)
► 20 (2 raise to power 0)
► 21 (2 raise to power 1)
► AND, OR
► NAND, NOR
► NAND, XOR
► NOT, XOR
► One
► Two
► Three
► Four
► True
► False
►$
►#
2
COMPOSED BY SADIA ALI SADIIIIJ
►!
►&
► True
► False
► Comparator
► Multiplexer
► Demultiplexer
► Parity generator
► True
► False
► 4
► 8
► 12
► 16
► True
► False
► Undefined
► One
► Zero
► 10 (binary)
► 2-bit
► 7-bit
► 8-bit
► 16-bit
► Demorgans law
► Associative law
► Product of sum form
► Sum of product form
MIDTERM EXAMINATION
Spring 2009
CS302- Digital Logic Design (Session - 1)
► E2CMOS
► TTL
► CMOS+
► None of the given options
► Comparator
7
COMPOSED BY SADIA ALI SADIIIIJ
► Multiplexer
► Demultiplexer
► Parity generator
► 2nd
► 4th
► 14th
► No output wire will be activated
► True
► False
8
COMPOSED BY SADIA ALI SADIIIIJ
► A=10, B=01
► A=11, B=01
► A=01, B=01
► A=01, B=10
Here output combination should A < B
►4
►8
► 12
► 16
► TTL
► CMOS 3.5 series
► CMOS 5 Series
► Power dissipation of all circuits increases with time.
► 0011
► 1100
► 1000
► 1010
► B+C
9
COMPOSED BY SADIA ALI SADIIIIJ
► A+BC
► AB+C
► AC+B
► Demorgan’s Law
► Commutative Law
► Distributive Law
► Associative Law
► FALSE
► TRUE
► 8-bits
► 16-bits
► 32-bits
► 64-bits
►2
►5
► 10
► 16
Answer:
MIDTERM EXAMINATION
Fall 2009
CS302- Digital Logic Design (Session - 2)
Time: 60 min
11
COMPOSED BY SADIA ALI SADIIIIJ
Marks: 38
Student Info
StudentID:
Center: OPKST
Q No. 9 10 11 12 13 14 15 16
Marks
Q No. 17 18 19 20 21 22
Marks
12
COMPOSED BY SADIA ALI SADIIIIJ
► 1234
► ABCD
► 1001
► DEFH
► True
► False
► Overflow
► Carry
► Parity
► Sign value
► 0111
► 1111
► 1001
► 0110
L-2
Question No: 5 ( Marks: 1 ) - Please choose one
AB + ABC + AC is an example of ________
► Demorgans law
► Associative law
► Product of sum form
► Sum of product form
►4
►8
► 12
► 16
► 4-input, 8-bit
► 4-input, 16-bit
► 2-input, 8-bit
► 2-input, 4-bit
► AND
► OR
► NOT
► XOR
► True
► False
►A&B
►A!B
►A#B
►A$B
L-21
Question No: 14 ( Marks: 1 ) - Please choose one
If an active-HIGH S-R latch has a 0 on the S input and a 1 on the R input and
then the R input goes to 0, the latch will be ________.
► SET
► RESET
► Clear
► Invalid
15
COMPOSED BY SADIA ALI SADIIIIJ
= 16 + 0 + 4 + 2 + 0
= 22
18
COMPOSED BY SADIA ALI SADIIIIJ
MIDTERM EXAMINATION
Spring 2010
CS302- Digital Logic Design
Time: 60 min
Marks: 38
► A=10, B=01
► A=11, B=01
► A=01, B=01
► A=01, B=10
► True
► False
19
COMPOSED BY SADIA ALI SADIIIIJ
Question No: 4 ( Marks: 1 ) - Please choose one
High level Noise Margins (VNH) of CMOS 5 volt series circuits is
_____________
► 0.3 V
► 0.5 V
► 0.9 V
► 3.3 V
► 24.582
► 2.4582
► 24582
► 0.24582
► Undefined
► One
► Zero
► 10 (binary)
► SET
► RESET
► Clear
► Invalid
20
COMPOSED BY SADIA ALI SADIIIIJ
Question No: 8 ( Marks: 1 ) - Please choose one
3.3 v CMOS series is characterized by __________ and _________as
compared to the 5 v CMOS series.
► 86
► 87
► 88
► 89
► 2-to-8 encoder
► 4-to-16 encoder
► BCD-to-Decimal
► Decimal-to-BCD Priority
►1
►2
►3
►4
OR Gate
level
AND
Gate
NOT level
Gate
level
►4
►8
► 12
► 16
Question No: 14 ( Marks: 1 ) - Please choose one
Demultiplexer has
► AB+C = A+BC
► A(B+C) = B(A+C)
► AB=BA
► A+B=B+A
_________
► A.B.C
►
23
COMPOSED BY SADIA ALI SADIIIIJ
►
► 2-bit
► 7-bit
► 8-bit
► 16-bit
► Addition
► Subtraction
► Multiplication
► Division
► TTL
► CMOS 3.5 series
► CMOS 5 Series
► Power dissipation of all circuits increases with time.
► True
► False
► AND
► OR
► NOT
► XOR
► 22
► 10
► 44
► 20
►!
►&
►#
►$
► Similar
► Different
► Similar with some enhancements
► Depends on the type of PALs input size
► “ . “ (a dot)
► “ $ “ (a dollar symbol)
► “ ; “ (a semicolon)
► “ endl “ (keyword “endl”)
►4
►8
► 12
► 16
► True
► False
Ans:
Encoder function.
octal base 8
hexadecimal base 16
Octal and hex are used to represent numbers instead of decimal because there is a
very easy and direct way to convert from the "real" way that computers store
numbers (binary) to something easier for humans to handle (fewer symbols). To
translate a binary number to octal, simply group the binary digits three at a time and
convert each group. For hex, group the binary digits four at a time.
Ans:
The hexadecimal (Hex) numbering system provides even shorter
notation than octal. Hexadecimal uses a base of 16. It employs 16
digits: number 0 through 9, and letters A through F, with A through F
substituted for numbers 10 to 15, respectively,
Hexadecimal numbers can be expressed as their decimal equivalents
by using the sum of weights method, as shown in the following
example:
Weight 2 1 0
Hex. Number 1 B 7
7 x 160 = 7 x 1
= 7
11 x 161 = 11x 16
= 176
1 x 162 = 1 x 256
= 256
Sum of products
43910
Like octal numbers, hexadecimal numbers can easily be converted to
binary or vise versa. Conversion is accomplished by writing the 4-bit
binary equivalent of the hex digit for each position, as illustrated in the
following example:
Hex. Number 1 B 7
0 0 1 1 1 0 0
0 1 0 0 0 0 1
0 1 0 1 0 1 0
0 1 1 0 1 0 0
0 1 1 1 1 0 0
1 0 0 0 0 0 1
1 0 0 1 0 0 1
1 0 1 0 0 1 0
1 0 1 1 1 0 0
1 1 0 0 0 0 1
1 1 0 1 0 0 1
1 1 1 0 0 0 1
1 1 1 1 0 1 0
0100090000037800000002001c00000000000400000003010800050000000b020000000005000
0000c0235040807040000002e0118001c000000fb021000070000000000bc0200000000010202
2253797374656d000408070000c2010000985c110004ee8339681625050c020000040000002d0
1000004000000020101001c000000fb02ceff0000000000009001000000000440001254696d657
3204e657720526f6d616e0000000000000000000000000000000000040000002d010100050000
000902000000020d000000320a2c00000001000400000000000807330420cb1600040000002d0
29
COMPOSED BY SADIA ALI SADIIIIJ
The circuit has inputs X1X0 and Y1Y0 and outputs X > Y,
+ X0 Y1 Y0 + X1 X0 Y0
the expression for > is X1 Y1
time is out………………
MIDTERM EXAMINATION
Spring 2010
CS302- Digital Logic Design (Session - 6)
Ref No: 1351363
Time: 60 min
Marks: 38
30
COMPOSED BY SADIA ALI SADIIIIJ
►1
►7
►9
► 16
►0
►1
►2
►3
► Demorgans law
► Associative law
► Product of sum form
► Sum of product form
►
► AA = 0
►
► A+B = B+A
►4
►8
► 12
► 16
►2
►1
►3
►4
►4
►8
► 12
► 16
► Demorgan’s Law
► Distributive Law
► Commutative Law
► Associative Law
► 86
► 87
► 88
► 89
► AND
► OR
► NOT
► XOR
Ans:
Ans:
The Adjacent 1s Detector accepts 4-bit inputs.
If two adjacent 1s are detected in the input, the output is set to high.
input combinations will be
1. 0011,
34
COMPOSED BY SADIA ALI SADIIIIJ
2. 0110,
3. 0111,
4. 1011,
5. 1100,
6. 1101,
7. 1110 and
8. 1111
Ans:
1. 01 00,
2. 10 00,
3. 10 01,
4. 11 00,
5. 11 01 and
6. 11 10
35
COMPOSED BY SADIA ALI SADIIIIJ
Ans:
36
COMPOSED BY SADIA ALI SADIIIIJ
Ans:
Ans:
Parralel binary adder:
Assalam o Alaikum