Exam 12: Theory of Computation
Exam 1: Data Representation64 Questions
Exam 2: Data Representation63 Questions
Exam 3: Operating Systems47 Questions
Exam 4: Networks and the Internet62 Questions
Exam 5: Algorithms53 Questions
Exam 6: Programming Languages54 Questions
Exam 7: Software Engineering54 Questions
Exam 8: Data Abstractions53 Questions
Exam 9: Database Systems52 Questions
Exam 10: Computer Graphics47 Questions
Exam 11: Artificial Intelligence52 Questions
Exam 12: Theory of Computation51 Questions
Select questions type
Is the following Bare Bones program self-terminating? Explain your answer.
copy to decr while not 0: decr decr while not 0:
(Essay)
4.8/5
(37)
If the prime numbers underlying an RSA encryption system are small,the system is not secure.For example,suppose you were told that the public keys of a system were n = 15 and e = 13.
A.What are the two prime numbers on which the system is based?
_______ ________
B.What is the value of the decryption key d?
(Short Answer)
4.8/5
(35)
Place an X in the blank before each of the following statements that guarantees that a problem is in P.
_____ The problem is in O(n²).
_____ The problem is in O(2?).
_____ The problem is in O(log? n).
_____ The problem is in O(n³).
(Short Answer)
4.8/5
(32)
Which of the following Bare Bones programs is self-terminating?
(Multiple Choice)
4.9/5
(29)
What is the time complexity of the problem of sorting a list?
(Multiple Choice)
4.8/5
(37)
Which of the following is the most precise classification of a problem X?
(Multiple Choice)
4.9/5
(29)
Suppose the variables X and Y in the following Bare Bones program have the values 3 and 2,respectively,when execution begins.
clear while X not 0: while Y not 0: decr Y incr Z incr decr X
What will be the value of Z when the program terminates?
(Multiple Choice)
4.8/5
(30)
Which of the following best describes what the following Bare Bones program does?
copy to clear incr while not 0 : clear decr
(Multiple Choice)
4.8/5
(34)
Suppose a problem in (n³)has been solved in 1 second.How long should you expect the same machine to require to solve a new instance of the problem with input that is twice the size as before?
(Short Answer)
4.8/5
(27)
If an RSA public key encryption system were based on the primes p = 3 and q = 7,which of the following pairs of values would be suitable for the encryption and decryption keys e and d?
(Multiple Choice)
4.8/5
(35)
What action is performed by the Turing machine described below?
Current Current Value Direction New START * * left X X 1 1 left X 0 * right
(Multiple Choice)
4.9/5
(29)
Explain the distinction between time complexity and space complexity.
(Essay)
5.0/5
(29)
Write a program in Bare Bones that will add one to the variable X if X is not 0 and leave X unchanged otherwise.
(Essay)
4.8/5
(36)
List the letters associated with the following problems in the order of increasing complexity of the problems.
15.List the letters associated with the following problems in the order of increasing complexity of the problems.
A.Sorting a list
B.The halting problem
C.Searching through a list for a particular entry
(Short Answer)
4.9/5
(34)
Showing 21 - 40 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)