Computer Science: Algorithms, Theory, and Machines Coursera Quiz Answers 2022 | All Weeks Assessment Answers [💯Correct Answer]

Hello Peers, Today we are going to share all week’s assessment and quizzes answers of the Computer Science: Algorithms, Theory, and Machines course launched by Coursera totally free of cost✅✅✅. This is a certification course for every interested student.

In case you didn’t find this course for free, then you can apply for financial ads to get this course for totally free.

Check out this article “How to Apply for Financial Ads?”

About The Coursera

Coursera, India’s biggest learning platform launched millions of free courses for students daily. These courses are from various recognized universities, where industry experts and professors teach in a very well manner and in a more understandable way.

Here, you will find Computer Science: Algorithms, Theory, and Machines Exam Answers in Bold Color which are given below.

These answers are updated recently and are 100% correct✅ answers of all week, assessment, and final exam answers of Computer Science: Algorithms, Theory, and Machines from Coursera Free Certification Course.

Use “Ctrl+F” To Find Any Questions Answer. & For Mobile User, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Option to Get Any Random Questions Answer.

About Computer Science: Algorithms, Theory, and Machines Course

This course is for people who know the basics of Java programming and want to learn more about computer science as a whole. It’s the second half of our book Computer Science: An Interdisciplinary Approach (the first half is covered in our Coursera course Computer Science: Programming with a Purpose, to be released in the fall of 2018). Our goal is to take the mystery out of computing and make more people aware of the field of computer science’s strong intellectual foundations and long history.

First, we talk about old algorithms and scientific ways to measure how well they work in the context of new applications. Next, we talk about classic theoretical models that help us answer fundamental questions about computation, like whether something can be computed, whether it is universal, or whether it can’t be computed at all. We end with machine architecture, which includes machine-language programming and how it relates to Java programming (including a full CPU design built from the ground up).

The course focuses on how application programming, the theory of computation, and real computers work together. It also looks at the history and development of the field, including how Boole, Shannon, Turing, von Neumann, and others have helped.

All of this course’s features can be used for free. No certificate will be given at the end.

Course Apply Link – Computer Science: Algorithms, Theory, and Machines

Computer Science: Algorithms, Theory, and Machines Quiz Answers

Week 01

Sorting and Searching

Q1. Which of the following results from using a blacklist filter (check all that apply)?

  • Denies service to known untrustworthy clients
  • Denies service to unknown clients
  • Allows service to trusted clients
  • Allows service to unknown clients

Q2. Suppose that an array of strings contains [“blueberry”, “chocolate”, “coconut”, “coffee”, “mint”, “strawberry”, “vanilla”]. How many compares are used for a unsuccessful search for “pistachio” with binary search?

  • 2
  • 3
  • 4
  • 5
  • 6

Q3. Which of the following running times for a program sorting N 10-character strings is consistent with the hypothesis that the program is using insertion sort? Mark all that apply.

  • 1 second for N = 10,000, 4 seconds for N = 20,000, 256 seconds for N = 160,000
  • 1 second for N = 1,000,000, 4 seconds for N = 2,000,000, 8 seconds for N = 4,000,000
  • 1 second for N = 10,000, 4 seconds for N = 20,000, 64 seconds for N = 80,000
  • 1 second for N = 1,000,000, 4 seconds for N = 2,000,000, 16 seconds for N = 4,000,000
  • 1 second for N = 10,000, 2 seconds for N = 20,000, 16 seconds for N = 160,000

Q4. Which of the following best describes the order of growth of the worst-case running time of sequential search?

  • logarithmic
  • linear
  • linearithmic
  • quadratic

Week 02

Stacks and Queues

Q1. Suppose that you start with an empty stack and interpret a letter to mean push and – to mean pop. Mark the sequences below that leave e at the bottom of the stack.

  • a – b c – – d – e f g – h
  • a – b c – d – e – f g – h
  • a – b – c – d – e f g – h
  • a b c d – – – – e f g – h
  • a – b c – – d – e f g h –

Q2. Which of the following is the primary reason to use generics when implementing stacks and queues?

  • More space-efficient than using primitive types
  • Makes it possible to have stacks and queues holding objects of mixed types
  • Eliminates need to have multiple implementations for different types
  • More time-efficient than using primitive types
  • Makes it possible to meet the performance specifications

