TBM Technologies
Craste Interview Questions and Answers
Q1. What is the lambda function?
A lambda function is a small anonymous function that can be used as a parameter for another function.
Lambda functions are often used in functional programming languages.
They are also commonly used in event-driven programming and serverless computing.
Lambda functions can be used to perform a single task or to create more complex functions.
They are often used to process data or to perform calculations.
Lambda functions are typically defined using a shorthand syntax that makes th...read more
Q2. what is a decorator?
A decorator is a design pattern that allows behavior to be added to an individual object, either statically or dynamically.
Decorators wrap an object to modify its behavior.
They provide a flexible alternative to subclassing for extending functionality.
Python has built-in support for decorators, which are used extensively in frameworks like Flask and Django.
Q3. What is a variable?
A variable is a named storage location in a computer's memory that holds a value.
Variables are used to store data in a program.
They can hold different types of data such as numbers, strings, and booleans.
Variables can be assigned a value and that value can be changed throughout the program.
They are declared using a data type and a name, such as int age;
Variables are essential for programming as they allow for dynamic and flexible code.
Q4. Difference b/w pickling and unpickling.
Pickling is the process of converting a Python object into a byte stream, while unpickling is the reverse process.
Pickling is used to serialize and store data, while unpickling is used to deserialize and retrieve data.
Pickling is useful for transferring data between different Python programs or storing data in a file.
Unpickling can raise security concerns if the data being unpickled is from an untrusted source.
Python's pickle module is used for pickling and unpickling.
Q5. Difference b/w range and xrange.
range and xrange are used to generate a sequence of numbers, but xrange is more memory efficient.
range generates a list of numbers in memory, while xrange generates an iterator
range is used in Python 3, while xrange is used in Python 2
xrange is more memory efficient as it generates numbers on the fly
range can be used with the built-in function list() to generate a list
Q6. Difference b/w list and tuple.
List is mutable while tuple is immutable.
List can be modified while tuple cannot be modified.
List uses square brackets [] while tuple uses parentheses ().
List is used for homogeneous data while tuple is used for heterogeneous data.
List is slower than tuple in terms of performance.
Example of list: [1, 2, 3] and example of tuple: (1, 'a', True)
Q7. How to adjust gst in gst portal
Adjusting GST in GST portal involves logging in, selecting the relevant return, and making necessary changes.
Log in to the GST portal using your credentials
Select the relevant return for which you want to adjust GST
Click on the 'Amend' button to make necessary changes
Submit the amended return after making the changes
The GST portal will automatically adjust the GST amount based on the changes made
Interview Process at Craste
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month