in Technology by

Which of the following statement sets the metaclass of class A to B?

1. class A(metaclass=B):
pass
2. class A:
__metaclass__ = B

3. class A:
__metatype__ = M
4. class A(meta=B):
pass

1 Answer

0 votes
by

Correct answers is: - 1. class A(metaclass=B):
pass

Related questions

0 votes
    Which of the following command is used to read n number of bytes from a file using the file object fo? 1. fo.readbytes() 2. fo.read() 3. fo.readbytes(n) 4. fo.read(n)...
asked Jul 7, 2023 in Technology by JackTerrance
0 votes
    When prioritizing projects, which of the following should NOT be a primary factor?...
asked Jul 7, 2023 in Technology by JackTerrance
0 votes
    How do I add an instance method to a class using a metaclass (yes I do need to use a metaclass) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    main() { var title = "hello"; String v = "hello"; var target; target ??= (title == v ? true : "welcome"); print( ... `` What is the output? 1. error 2. hello 3. true 4. welcome...
asked Jul 7, 2023 in Technology by JackTerrance
0 votes
    To define each of the set classes as a property of the sets object (namespace) for the module, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of the following sets the size of the outer margins for the graph? (a) par(mfrow=c(nrow,mcol)) ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which of the following sets the size of the buffer used in ufuncs? (a) bufsize(size) (b) setsize(size ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following can be used to impute data sets based only on information in the training set? ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which header of HTTP response sets expiration date and time of caching?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the differences between Azure Scale Sets and Availability Sets?...
asked Jul 31, 2021 in Technology by JackTerrance
0 votes
    What is Azure virtual machine scale sets?...
asked Jul 31, 2021 in Technology by JackTerrance
0 votes
    Is There a Difference Between Sets and Groups in Tableau?...
asked Mar 30, 2021 in Technology by JackTerrance
0 votes
    What is the right amount of data to allocate for training, validation, and test sets?...
asked Mar 11, 2021 in Technology by JackTerrance
...