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...

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.
Background image
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?
Background image
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
Background image
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.
Background image
Image of page 5

You've reached the end of your free preview.

Want to read all 14 pages?

  • Spring '17

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

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