What will the output be from the following code

computer science

Description

i have answered some of the questions in these so if you could double check for me if they are right and adjust any that need adjusting.... also if you could answer the remaining question these are easier than the others that you did answer. 1. What will the output be from the following code? num = 4 4(num) num*=2 8(num) num1=num+2 10(num1) num1+=3 13(num1) print(num1) 13(output) 2. What do the following lines of code output? Why do they give a different answer? print(2 / 3) 0.6666666666666666(output) quotient: / print(2 // 3) 0(output) integer quotient: // quotient(/) gives you an exact answer including decimal points while integer quotient(//) rounds up the answer to the nearest number 3. All of the variable names below can be used. But which of these is the better variable name to use? A a Area AREA area areaOfRectangle AreaOfRectangle The best variable name to use is “areaOfRectangle”


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.