Computer Science, asked by Anonymous, 10 months ago

Here in binary format they will be as follows :
A = 00111100 B = 0000 1101
hence
A ∧ B = 0011 0001 and ~A = 1100 0011​

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
3

Explanation:

c = a | b; # 61 = 0011 1101

print “Line 2 – Value of c is “, c

c = a ∧ b; # 49 = 0011 0001

print “Line 3 – Value of c is “, c

c = ~a; # -61 = 1100 0011

print “Line 4 – Value of c is “, c

c = a < < 2; #240 = 1111 0000

print “Line 5 – Value of c is “, c

c = a > > 2; # 15 = 00001111

print “Line 6 – Value of c is

Answered by Anonymous
3

Explanation:

c = a | b; # 61 = 0011 1101

print “Line 2 – Value of c is “, c

c = a ∧ b; # 49 = 0011 0001

print “Line 3 – Value of c is “, c

c = ~a; # -61 = 1100 0011

print “Line 4 – Value of c is “, c

c = a < < 2; #240 = 1111 0000

print “Line 5 – Value of c is “, c

c = a > > 2; # 15 = 00001111

print “Line 6 – Value of c is

statement is an instruction that the Python interpreter can execute. We have seen two kinds of statements: print and assignment.

When you type a statement on the command line, Python executes it.

Similar questions