Q3. When does a data type not implement the Stack API? Mark all that apply.

  • When the operation of removing an arbitrary item is supported
  • When the space required cannot be bounded by a constant times the number of items in the stack at all time
  • When the only operations that modify the stack are to insert an item and to remove the most recently inserted item
  • When the order of growth of the time required to insert an item is logarithmic
  • When the maximum size of the stack needs to be specified ahead of time
  • When the only operations that modify the stack are to insert an item and to remove the least recently inserted item

Q4. For which of the following expressions is the maximum stack size the largest when evaluated with the Postfix client given in lecture?

  • 1 1 1 1 + * 1 1 + 1 *
  • 1 1 + 1 1 + * 1 1 * +
  • 1 1 1 1 1 1 + + * + *
  • 1 1 + 1 1 + * 1 + 1 +
  • 1 1 1 + 1 + * 1 + 1 *

Week 03

Symbol Tables

Q1. Which of the following are reasons to have ordered keys in a symbol-table API?

  • They make it simpler to support iteration
  • They arise naturally in many applications
  • Implementations can take advantage of ordering to gain efficiency
  • They allow for useful extensions to the API
  • They make it possible to support multiple types of data

Q2. Of the following, which is the most important reason not to use a linked list for a symbol-table implementation?

  • Doesn’t support ordered keys
  • Not scalable because search is too slow
  • Uses too much space
  • None of the above
  • Not scalable because insertion is too slow

Q3. In the BST built from the keys “is this an easy question” which key is in the root of the left subtree of the root?

  • question
  • an
  • is
  • this
  • easy

Q4. Of the following, which is most likely to be closest to the height of a red-black tree with 1 million nodes?

  • 10
  • 100
  • 1000
  • 10000
  • 100000

Week 04

Theory of Computing

Q1. Which of the following strings matches the RE a*bb(ab|ba)* ?

  • aaaaaabbababababbaab
  • abbababbabaabbaabbaabbabba
  • bbbb
  • bbabbabaabaaab
  • aaabbaaa

Q2. Consider a two-state DFA with a binary alphabet having the following transitions: Stay in state 0 if the input is 0 and stay in state 1 if the input is 1, otherwise switch to the other state. If state 0 is the accept state, which of the following does this DFA accept?

  • Bitstrings with at least one 0
  • Bitstrings with an equal number of occurrences of 01 and 10
  • Bitstrings that end in 0
  • Bitstrings with more 0s than 1s
  • Bitstrings with an equal number of occurrences of 0 and 1

Q3. Which of the following strings matches the generalized RE [$_A-Za-z][$_A-Za-z0-9]* ? Mark all that apply.

  • 23abcxyz
  • 123456
  • $
  • $ABABab$
  • abcxyz23

Q4. Which of the following statements are true? Mark all that apply.

  • Every DFA can be simulated by some NFA
  • Every NFA can be simulated by some DFA
  • All formal languages are regular
  • Every formal language can be recognized by some NFA
  • NFAs and REs are equivalent

Week 05

Turing Machines

Q1. Which of the following properties are common to both Turing machines are and DFAs? Mark all that apply.

  • No limit on number of steps
  • Simple model of computation
  • Finite number of states
  • Can read from or write onto the tape
  • State transitions are determined by current state and input symbol
  • Input on tape is a finite string with symbols from a finite alphabet

Q2.Which of the following models of computation are universal? Mark all that apply.

  • Java
  • Conway’s Game of Life
  • NFAs
  • your mobile phone
  • Turing machines
  • regular expressions

Q3. Which of the following best characterizes the following statement: “There exists a mathematical function that can be computed in Java, but cannot be computed on a Turing machine.

1 point

  • known to be false
  • known to be true
  • truth or falsity not known
  • if true would prove the Church–Turing thesis
  • if true would falsify the Church–Turing thesis

Q4. Which of the following problems is undecidable?

  • Do two given programs always print the same value?
  • Is every variable in a given program initialized before it is used?
  • Is every statement in a given program executed at least once?
  • Does a given program contain a computer virus?
  • All of the above

Week 06

Intractability

Q1. Assume that checking a box below corresponds to setting the variable to 1 and leaving it unchecked corresponds to setting it to 0. Give settings that solve the integer programming problem for the equations v+w+x ≥ 1, w+x+y ≥ 2, x+y+z ≥ 3, v+x+z ≥ 2, and v+w+x+y+z ≤ 3.

  • v
  • w
  • x
  • y
  • z

