Question
Consider the following Python code snippet: class Employee: def __init__(self, name, age): self.name = name self.age = age def display(self): print(f"Name: {self.name}, Age: {self.age}") e1 = Employee("John", 30) e1.salary = 50000 e1.display() print(e1.salary) What will happen when the above code is executed?
More Data Analytics Languages Questions
- What is the difference between a list and a tuple in Python?
- Which of the following is a key difference between TCP and UDP in the transport layer of the TCP/IP model?
- Which of the following is a measure of central tendency?
- Which of the following best differentiates random sampling from non-random sampling techniques?
- Which of the following functions in Excel is used to combine data from multiple columns into one?
- What does the following list comprehension produce? result = [x**2 for x in range(5) if x % 2 == 0] print(result)
- In file systems, which allocation method results in the maximum random access performance?
- If a dataset has a strongly skewed distribution , which measure of central tendency is most appropriate to represent the data?
- A financial institution notices an unusual pattern in transactions where large amounts are transferred between new accounts shortly after opening. Which da...
- Which of the following is an example of non-random sampling?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)