Find Interview Questions for Top Companies
Relinns Technologies Interview Questions and Answers
Ques:- How can we create request context in Flask?
Right Answer:
In Flask, you can create a request context using the `app.app_context()` and `app.test_request_context()` methods. For handling requests, you typically use the `@app.route()` decorator, which automatically creates a request context when a request is made. For manual creation, you can do:

```python
with app.test_request_context():
# Your code here
```

This allows you to access `request` and `session` objects within the block.
Ques:- What are the Mail methods in Flask?
Right Answer:
In Flask, the main mail methods are provided by the Flask-Mail extension, which includes:

1. `send()`: Sends a single email message.
2. `send_message()`: Sends an email message using a Message object.
3. `send_bulk()`: Sends multiple email messages in a single call (available in some versions).

These methods allow you to create and send emails easily within a Flask application.
Ques:- What are the Mail class methods?
Right Answer:
The Mail class in Flask, specifically from Flask-Mail, includes the following methods:

1. `send()`: Sends a single email.
2. `send_message()`: Sends a message with more control over the email.
3. `send_bulk()`: Sends multiple emails in one call.
4. `connect()`: Establishes a connection to the mail server.
5. `disconnect()`: Closes the connection to the mail server.

Note: The exact methods may vary based on the version of Flask-Mail being used.
Ques:- What are the features of Vue JS?
Right Answer:
1. Reactive Data Binding
2. Component-Based Architecture
3. Virtual DOM
4. Directives
5. Vue Router for Navigation
6. Vuex for State Management
7. Transitions and Animations
8. Single File Components (SFC)
9. Easy Integration with Other Projects
10. Comprehensive Documentation
Comments
Admin Feb 8, 2020

Following are some of the features of Vue JS:
● Virtual DOM - Replica of DOM is created in form of JS data structures.
● Data Binding - different binding take place with the help of binding directives called v-bind
● Components - These help to create reusable custom elements.
● Event Handling - To listen events v-on has been added to DOM elements.
● Lightweight - This is very light framework with high performance.

Ques:- What are root Vue instance in Vue JS?
Right Answer:
The root Vue instance in Vue.js is the main instance created using `new Vue()` that serves as the entry point for the Vue application. It is responsible for managing the app's data, methods, and lifecycle, and it typically binds to a DOM element in the HTML, allowing Vue to control that part of the page.
Comments
Admin Feb 8, 2020

This is the instance of Vue. Here is the example:

var abc = new Vue({
})

Ques:- What is v-model directive in Vue JS?
Right Answer:
The `v-model` directive in Vue.js is used for creating two-way data bindings on form input elements, allowing the model data to be automatically updated when the input value changes and vice versa.
Comments
Admin Feb 8, 2020

The v-model directive binds the value of HTML elements to application data. This is also known as two-way binding in Vue JS.
Two-way binding means that any data related changes affecting the model are immediately propagated to the matching view(s), and any changes made in the view(s) (say, by the user) are immediately reflected in the underlying model.

Example:
<div id="app">

{{ message }}

<input type="text" />

</div>

Ques:- What is watch in Vue JS?
Right Answer:
In Vue.js, a "watch" is a feature that allows you to observe and react to changes in data properties. When a watched property changes, the corresponding callback function is executed, enabling you to perform actions like fetching data or updating other properties based on the change.
Comments
Admin Feb 8, 2020

It is used to update the values without any specific events and extra validation.

Ques:- What is Vue JS?
Right Answer:
Vue.js is a progressive JavaScript framework used for building user interfaces and single-page applications. It allows developers to create reactive components and manage state efficiently.
Comments
Admin Feb 8, 2020

● It is progressive javascript framework to develop interactive web interfaces.
● It focuses on view layer.
● It is easy to understand.
● It is scalable and simple to install.

Ques:- Explain the build method. When is it called?
Right Answer:

The `build` method in Flutter is a crucial part of the widget lifecycle. It is called whenever the framework needs to render the widget, which can happen when the widget is created, when its state changes, or when the parent widget rebuilds. The `build` method returns a widget tree that describes how to display the widget.

Ques:- How is Flutter different from React Native?
Right Answer:

