Filters
Question type

Study Flashcards

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?


A) 2 and 6
B) 5 and 29
C) 4 and 9
D) 7 and 23

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

Write a program in Bare Bones that terminates with the variable Z equal to 1 if the variables X and Y start with non-zero values and with Z equal to 0 otherwise.

Correct Answer

verifed

verified

One soluti...

View Answer

If a solution with time complexity Θ \varTheta (n2) is known to exist, then the problem is known to be in which of the following?


A) Θ \varTheta (n2)
B) O(n2)
C) Θ \varTheta (n3)
D) Θ \varTheta (n)

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Identify a problem that does not have an algorithmic solution. _____________________

Correct Answer

verifed

verified

The most l...

View Answer

Which of the following questions has not yet been answered by researchers?


A) Is P contained in NP?
B) Is NP contained in P?
C) Are all the problems in NP solvable?
D) Are all the problems in P solvable?

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Suppose the variables X and Y in the following Bare Bones program have the values 3 and 2, respectively, when execution begins. clear Z; While X not 0 do; While Y not 0 do; Decr Y; Incr Z; End; Incr Z; Decr X; End; What will be the value of Z when the program terminates?


A) 0
B) 1
C) 5
D) 6

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

Give an example of a universal programming language. _____________________

Correct Answer

verifed

verified

The most likely answer is Bare...

View Answer

What is a universal programming language?

Correct Answer

verifed

verified

A universal programming language is a programming language with which a solution to any solvable problem can be expressed.

Are all problems in P solvable in a reasonable amount of time? Explain your answer.

Correct Answer

verifed

verified

No. Simply because the time complexity of a problem is bounded by a polynomial does not mean that the problem can be solved quickly. If the degree of the polynomial is large, the time required could be enormous-even for small inputs.

Which of the following best describes what the following Bare Bones program does? copy X to Z; Clear X; Incr X; While Z not 0 do; Clear X; Decr Z; End;


A) It changes the value of X to 1.
B) If the starting value of X is 0, it sets the value of X to 0. Otherwise, it sets the value of X to 1.
C) If the starting value of X is 0, it sets the value of X to 1. Otherwise, it sets the value of X to 0.
D) It ultimately leaves X the same as it was when the program started.

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

Is a problem in O(n3) more complex than a problem in O(n2)? Explain your answer.

Correct Answer

verifed

verified

Not necessarily. To say that p...

View Answer

What is the time complexity of the problem of sorting a list?


A) Θ \varTheta (lg n)
B) Θ \varTheta (n)
C) Θ \varTheta (n lg n)
D) Θ \varTheta (n2)

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

What action is performed by the Turing machine described below? What action is performed by the Turing machine described below?   A)  It replaces any string of consecutive 1s to the left of an * with 0s. B)  It leaves the tape unchanged. C)  It places an * at the left end of any string of consecutive 1s appearing to the left of an *. D)  It complements the string of 0s and 1s appearing to the left of an *.


A) It replaces any string of consecutive 1s to the left of an * with 0s.
B) It leaves the tape unchanged.
C) It places an * at the left end of any string of consecutive 1s appearing to the left of an *.
D) It complements the string of 0s and 1s appearing to the left of an *.

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

Place an X in the blank before each of the following statements that guarantees that a problem is in P. Place an X in the blank before each of the following statements that guarantees that a problem is in P.

Correct Answer

verifed

verified

First, thi...

View Answer

Write a sequence of statements in the Bare Bones language that is equivalent to the statement if X not 0 then S1 else S2 where S1 and S2 are sequences of Bare Bones statements.

Correct Answer

verifed

verified

One soluti...

View Answer

Which of the following sets of values constitutes a valid RSA public key encryption system?


A) p = 5, q = 11, n = 55, e = 17, d = 13
B) p = 5, q = 11, n = 83, e = 17, d = 13
C) p = 5, q = 11, n = 83, e = 10, d = 13
D) p = 5, q = 11, n = 55, e = 10, d = 13

E) A) and C)
F) C) and D)

Correct Answer

verifed

verified

Place a T in the blank before each of the following statements that are true. Leave the other blanks blank. _____ All Bare Bones programs that do not contain a while statement are self-terminating. _____ All Bare Bones programs that contain a while statement are not self-terminating. _____ Some Bare Bones programs are both self-terminating and not self-terminating. _____ No Bare Bones program is both self-terminating and not self-terminating.

Correct Answer

verifed

verified

Place an X in the blank before each of the following statements that contradict the Church-Turing thesis. Leave the other blanks blank. _____ All functions are computable. _____ Some functions that are not computable by Turing machines are computable by other means. _____ All computable functions are Turing-computable. _____ Some problems cannot be solved by any Turing machine.

Correct Answer

verifed

verified

Which of the following algorithms represents an optimal solution (in terms of time complexity) for sorting a list?


A) Insertion sort
B) Bubble sort
C) Selection sort
D) Merge sort

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Why is a public key encryption system based on the RSA algorithm secure?

Correct Answer

verifed

verified

It is secure because no one knows a fast way to find the prime factors of the public key n.

Showing 1 - 20 of 39

Related Exams

Show Answer