Add office photos
Engaged Employer

Bonami Software

4.2
based on 71 Reviews
Filter interviews by

10+ Jawaharlal Nehru Centre for Advanced Scientific Research Interview Questions and Answers

Updated 29 Nov 2024

Q1. index in mongodb, why we need index, is index good or bad?

Ans.

Indexes in MongoDB improve query performance by allowing the database to quickly locate and retrieve specific documents.

  • Indexes help to speed up query performance by allowing the database to quickly locate specific documents based on the indexed fields.

  • Without indexes, MongoDB would have to perform a collection scan, which can be slow and resource-intensive.

  • Indexes can be created on single fields or compound fields to further optimize query performance.

  • However, indexes come w...read more

Add your answer

Q2. what is modules? types of modules in nodejs

Ans.

Modules in Node.js are reusable blocks of code that encapsulate related functionality.

  • Modules in Node.js can be built-in modules like fs (file system) or third-party modules like express.

  • Modules help in organizing code into separate files for better maintainability and reusability.

  • Modules can be imported using the require() function in Node.js.

Add your answer

Q3. What is the use of JAVA API?

Ans.

The JAVA API is a collection of pre-written classes and interfaces that provide ready-to-use functionality for Java developers.

  • The JAVA API allows developers to save time and effort by using pre-built code for common tasks.

  • It provides a wide range of classes and interfaces for various purposes such as file handling, networking, database connectivity, GUI development, etc.

  • Developers can leverage the API to access system resources, interact with external services, and perform c...read more

Add your answer

Q4. Inheritance and Concept of Abstract Classes and Interfaces

Ans.

Inheritance allows a class to inherit properties and behaviors from another class. Abstract classes cannot be instantiated and can have abstract methods. Interfaces define a contract for classes to implement.

  • Inheritance allows a class to inherit properties and behaviors from another class

  • Abstract classes cannot be instantiated and can have abstract methods

  • Interfaces define a contract for classes to implement

Add your answer
Discover Jawaharlal Nehru Centre for Advanced Scientific Research interview dos and don'ts from real experiences

Q5. are let and cont variables hoisted?

Ans.

Yes, let and const variables are hoisted but not initialized.

  • let and const variables are hoisted to the top of their block scope, but they are not initialized until the actual line of code is executed.

  • This means that you cannot access a let or const variable before it is declared in the code.

  • For example, trying to access a let variable before it is declared will result in a ReferenceError.

Add your answer

Q6. why we use mongoose not mongodb driver?

Ans.

Mongoose is an Object Data Modeling (ODM) library for MongoDB that provides a higher level of abstraction and simplifies interactions with the database.

  • Mongoose provides schema validation which helps maintain data integrity.

  • Mongoose simplifies querying and data manipulation with built-in functions.

  • Mongoose supports middleware functions for pre and post processing of data operations.

Add your answer
Are these interview questions helpful?

Q7. what are hooks , use of useRef

Ans.

Hooks are a feature in React that allow you to use state and other React features in functional components. useRef is a hook that allows you to create a mutable object that persists for the lifetime of the component.

  • Hooks are used to add state and lifecycle methods to functional components in React

  • useRef is used to create a mutable reference that persists between renders

  • useRef can be used to access DOM elements directly in functional components

Add your answer

Q8. what changes came in es6

Ans.

ES6 introduced several new features and improvements to JavaScript, making it more powerful and efficient.

  • Arrow functions for more concise syntax

  • Let and const for block-scoped variables

  • Classes for easier object-oriented programming

  • Template literals for easier string interpolation

  • Default parameters and rest parameters for function arguments

  • Destructuring assignment for easier data extraction

  • Promises for asynchronous programming

  • Modules for better code organization

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. what is global context

Ans.

Global context refers to the overall environment or setting in which something exists or operates.

  • Global context encompasses all variables, functions, and objects that are accessible throughout an entire program.

  • It can be thought of as the 'big picture' view of a program's execution.

  • In web development, global context includes the window object in JavaScript.

Add your answer

Q10. what is temporal deadzone

Ans.

Temporal dead zone is a period during the variable creation process where accessing the variable results in a ReferenceError.

  • Occurs when trying to access a variable before it has been declared with let or const

  • Happens due to the variable being in the temporal dead zone until it is declared

  • Example: accessing a variable before its declaration will result in a ReferenceError

Add your answer

Q11. Throws Vs Throw

Ans.

Throws is used for checked exceptions in Java, while throw is used to explicitly throw an exception.

  • Throws is used in method signature to declare that the method may throw a checked exception.

  • Throw is used to actually throw an exception in the code.

  • Example: public void method() throws IOException { //code }

  • Example: throw new IOException();

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

4.1
 • 41 Interview Questions
3.8
 • 24 Interview Questions
3.9
 • 10 Interview Questions
3.9
 • 10 Interview Questions
4.3
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter