Grade Quiz 3 CS 1101.docx - Question 1 Incorrect Mark 0.00 out of 1.00 Flag question Question text The or modulus operator returns the remainder from

# Grade Quiz 3 CS 1101.docx - Question 1 Incorrect Mark 0.00...

• Test Prep
• 14
• 100% (3) 3 out of 3 people found this document helpful

This preview shows page 1 - 5 out of 14 pages.

Question 1IncorrectMark 0.00 out of 1.00Flag questionQuestion textThe % or modulus operator returns the remainder from dividing two numbers.Select one:TrueFalse FeedbackThe correct answer is 'True'.Question 2IncorrectMark 0.00 out of 1.00Flag questionQuestion textIn Python, the ‘+’ operator can be used with numbers and with strings. What is a property that number addition has, but string concatenation does not?Select one:a. Numeric addition is allowed on right-hand side of assignment statement.b. More than one numeric addition per expression is allowed.c. The expression value does not depend on the order of numeric addition operands.d. Numeric addition is fast to execute.
e. Numeric addition needs two operands. FeedbackYour answer is incorrect.The correct answer is: The expression value does not depend on the order of numeric addition operands.Question 3CorrectMark 1.00 out of 1.00Flag questionQuestion textA programis a sequence of instructions that specifies how to perform a computation.Select one:True FalseFeedbackThe correct answer is 'True'.Question 4CorrectMark 1.00 out of 1.00Flag questionQuestion textWhat is the output of the following Python statements?
percentage = ( 60 * 100) // 55print (percentage)Select one:a. percentageb. 109 c. 109.0909090909091d. 109.0FeedbackYour answer is correct.The correct answer is: 109Question 5IncorrectMark 0.00 out of 1.00Flag questionQuestion textWhat is the output of the following Python statements?def recurse(a):if (a == 1):print(a)else:recurse(a)recurse(1)Select one:a. 0b. 1c. no output
d. RuntimeError: maximum recursion depth exceededFeedbackYour answer is incorrect.The correct answer is: 1Question 6CorrectMark 1.00 out of 1.00Flag questionQuestion textWhat do we call the value provided to a function when the function is called (which is assigned to the corresponding parameterin the function)?Select one:a. argument b. return valuec. methodd. the special value Nonee. global variableFeedbackYour answer is correct.

#### You've reached the end of your free preview.

Want to read all 14 pages?

• Spring '17

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes