Home / MCQ Bank / Computer
Computer Concept Of Object Oriented Programs In Python Difficulty: Medium

What will be the output of the following Python code? class A: def __init__(self): self.__x = 1 class B(A): def display(self): print(self.__x) def main(): obj = B() obj.display() main()

Select the correct option to test your answer:

More Computer Questions

The . . . . . . . . provides a proxy between the web applications exported by an application and an end user. What will be the output of the given C++ code? #include <bits/stdc++.h> using namespace std; int main() { int arr[] = {1, 3,4,2,5}; int n = sizeof(arr)/sizeof(arr[0]); sort(arr+2, arr+n, greater<int>()); int a; for (int a = 0; a < n; a++) cout << arr[a] << " "; return 0; } Which of the following services use TCP? 1. DHCP 2. SMTP 3. HTTP 4. TFTP 5. FTP Which object is created for read-only transaction? Which of the following is not the Test Top-Level Domains (tTLD)?