Q2. Assume that P = NP. Mark all correct options for FACTOR.

  • is computable
  • is in NP
  • is NP-complete
  • is intractable
  • is in P

Q3. Let A and B be two decision problems. Suppose we know that A polynomial-time reduces to B. Which of the following can we infer? Mark all that apply.

  • A and B cannot both be NP-complete
  • If A is NP-complete then so is B
  • If B is NP-complete and A is in NP then A is NP-complete
  • If B is in P, then A is in P
  • If A is in P, then B is in P
  • If A is NP-complete and B is in NP then B is NP-complete
  • If B is NP-complete then so is A

Q4. Which of the following can we infer from the fact that a problem is NP-complete, if we assume that P ≠ NP? Mark all that apply.

  • No algorithm exists that solves arbitrary instances of the problem
  • No algorithm exists that efficiently solves arbitrary instances of the problem
  • There exists an algorithm that efficiently solves arbitrary instances of the problem, but no one has been able to find it
  • The problem is not in P
  • All algorithms that are guaranteed to solve the problem run in polynomial time for some family of inputs
  • All algorithms that are guaranteed to solve the problem run in exponential time for all families of inputs

Week 07

A Computing Machine

Q1. Which of the following is the 4-digit hexadecimal two’s complement representation of the decimal number –16?

  • 0010
  • 0011
  • FFF0
  • FFF1
  • FF16

Q2. Which of the following are components of a machine’s state (value at the beginning of each instruction cycle determines what happens next)? Mark all that apply.

  • IR
  • ALU
  • PC
  • Memory
  • Registers

Q3. Suppose that R[2] contains a small integer x. Which of the following describes the value in R[2] after the instruction 5222 is executed?

  • 0
  • xx
  • 2×2x
  • 2^x2x
  • x2^xx2x

Q4. Suppose that the following sequence of instructions is loaded into memory locations 10-16: 10: 7C0A 11: 7101 12: 7201 13: 1222 14: 2CC1 15: DC13 16: 0000 and you set the PC to 10 and press RUN. Give the decimal number represented by the contents of R[2] when the machine halts.

Week 08

von Neumann Machines

Q1. Suppose that the following sequence of instructions is loaded into memory locations 10-14: 10: 8113 11: 2111 12: 9113 13: 8113 14: 0000 and you set the PC to 10 and press RUN. What is the contents of R[1] when the machine halts?

  • FFFF
  • 8113
  • 0000
  • 9113
  • 2111

Q2. Which of the following are programs that process programs? Mark all that apply.

  • ALU
  • Java Virtual Machine
  • Assembler
  • Compiler
  • Interpreter

Q3. Which of the following are (approximately) true of your cellphone, as compared to von Neumann’s EDVAC? Mark all that apply.

  • thousands of times faster
  • thousands of times more memory
  • millions of times smaller
  • millions of times faster
  • thousands of times smaller
  • millions of times more memory

Q4. Which of the following are true about virtual machines? Mark all that apply.

  • They allow software to be prepared for a new computer before it is built.
  • They are faster and have more memory than real machines.
  • They allow for backwards capability.
  • They are generally too expensive to be useful in modern computing.
  • They cannot be implemented on von Neumann machines.

Week 09

Combinational Circuits

Q1. How many different Boolean functions of 4 variables are there?

  • 4
  • 16
  • 64
  • 1024
  • 65536

Q2. Suppose that one input of a NAND gate is set to x and the other is set to 1. Which function of x does it compute?

  • 0
  • 1
  • x
  • x’
  • x+1

Q3. By checking a box for 1 and leaving it unchecked for 0, give the truth table column that defines the EVEN PARITY Boolean function of 3 variables.

  • 0 0 0
  • 0 0 1
  • 0 1 0
  • 0 1 1
  • 1 0 0
  • 1 0 1
  • 1 1 0
  • 1 1 1

Q4. Which of the following circuits have 4 outputs? Mark all that apply.

  • 2-bit majority
  • 4-bit decoder
  • 2-bit decoder
  • 4-bit adder
  • 4-bit ALU

Week 10

CPU

Q1. Which of the following modules are found in a memory? Mark all that apply.

  • odd parity
  • majority
  • flip–flop
  • multiplexer
  • decoder

