Test3.docx - Question 1 5 out of 5 points True or false...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Question 1 5 out of 5 points True or false? log(n) is big-O of n, but n is not big-O of log(n). Selected Answer: Tru e Answers: Tru e False Response Feedback: Logarithms grow slower than linear functions. Question 2 5 out of 5 points True or false? Any polynomial function p(n) is big-O of any increasing exponential function (a is a number greater than 1). Selected Answer: Tru e Answers: Tru e False Response Feedback: Exponential functions (with base > 1) grow faster than all polynomial functions. Question 3 0 out of 7 points Select the smallest k so that is big-O of Selected 2
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Answer: Correct Answer: 4 Answer range +/- 0 (4.0 - 4.0) Question 4 5 out of 5 points True or false? Any two polynomial functions are of the same order. Selected Answer: Fals e Answers: True Fals e Response Feedback: Two polynomials are of the same order if and only if they have the same degree. Question 5 0 out of 5 points True or false? To verify that 101 is prime, we merely need to test divide it by 2, 3, 5, 7. The fact that 101 is not divisible by those numbers guarantees that it is prime. Selected Answer: Fals e Answers: True False Response Feedback: To test n for primality through trial division, it is sufficient to check all primes no greater than the square root of n. Since 101 is strictly between 100 and 121, the square root of 101 is strictly between 10 and 11. The primes that are less than the square root of 101 are therefore 2, 3, 5, 7. Question 6 7 out of 7 points Enter the decimal representation of the hexadecimal number FF. Selected Answer: 255 Correct Answer: 255
Image of page 2
Answer range +/- 0 (255.0 - 255.0) Response Feedback: Well done! Question 7 7 out of 7 points Enter the octal representation of the decimal number 13.
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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