Docsity

java programing exam, Exercises of Java Programming

Toggle sidebar
bg1
Faculty of Engineering
ELECTRICAL AND ELECTRONIC ENGINEERING DEPARTMENT
EENG115/INFE115 Introduction to Logic Design
EENG211/INFE211 Digital Logic Design I
Spring 2009-10
Instructors:
M. K. Uyguroğlu
H. Demirel
Final EXAMINATION
June 08, 2010
Duration : 120 minutes
Number of Problems: 7
Good Luck
STUDENT’S
NUMBER
NAME SOLUTIONS
SURNAME
GROUP NO
Problem
Achieved Maximum
1 10
2 10
3 10
4 10
5 20
6 20
7 20
TOTAL 100
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download java programing exam and more Exercises Java Programming in PDF only on Docsity!

Faculty of Engineering

ELECTRICAL AND ELECTRONIC ENGINEERING DEPARTMENT

EENG115/INFE115 Introduction to Logic Design EENG211/INFE211 Digital Logic Design I Spring 2009- Instructors: M. K. Uyguroğlu H. Demirel Final EXAMINATION June 08, 2010 Duration : 120 minutes Number of Problems: 7 Good Luck STUDENT’S NUMBER NAME (^) SOLUTIONS SURNAME GROUP NO

Problem Achieved Maximum 1 10 2 10 3 10 4 10 5 20 6 20 7 20 TOTAL 100

Question 1 (10 points) A. Converting (153) 10 to base 8 yields which of the following results? (a) 107 (b) 132 (c) 701 (d) (e) 231153 B. Converting (0111011.100) 2 to base 16 yields which of the following results? (a) 73. (b) 3C. (c) (d) 3B.873. (e) 3B. C. 10100 is the two's complement representation of: (a) - (b) (c) +12- (d) - (e) + D. Simplification of the Boolean expression AB + ABC + ABCD + ABCDE + ABCDEF yields which of the following results? (a) ABCDEF (b) AB (c) AB + CD + EF (d) (e) A + B + C + D + E + FA + B(C+D(E+F)) E. Given that F = (A + B'+ C)(D + E), which of the following represents the only correct expression for F'? (a) F' = A'BC'+ D'+ E' (b) F' = AB'C + DE (c) (d) F' = (A'+ B + C')(D'+ E')F' = A'BC' + D'E' (e) F' = (A + B'+ C)(D'+ E')

C. Identify the most simple Product of Sums (POS) expression which generates the K-map shown.

AB

C

(a) (b) F(A,B,C)=(A+C')(A+B+C)F(A,B,C)=(A+B)(A+C')(B+C') (c) F(A,B,C)=(A'+B')(A'+C)(B'+C) (d) F(A,B,C)=(A'+C)(A'+B'+C') (e) F(A,B,C)=(A+B)(A'+C)(B'+C)

D. The most reduced expression which can be obtained from the K-map illustrated is: (a) F(A,B,C,D)=A + D (b) (c) F(A,B,C,D)=CF(A,B,C,D)=A + B (d) F(A,B,C,D)=A (e) F(A,B,C,D)=A + B + D

AB

CD

x x x x

x

x

Question 3 (10 points): a) Construct a 16 X 1 multiplexer by using 5 4x 1 multiplexers. Use block diagrams.

Question 5 (20 points): Design a combinational circuit that converts a 4-bit gray code to a 4-bit binary number. Implement the circuit using exclusive-OR gates.

Decimal A^ Gray Code B C D WBINARY X Y Z^ W= A 0 0000 0 0 0 0 0 0 0 0 1 0001 0 0 0 1 0 0 0 1 2 0011 0 0 1 1 0 0 1 0 3 0010 0 0 1 0 0 0 1 1 4 0110 0 1 1 0 0 1 0 0 5 0111 0 1 1 1 0 1 0 1 6 0101 0 1 0 1 0 1 1 0 7 0100 0 1 0 0 0 1 1 1 8 1100 1 1 0 0 1 0 0 0 9 1101 1 1 0 1 1 0 0 1 10 1111 1 1 1 1 1 0 1 0 11 1110 1 1 1 0 1 0 1 1 12 1010 1 0 1 0 1 1 0 0 13 1011 1 0 1 1 1 1 0 1 14 1001 1 0 0 1 1 1 1 0 15 1000 1 0 0 0 1 1 1 1

Question 6 (20 points): Derive the state table and the state diagram of the sequential circuit shown in Fig. FQ-6.

I (^0) I (^1) S 0

J K

Q Q'

J K

Q Q'

2 X 1 MUX

A

B

Y

Z

X A'

B' Figure FQ- J (^) A = x KA= B’x’+Bx J K (^) B = A’ Y=ABB^ =A+x Z=A’B+x’ Present State

Input Next State

Output Flip-flop Input A B x A B Y Z J (^) A KA J (^) B KB 0 0 0 0 1 0 1 0 1 1 0 0 0 1 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1 0 0 1 0 1 1 0 1