Which statement best describes a candidate key?
Correct answer C. A minimal superkey, with no proper subset that is also a superkey
Subject / 929 questions
Page 35 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 35 of 47
Correct answer C. A minimal superkey, with no proper subset that is also a superkey
Correct answer D. Always, whether or not an exception occurred in the try block
Correct answer C. 'a'
Correct answer C. FileExistsError is raised
Correct answer D. The contents are erased because the file is truncated
Correct answer A. The file is closed automatically when the block ends, even if an exception occurs
Correct answer D. __enter__ and __exit__
Correct answer B. The instance on which the method was called
Correct answer C. It initialises a newly created instance, typically setting its attributes
Correct answer B. A static method receives no implicit first argument, while a class method receives the class as cls
Correct answer D. _Account__balance
Correct answer A. __len__
Correct answer B. C3 linearisation
Correct answer B. The method can be accessed like an attribute, without parentheses
Correct answer D. StopIteration
Correct answer B. Using the yield keyword in its body
Correct answer D. Any integer from 1 to 6, including both 1 and 6
Correct answer D. deque
Correct answer B. 3
Correct answer A. 1, 2, 3