Flutter uses Dart as its programming language and provides a rich set of pre-designed widgets, while React Native uses JavaScript and relies on native components. Flutter compiles to native code for better performance, whereas React Native bridges JavaScript to native APIs. Additionally, Flutter offers a more consistent UI across platforms, while React Native allows for more direct access to native features.

Ques:- How does Flutter render widgets on the screen? Explain the rendering pipeline.
Right Answer:

Flutter renders widgets on the screen using a layered architecture known as the rendering pipeline. The process involves the following steps:

1. **Widget Layer**: The developer creates widgets, which are immutable descriptions of the UI.
2. **Element Layer**: Flutter creates an Element for each widget, which maintains the widget's state and is responsible for building the corresponding RenderObject.
3. **Render Object Layer**: Each Element creates a RenderObject that handles the actual layout and painting of the widget on the screen.
4. **Layout Phase**: RenderObjects calculate their size and position based on their constraints and the layout of their children.
5. **Painting Phase**: RenderObjects paint themselves onto a canvas, converting their visual representation into pixels.
6. **Compositing Phase**: The painted layers are combined into a single image that is displayed on the screen.

This pipeline allows Flutter to efficiently update the UI by only rebuilding and repainting the parts of the widget tree that have changed.

Ques:- What are widgets in Flutter? Explain StatelessWidget vs StatefulWidget.
Right Answer:

Widgets in Flutter are the basic building blocks of the user interface. They describe how the UI should look and behave.

**StatelessWidget**: A widget that does not maintain any state. It is immutable and its properties cannot change over time. It rebuilds only when its parent widget changes.

**StatefulWidget**: A widget that maintains state across rebuilds. It can change its appearance in response to events or user interactions. It consists of two classes: the StatefulWidget itself and a State class that holds the mutable state.

Ques:- What are keys in Flutter, and why are they important?
Right Answer:

Keys in Flutter are unique identifiers for widgets, elements, and semantic nodes. They are important because they help Flutter differentiate between widgets when rebuilding the widget tree, ensuring that the state and properties of widgets are preserved correctly during updates, especially in lists or when the widget structure changes.

Ques:- What is the structure of a SWIFT message
Right Answer:
A SWIFT message has a structured format consisting of several key components:

1. **Basic Header Block (Block 0)**: Contains routing information and message type.
2. **Application Header Block (Block 1)**: Specifies the message type and sender/receiver details.
3. **User Header Block (Block 2)**: Optional block for additional information.
4. **Text Block (Block 3)**: Contains the actual message content.
5. **Trailer Block (Block 4)**: Includes security and validation information.

Each block is separated by a specific delimiter and follows a defined syntax.
Ques:- What is the SWIFT GPI (Global Payments Innovation) and how does it improve cross-border payments
Right Answer:
SWIFT GPI (Global Payments Innovation) is a service that enhances cross-border payments by providing faster transaction speeds, real-time tracking, and improved transparency. It allows banks to offer end-to-end visibility of payments, ensuring that both senders and receivers can track their transactions and know the exact fees involved, leading to a more efficient and reliable payment process.
Ques:- How do SWIFT payments ensure security and prevent fraud
Right Answer:
SWIFT payments ensure security and prevent fraud through several measures, including:

1. **Encryption**: All messages are encrypted to protect data during transmission.
2. **Authentication**: Strong authentication methods verify the identities of the parties involved.
3. **Message Integrity**: Checksums and digital signatures ensure that messages are not altered during transit.
4. **Access Controls**: Strict access controls limit who can send and receive messages.
5. **Monitoring**: Continuous monitoring for suspicious activities helps detect and prevent fraud.
6. **Compliance**: Adherence to regulatory standards and best practices enhances security.
Ques:- What is the importance of BIC (Bank Identifier Code) in SWIFT
Right Answer:
BIC (Bank Identifier Code) is important in SWIFT because it uniquely identifies financial institutions globally, ensuring accurate and secure communication and transactions between banks.
Ques:- What are the main security protocols used in SWIFT transactions
Right Answer:
The main security protocols used in SWIFT transactions are:

1. **SWIFTNet Security**: Provides secure messaging through encryption and authentication.
2. **Public Key Infrastructure (PKI)**: Uses digital certificates for secure communication.
3. **Message Authentication Codes (MAC)**: Ensures message integrity and authenticity.
4. **Transport Layer Security (TLS)**: Secures data in transit over the network.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users