11. What gets printed? nums set([3,1,5,4,4,6,6,5,7,91) print(len(nums)) A. 6 D.
ID: 3726110 • Letter: 1
Question
11. What gets printed? nums set([3,1,5,4,4,6,6,5,7,91) print(len(nums)) A. 6 D. 9 E. 10 12. Which of the following statements about sequences in python is INCORRECT? A. A sequence data type has an index for you to access its elements B. List is a sequence data type. It consists of a number of values separated by commas, enclosed within square brackets. C. Tuple is another sequence data type, enclosed within angle brackets D. String is yet another sequence data type, enclosed within quotes. E. Dictionary is not a sequence data type. 13. What gets printed? (Note: o is a blank.) name "ladyobird" name[5] = X' print name A. ladyXbird B. ladyXobird C. ladyoXbird D. Error E. None of the above 14. Which of the following function of dictionary gets all the keys from the dictionary? A. getkeysO B. allkeysO C.key D. keysO E. None of the above. 15. Which of the following statements regarding Twitter's time limits is INCORRECT? A. Twitter REST API uses 15-minute windows. B. Twitter does not make public the rate limits for their Streaming API. C. The rate limit for the API endpoint, GET friends/ids, is 15 calls per window. D. The rate limit for the API endpoint, GET search.tweets, is also 15 calls per windov The rare limit for user-information related API endpoints, such as GET users/sho users/lookup, is 900 calls per window. E.Explanation / Answer
11.
print(len(nums)).
The above syntax indicates that print the number of elements in the nums.
Here the number of elements is 10.
Option E correct
12.
Option c correct.
Tuple is another sequence data type enclosed with parentheses.
parentheses symbol is ()
Tuples are not enclosed with angle brackets <>
13.
name[5] = 'X'
name[5] is b that is replaced by the X.
So output lady Xird.
Option E correct.
14.
Option D correct.
keys() function of dictionary get all the keys from the dictionary.
The method keys() main purpose to use is returns a list of keys exist in the dictionary.
15.
Option B correct.
Since Twitter gives the rate limit using the rate limits on calls .
l a d y space b i r d 0 1 2 3 4 5 6 7 8Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.