Nagarro
10+ Fitiq Interview Questions and Answers
Q1. Write rest API in Flask. Indexing in SQL Exception handling in flask
Answering how to write rest API in Flask, indexing in SQL, and exception handling in Flask.
To write a REST API in Flask, you need to define routes using the @app.route decorator and return JSON responses using the jsonify method.
To index in SQL, you can use the CREATE INDEX statement to create an index on a table column to improve query performance.
To handle exceptions in Flask, you can use the @app.errorhandler decorator to define custom error handlers for different HTTP err...read more
Q2. Java version differences, new things in jdk 8 and jdk 11
JDK 8 introduced lambda expressions, streams, and default methods. JDK 11 included features like local-variable syntax for lambda parameters and HTTP client API.
JDK 8: Lambda expressions allow functional programming, streams for processing collections, default methods in interfaces.
JDK 11: Local-variable syntax for lambda parameters, HTTP client API for making HTTP requests.
JDK 8: Example - Lambda expression: (int a, int b) -> a + b
JDK 11: Example - HTTP client API: HttpClien...read more
Q3. Difference between Iterator and Iterables
Iterator is an object that allows iteration over a collection, while Iterables are objects that can be iterated over.
Iterator is used to iterate over elements in a collection, while Iterables are objects that can be iterated over using an Iterator.
Iterables implement the Iterable interface, which allows them to be used in for-each loops in Java.
Iterator has methods like hasNext() and next() to iterate over elements, while Iterables provide a way to obtain an Iterator.
Example:...read more
Q4. Define object oriented programming
Object oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Objects are instances of classes, which define the structure and behavior of the objects.
Encapsulation, inheritance, and polymorphism are key principles of object oriented programming.
Example: In a banking system, a 'BankAccount' class can define attributes like account number and balance, and methods like deposit and withdraw.
Q5. What is dependency Injection
Dependency Injection is a design pattern where components are given their dependencies rather than creating them internally.
Dependency Injection helps in achieving loose coupling between classes.
It allows for easier testing by providing a way to mock dependencies.
There are three types of Dependency Injection - Constructor Injection, Setter Injection, and Interface Injection.
Q6. Real life scenarios for data structures.
Data structures are used in real life scenarios to organize and manage data efficiently.
Storing student records in a database using a linked list
Implementing a queue system for a hospital's emergency room
Using a hash table to store employee information in a company database
Q7. What how closure work
Closures are functions that have access to variables from their containing scope even after the scope has closed.
Closures allow functions to maintain access to variables from their parent scope even after the parent function has finished executing.
Closures are created when a function is defined within another function and the inner function references variables from the outer function.
Closures are commonly used in event handlers, callbacks, and asynchronous programming to mai...read more
Q8. Define Functional interfaces
Functional interfaces are interfaces with only one abstract method, used in Java for lambda expressions.
Functional interfaces can have multiple default or static methods, but only one abstract method.
They are used in Java to enable lambda expressions and method references.
Examples of functional interfaces in Java include Runnable, Callable, and Comparator.
Q9. What is JVM in java
JVM stands for Java Virtual Machine, which is an abstract computing machine that enables a computer to run Java programs.
JVM is responsible for converting Java bytecode into machine code that can be executed by the computer's hardware.
It provides a platform-independent execution environment for Java programs.
JVM manages memory, handles garbage collection, and provides security features for Java applications.
Examples of JVM implementations include Oracle HotSpot, OpenJ9, and G...read more
Q10. Container and POD difference
Containers are a lightweight, portable, and isolated runtime environment for applications, while Pods are a group of one or more containers sharing the same network and storage.
Containers are individual units that package an application and its dependencies, while Pods are a higher-level concept that can contain multiple containers.
Containers are isolated from each other, while containers within a Pod share the same network namespace and can communicate with each other using ...read more
Q11. how does cidc work?
CIDC stands for Clinical Immunization Data Collective and is a platform for sharing immunization data.
CIDC is a collaborative effort among healthcare organizations to share immunization data for research and public health purposes.
It allows researchers to access de-identified immunization data to study vaccine effectiveness, safety, and coverage.
CIDC helps in monitoring immunization rates, identifying gaps in coverage, and improving vaccination strategies.
Examples of data sha...read more
Q12. What is async/await
Async/await is a feature in JavaScript that allows for asynchronous programming using promises.
Async/await is a syntactic sugar built on top of promises in JavaScript.
It allows for writing asynchronous code that looks synchronous, making it easier to read and maintain.
The 'async' keyword is used to define a function as asynchronous, while 'await' is used to pause the execution of the function until a promise is settled.
Example: async function fetchData() { await fetch('https:...read more
Q13. what is devopps
DevOps is a software development methodology that combines software development (Dev) with IT operations (Ops) to shorten the systems development life cycle.
DevOps focuses on collaboration, automation, and monitoring throughout the software development lifecycle.
It aims to increase the speed of software delivery, improve reliability, and build scalable systems.
Tools commonly used in DevOps include Docker, Jenkins, Ansible, and Kubernetes.
Q14. Use of lambda expression
Lambda expressions are anonymous functions that can be used to create concise and readable code.
Lambda expressions are used to create inline functions without a formal definition.
They are often used in functional programming languages like Java, Python, and C++.
Lambda expressions can be used to pass functions as arguments to higher-order functions.
They are particularly useful for writing code that is more concise and readable.
Example: (x, y) -> x + y is a lambda expression th...read more
More about working at Nagarro
Interview Process at Fitiq
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month