Factorial!

12 Questions | Attempts: 232
Share

SettingsSettingsSettings
Factorial! - Quiz

This is in preparation for writing a program to calculate the factorial of a user-provided number.


Questions and Answers
  • 1. 

    How many different orders can 3 students be in when they are standing in a line? 

    • A.

      9

    • B.

      6

    • C.

      3

    • D.

      2

    • E.

      1

    Correct Answer
    B. 6
    Explanation
    All 6 different ways are shown above.

    Rate this question:

  • 2. 

    How many different possibilities are there for the first student?

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      4

    Correct Answer
    C. 3
    Explanation
    3 because the student could be Abigail, Brent, or Candy.

    Rate this question:

  • 3. 

    After someone takes the first spot in the line, how many different possibilities are there for the second student?

    • A.

      0

    • B.

      1

    • C.

      2

    • D.

      3

    Correct Answer
    C. 2
    Explanation
    2 because if Abigail is first in line, then the 2nd student can be either Brent or Candy. Once a student is in the first spot, there are only 2 students left to choose from for the second spot.

    Rate this question:

  • 4. 

    After the first and second spots have been taken, how many students are available for the 3rd spot?

    • A.

      0

    • B.

      1

    • C.

      2

    • D.

      3

    Correct Answer
    B. 1
    Explanation
    1 because there is only 1 student left.

    Rate this question:

  • 5. 

    What can you do with the numbers 3, 2, and 1 to get the answer 6?

    • A.

      3 + 2 + 1 = 6

    • B.

      3 * 2 * 1 = 6

    • C.

      3 + 2 * 1 = 5

    • D.

      Both A and B result in 6, but B is the correct one, 3 * 2 * 1 = 6

    Correct Answer
    D. Both A and B result in 6, but B is the correct one, 3 * 2 * 1 = 6
    Explanation
    The fundamental counting principal of probability tells us to multiply the numbers of ways for each spot. Let's look at another situation in which multiplication is the only one that will work.

    Rate this question:

  • 6. 

    How many different arrangements can 4 students be in, when they are standing in a line? 

    • A.

      4

    • B.

      16

    • C.

      24

    • D.

      96

    Correct Answer
    C. 24
    Explanation
    All 24 different ways are shown above.

    Rate this question:

  • 7. 

    Which pattern of mathematical operations works for both 3 students, resulting in 6 ways, and also for 4 students, resulting in 24 ways?

    • A.

      4 + 3 + 2 + 1

    • B.

      4 * 3 * 2 * 1

    • C.

      4 + 3 * 2 * 1

    • D.

      4 + 3 + 2 * 1

    Correct Answer
    B. 4 * 3 * 2 * 1
    Explanation
    4 * 3 * 2 * 1 = 24
    This is called factorial.

    Rate this question:

  • 8. 

    4! = 4 * 3 * 2 * 1 = 24 This is called factorial.  The symbol for factorial is the exclamation point. 4! = 243! = 3 * 2 * 1 = 6, so 3! = 6Mark ALL of the following that are acceptable ways to show how 4 factorial is equal to 24.

    • A.

      4! = 1 * 2 * 3 * 4 = 24

    • B.

      4! = 4 * 3 * 2 * 1 = 24

    • C.

      4! = 4 * 3 * 2 = 24

    • D.

      4! = 2 * 3 * 4 = 24

    Correct Answer(s)
    A. 4! = 1 * 2 * 3 * 4 = 24
    B. 4! = 4 * 3 * 2 * 1 = 24
    C. 4! = 4 * 3 * 2 = 24
    D. 4! = 2 * 3 * 4 = 24
    Explanation
    All of these are acceptable ways to show that 4! = 24.

    Rate this question:

  • 9. 

    Terms are multiplied.  Numbers are multiplied.  Multipliers are multiplied.  Which of these is also a word for any numbers that are being multiplied?

    • A.

      Factors

    • B.

      Products

    • C.

      Factorials

    • D.

      Addends

    Correct Answer
    A. Factors
    Explanation
    In 4! = 2 * 3 * 4 = 24, the 2, 3, and 4 are called factors.

    Rate this question:

  • 10. 

    In 4! = 2 * 3 * 4 = 24, what is 24 called more specifically than a product?

    • A.

      Factor

    • B.

      Product

    • C.

      Factorial

    • D.

      Addend

    Correct Answer
    C. Factorial
    Explanation
    In 4! = 2 * 3 * 4 = 24, the 24 is a specific kind of product called a factorial.

    Rate this question:

  • 11. 

    Which of these assignment statements could be used for accumulating a sum in a computer program?

    • A.

      Sum = Number + Number + Number

    • B.

      Sum = Sum + Number

    • C.

      Sum = 0

    • D.

      Sum = Addend

    Correct Answer
    B. Sum = Sum + Number
    Explanation
    Sum = Sum + Number is used for accumulating a sum. The value in memory has the new number added to it and the new sum replaces the old sum in memory.

    Rate this question:

  • 12. 

    Sing the variables Factor and Factorial, extend your understanding of accumulating a sum to adapt it to calculating a factorial, one factor at a time.  Write the assignment statement.

    Correct Answer
    Factorial = Factorial * Factor
    factorial = factorial * factor
    Factorial=Factorial*Factor
    factorial=factorial*factor
    Factorial = Factor * Factorial
    Explanation
    You might have the concept correct but made a mispelling. I am not telling you the correct answer now though, because you will be putting this in your program.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 11, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 26, 2010
    Quiz Created by
    Jhangen

Related Topics

Back to Top Back to top
Advertisement