Answer:
1.
a = 1
b = 20(int). 20,2857143(double)
c = 39
d = 7.6
e = 456
2.
x = 98
y = 99
z = 97
w = ca
print(x,y,z,w) -> 98 99 97 ca
3.
x = Please
y = walk on the gras
Pleasewalk on the gras
Explanation:
you can use IDE/Interpreter python to get clue number 3 and number 2
Sorry for bad English.
Answer:
RAX = 333000h (16 bits with preceding zeros removed)
RDX = 20h (also 16 bits with preceding zeros removed)
Explanation:
The "div" opcode in the assembly language source code is used to divide operands. It accepts a divisor ( the denominator) and divides the content of the AX register. The result is saved in the AX register while the remainder (if any) is saved in the DX register. If the DX register holds any data, the data is replaced with the divisor remnant.
The code above divides the content of the RAX register with the divisor variable and saves the result and remainder in the RAX and RDX respectively.
Answer:
d. All of the above
Explanation:
Physical layer is the lowest layer of the OSI reference model that deals with the setup of physical connection to the network and with transmission and reception of signals.
Full duplex (FDx) is a bidirectional type of communication system where two end nodes send and receive data signals at the same time, and a single carrier is simultaneously used for dual communication.
To send or receive data, the participating nodes in a Full Duplex system do not have to wait for a free carrier/medium. It employs a medium that has at least two internal channels - one for sending and one for receiving.
Based on the above explanations, options A, B and C are valid and are correct ways to accomplish full-duplex (FDX) digital communications on guided medium at the physical layer (OSI Layer 1). There all of them are correct.
Answer:
Replace
if userAge > 20
with
userAge > 19
Explanation:
if userAge > 20 checks if age is 21, 22, 23, 24........
The else condition which prints "I am a teenager" checks if age is 20, 19, 18....
Notice that 20 is inclusive of the else condition; this shouldn't be because for userAge to be less than 20, 20 isn't inclusive
To solve this,
Replace if userAge > 20 with userAge > 19
So that, the else
The else condition which prints "I am a teenager" checks if age is 19, 18, 17, 16....