(a) x43686172697A61726421 (0.5 Mark)
Task : Given the logic circuit in the Figure below, fill the truth table for the outputs D,E,F,G, Z. (1.5 Marks)
d) 110 - 1101
a) 0111 - 1011
b) 0011 + 1001
c) 101 + 1011
What will be the output of the following code?
Python Code
a = 15
b = 20
a = a + b
b = a - b
a = a - b
print(a, b)
What will the following code print?
Python Code
lst = [4, 7, 12, 18, 5]
count = 0
for item in lst:
if item > 10:
count += 1
print(count)