Surya Informatics
Up2Datez Interview Questions and Answers
Q1. What is difference between constructor and destructor
Constructor is used to initialize an object when it is created, while destructor is used to clean up resources when an object is destroyed.
Constructor is called when an object is created, while destructor is called when an object is destroyed.
Constructor initializes the object's state and allocates memory, while destructor cleans up resources and deallocates memory.
Example: In C++, constructor is defined using the class name and has the same name as the class, while destructo...read more
Q2. A. Hang B. Madden C. Kill D. Shoot 7. Choose the proper sequence: When he P: did not know Q: he was nervous R: heard the hue and cry at midnight S: what to do The Proper sequence should be: A. RQPS B. QSPR C. S...
read moreThe proper sequence of the given sentence is RQPS.
The sentence starts with the event of hearing the hue and cry at midnight (R)
The person did not know what to do (Q)
He was nervous (P)
The sentence ends with the person figuring out what to do (S)
Q3. what is wrapper class? difference between update and alter in mysql?
Wrapper class is a class that wraps around a primitive data type and provides additional functionality.
Wrapper classes in Python include int, float, str, etc.
They allow primitive data types to be used as objects.
Example: int is a wrapper class for integer data type.
Q4. What is programming?
Programming is the process of designing and building instructions for a computer to execute.
Programming involves writing code using programming languages like Java, Python, C++, etc.
It requires logical thinking and problem-solving skills to create algorithms and solve complex problems.
Programmers use tools like IDEs, compilers, and debuggers to write, test, and debug code.
Examples of programming tasks include developing software applications, websites, games, and automation s...read more
Q5. what is decorators?
Decorators are functions that modify the behavior of other functions or methods.
Decorators are used to add functionality to existing functions without modifying their code.
They are defined using the @decorator syntax in Python.
Decorators can be used for logging, timing, authentication, etc.
Example: @staticmethod decorator in Python marks a method as static.
Example: @property decorator in Python allows defining a method as a property.
Q6. what is frozen set?
Frozen set is an immutable collection of unique elements, similar to a set but cannot be changed once created.
Frozen sets are created using the 'frozenset()' function
They support operations like union, intersection, difference, and symmetric difference
Frozen sets are hashable and can be used as keys in dictionaries
Top HR Questions asked in Up2Datez
Interview Process at Up2Datez
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month