The Joy of Computing using Python Week 12 - Quiz Assignment

Week 12: Assignment 12

1. What is the key operation performed when the number n in the Collatz Conjecture is even?

  • Add 1
  • Multiply by 3 and add 1
  • Divide by 2
  • Subtract 1

2. What happens to an odd number n in the Collatz Conjecture sequence?

  • It is divided by 2
  • It remains unchanged
  • It is replaced by n×3+1
  • It is replaced by n−1

3. What is the ultimate goal of the Collatz Conjecture sequence?

  • Reach the number 0
  • Return to the starting number
  • Reach the number 1
  • Cycle through odd numbers

4. Which of the following best describes the Collatz Conjecture?

  • It has been proven for all natural numbers
  • It remains an unsolved problem in mathematics
  • It is a trivial problem with a simple solution
  • It only applies to prime numbers

5. What is the main idea behind the PageRank algorithm used by Google?

  • Count the number of keywords on a page
  • Rank pages based on random walks on a graph of web links
  • Rank pages based on user reviews
  • Rank pages alphabetically

6. In PageRank, what happens when a page has a higher number of inbound links from other important pages?

  • Its rank decreases due to the load on the server
  • Its rank increases
  • Its rank remains unchanged
  • It is marked as a less relevant page

7. Which technique is used in the PageRank algorithm to determine the rank of a web page?

  • Depth-first search
  • Hyperlink analysis
  • Random walk simulation
  • Breadth-first search

8. PageRank relies heavily on the structure of the:

  • Web page content
  • Hyperlink network between web pages
  • User interaction data
  • Server location

9. PageRank was developed primarily to solve which problem?

  • Calculating the shortest path in a network
  • Ranking the importance of web pages on the internet
  • Counting the total number of web pages
  • Reducing the size of search engine databases

10. For which values between 200 and 3000 does the Collatz Conjecture not converge to 1?

  • 2498.0
  • 1576.0
  • 2789.0
  • None of the given options
Discussion makes the solution more accurate (social computing). Discuss the solution in comments. Do share this with your friends! Comment the queries, I will reach out to you.
Week 11 programming assignment solution coming soon

Comments

Popular posts from this blog

The Joy of Computing using python -Week 1