Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 1.47058 points Saved Is this function definition correct? def pow(x,y): return x **y O Yes No QUESTION 2 1.47058 points Saved What is

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

QUESTION 1 1.47058 points Saved Is this function definition correct? def pow(x,y): return x **y O Yes No QUESTION 2 1.47058 points Saved What is the value of a? y = 4 X = 2 a=y O != QUESTION 6 1.47058 points Saved The variables a and b hold numbers. Mark the FALSE statement: o not(a == b) is the same as a != b not(a == b) is the same as nota = b) not(a == b) is the same as a > b or a b and a x and y % 2 == 0) 3 O no value, an error occurs O False O True QUESTION 13 1.47058 points Save Answer What are the arguments, formal parameters, and local variables of the compute function? def compute(x,y): a = x + 1 b=y-1 return a *b result = compute(3,7) O x and y, 3 and 7. a and b, respectively 3 and 7, a and b, x and y, respectively the compute function has no local variables 3 and 7, x and y, a and b, respectively QUESTION 14 1.47058 points Save Answer Consider the following code: if P: if Q: print('A') else: print('B') Mark the TRUE statement O zero or two values will be printed in total zero values or one value will be printed in total oone value will be printed in total O one or two values will be printed in total What is NOT a possible output of theif statements? x= eval(input("give me a number: ")) if x x/z) O False O True O 3 O no value, an error occurs QUESTION 33 1.47058 points Save Answer What is the value of a? y = 2 X=3 a = notly= b O a == b O a= not(b) not(a b not(a not(b) not(a= b QUESTION 65 1.47058 points Save Answer Tor R: Python will evaluate the expression y % 2 == 0 in the following code. y = 4 x = 2 a = x x/z and Z !=0) O True 03 O False O no value, an error occurs QUESTION 68 1.47058 points Save Answer Mark the true statement: O not(not(not(b))) is the same as b not(not(not(b))) is the same as not(b) not(not(not(b))) is the same as not(not(b)) O cannot tell, there is an error in the code. QUESTION 1 1.47058 points Saved Is this function definition correct? def pow(x,y): return x **y O Yes No QUESTION 2 1.47058 points Saved What is the value of a? y = 4 X = 2 a=y O != QUESTION 6 1.47058 points Saved The variables a and b hold numbers. Mark the FALSE statement: o not(a == b) is the same as a != b not(a == b) is the same as nota = b) not(a == b) is the same as a > b or a b and a x and y % 2 == 0) 3 O no value, an error occurs O False O True QUESTION 13 1.47058 points Save Answer What are the arguments, formal parameters, and local variables of the compute function? def compute(x,y): a = x + 1 b=y-1 return a *b result = compute(3,7) O x and y, 3 and 7. a and b, respectively 3 and 7, a and b, x and y, respectively the compute function has no local variables 3 and 7, x and y, a and b, respectively QUESTION 14 1.47058 points Save Answer Consider the following code: if P: if Q: print('A') else: print('B') Mark the TRUE statement O zero or two values will be printed in total zero values or one value will be printed in total oone value will be printed in total O one or two values will be printed in total What is NOT a possible output of theif statements? x= eval(input("give me a number: ")) if x x/z) O False O True O 3 O no value, an error occurs QUESTION 33 1.47058 points Save Answer What is the value of a? y = 2 X=3 a = notly= b O a == b O a= not(b) not(a b not(a not(b) not(a= b QUESTION 65 1.47058 points Save Answer Tor R: Python will evaluate the expression y % 2 == 0 in the following code. y = 4 x = 2 a = x x/z and Z !=0) O True 03 O False O no value, an error occurs QUESTION 68 1.47058 points Save Answer Mark the true statement: O not(not(not(b))) is the same as b not(not(not(b))) is the same as not(b) not(not(not(b))) is the same as not(not(b)) O cannot tell, there is an error in the code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago