Which of the following is not a keyword? a) eval b) assert c) nonlocal d) pass
Show More Ask Question

1 Answer

Answer :

Answer: a Explanation: eval can be used as a variable.
Like 0 like
Next Page →

Related

Description : Which of the following is not the correct syntax for creating a set? a) set([[1,2],[3,4]]) b) set([1,2,2,3,4]) c) set((1,2,3,4)) d) {1,2,3,4}

Answer : Answer: a Explanation: The argument given for the set must be an iterable.

Description : Which of the following is not a complex number? a) k = 2 + 3j b) k = complex(2, 3) c) k = 2 + 3l d) k = 2 + 3J

Answer : B

Description : Which of these about a set is not true? a) Mutable data type b) Allows duplicate values c) Data type with unordered values d) Immutable data type

Answer : Answer: d Explanation: A set is a mutable data type with non-duplicate, unordered values, providing the usual mathematical set operations.

Description : If a={5,6,7,8}, which of the following statements is false? a) print(len(a)) b) print(min(a)) c) a.remove(5) d) a[2]=45

Answer : Answer: d Explanation: The members of a set can be accessed by their index values since the elements of the set are unordered.

Description : Which of the following statements is used to create an empty set? a) { } b) set() c) [ ] d) ( )

Answer : Answer: b Explanation: { } creates a dictionary not a set. Only set() creates an empty set.