Q2. Which of the following are not combinational circuits? Mark all that apply.

  • CLOCK
  • ALU
  • CONTROL
  • MEMORY
  • INCREMENTER

Q3. Which of the following decodes instructions?

  • ALU
  • CLOCK
  • CONTROL
  • MEMORY
  • PC

Q4. How many flip–flops are in the TOY-8 CPU?

  • 128
  • 132
  • 136
  • 148
  • 149

Conclusion

Hopefully, this article will be useful for you to find all the Week, final assessment, and Peer Graded Assessment Answers of Computer Science: Algorithms, Theory, and Machines Quiz of Coursera and grab some premium knowledge with less effort. If this article really helped you in any way then make sure to share it with your friends on social media and let them also know about this amazing training. You can also check out our other course Answers. So, be with us guys we will share a lot more free courses and their exam/quiz solutions also, and follow our Techno-RJ Blog for more updates.

321 thoughts on “Computer Science: Algorithms, Theory, and Machines Coursera Quiz Answers 2022 | All Weeks Assessment Answers [💯Correct Answer]”

  1. I’m not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this info for my mission.

    Reply
  2. Have you ever considered writing an ebook or guest authoring on other sites?

    I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my
    readers would value your work. If you’re even remotely interested, feel free to send me an e mail.

    Reply
  3. LOL, how comments are irrelevant to the content which shows it’s probably fake or something also all answers are wrong

    Reply
  4. Excellent weblog right here! Also your web site loads up very fast! What web host are you using? Can I am getting your associate hyperlink on your host? I wish my web site loaded up as quickly as yours lol

    Reply
  5. After examine a couple of of the weblog posts on your website now, and I truly like your approach of blogging. I bookmarked it to my bookmark website record and will probably be checking again soon. Pls check out my website as properly and let me know what you think.

    Reply
  6. When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

    Reply
  7. The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

    Reply
  8. I simply had to thank you so much once again. I do not know what I would’ve worked on without the basics shown by you over that theme. It had been a very horrifying concern in my view, however , discovering the skilled approach you solved that made me to weep for gladness. I’m grateful for the assistance and pray you really know what a great job you are always providing teaching men and women thru your blog. Most probably you haven’t encountered any of us.

    Reply
  9. Very nice post. I simply stumbled upon your blog and wished to mention that I’ve truly loved browsing your weblog posts. In any case I’ll be subscribing in your feed and I’m hoping you write once more soon!

    Reply
  10. Just wish to say your article is as amazing. The clarity in your post is simply nice and i can assume you’re an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.

    Reply
  11. I like what you guys are up also. Such smart work and reporting! Keep up the superb works guys I have incorporated you guys to my blogroll. I think it will improve the value of my website 🙂

    Reply
  12. Hello! I’ve been reading your site for a long time now and finally got the courage to go ahead and give you a shout out from Humble Tx! Just wanted to tell you keep up the excellent work!

    Reply
  13. Great beat ! I wish to apprentice whilst you amend your website, how can i subscribe for a blog website? The account helped me a applicable deal. I have been tiny bit acquainted of this your broadcast provided bright clear concept

    Reply
  14. I just couldn’t depart your web site prior to suggesting that I really enjoyed the standard info a person provide for your visitors? Is gonna be back often in order to check up on new posts

    Reply
  15. naturally like your web site but you need to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I to find it very bothersome to tell the truth nevertheless I will certainly come back again.

    Reply
  16. I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get got an impatience
    over that you wish be delivering the following. unwell unquestionably come more formerly again since
    exactly the same nearly a lot often inside case you shield this hike.

    Reply
  17. Nice post. I used to be checking constantly this blog and I’minspired! Extremely useful info specifically the closingpart 🙂 I care for such info a lot. I used to be looking for this particular info for a very long time.Thank you and best of luck.

    Reply
  18. I’m impressed, I must say. Rarely do I encounter a blog that’s equally educative and interesting, and without a doubt, you’ve hit
    the nail on the head. The issue is an issue that too few people
    are speaking intelligently about. I’m very happy I found this during my
    hunt for something regarding this.

    Reply
  19. An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

    Reply
  20. I’m extremely impressed with your writing skills as well as with the layouton your blog. Is this a paid theme or did you modify it yourself?Anyway keep up the excellent quality writing, it is rare to see a great blog like this one today.

    Reply

Leave a Comment

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker🙏.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock