What data structure is a prime number used with?
a. Hash table
b. Array
c. Queue
d. Stack
a. Hash table
You might also like to view...
An iterator is
a) an element in a collection. b) an object that allows access to each element in a collection individually. c) an interface d) a loop control variable e) a five syllable word
You have written an essay for school, and it has to be at least five pages long. But your essay is only 4.5 pages long! You decide to use your new Python skills to make your essay longer by spacing out the letters. Write a function that takes a string and a number of spaces to insert between each letter, then print out the resulting string.
``` def spaceitout(astring, number): pile = "" space = " " for index in range(0,len(astring)-1): pile = pile+ astring[index]+number*space pile+=astring[len(astring)-1] print pile ```
Which of the following contains the other three?
(a) SIZE (b) FONT (c) COLOR (d) FACE
?Clicking the Finish & Merge button in the Finish group on the Mailings tab opens _____.
A. ?a dialog box asking you to confirm if you want to complete the mail merge B. ?a new document containing the results of the mail merge C. ?a side panel that allows you to choose a location to save the results as an image D. ?a menu that allows you to print form letters, send email, or save the contents