Add office photos
Engaged Employer

Wipro

3.7
based on 52.5k Reviews
Video summary
Filter interviews by

10+ Nasser S. Al Hajri Corporation Interview Questions and Answers

Updated 23 Dec 2024
Popular Designations

Q1. 1.What are C tokens 2.Encapsulation 3.Polymorphism 4.Array 5.Pointers 6.Applet 7.Java 8.Datatype 9.String 10.Dbms

Ans.

This is a list of programming concepts and terms.

  • C tokens are the basic building blocks of C programming language.

  • Encapsulation is the process of hiding implementation details and exposing only necessary information.

  • Polymorphism is the ability of an object to take on many forms.

  • Array is a collection of similar data types.

  • Pointers are variables that store the memory address of another variable.

  • Applet is a small program that runs within a web browser.

  • Java is a high-level progra...read more

Add your answer

Q2. What is the difference between method overriding and method overloading?

Ans.

Method overriding involves creating a new implementation of a method in a subclass, while method overloading involves creating multiple methods with the same name but different parameters in the same class.

  • Method overriding is used to provide a specific implementation of a method that is already provided by its superclass.

  • Method overloading is used to create multiple methods with the same name but different parameters within the same class.

  • In method overriding, the method sig...read more

Add your answer

Q3. Cake puzzle - How do you cake into 8 equal parts using 3 cuts.

Ans.

To cut a cake into 8 equal parts using 3 cuts, make two cuts horizontally and one cut vertically through the center.

  • Make two cuts horizontally to divide the cake into 4 equal parts.

  • Then make one vertical cut through the center to divide each half into 2 equal parts.

  • You will have 8 equal parts of the cake with 3 cuts in total.

Add your answer

Q4. What is difference b/w findelement &find elements

Ans.

findelement returns the first matching element on the page, find elements returns a list of all matching elements.

  • findelement is used to locate a single element on a web page

  • find elements is used to locate multiple elements on a web page

  • findelement throws an exception if no matching element is found

  • find elements returns an empty list if no matching elements are found

  • Example: WebElement element = driver.findElement(By.id("exampleId"));

  • Example: List elements = driver.findElemen...read more

Add your answer
Discover Nasser S. Al Hajri Corporation interview dos and don'ts from real experiences

Q5. Write a program to count occurnces of charecters of string

Ans.

A program to count occurrences of characters in a string.

  • Create a dictionary to store the count of each character.

  • Iterate through the string and update the count in the dictionary.

  • Print the count of each character in the dictionary.

Add your answer

Q6. What is programming dovelopment

Ans.

Programming development is the process of creating software programs using programming languages and tools.

  • Programming development involves designing, coding, testing, and debugging software programs.

  • It requires knowledge of programming languages such as Java, Python, C++, etc.

  • Developers use various tools such as Integrated Development Environments (IDEs) and version control systems to aid in the development process.

  • Examples of programming development include creating web app...read more

Add your answer
Are these interview questions helpful?

Q7. Write code to navigate back and refresh

Ans.

Code to navigate back and refresh

  • Use driver.navigate().back() to navigate back

  • Use driver.navigate().refresh() to refresh the page

Add your answer

Q8. What is interface in java

Ans.

In Java, an interface is a reference type that can contain only constants, method signatures, default methods, static methods, and nested types.

  • Interfaces in Java are similar to classes but they provide a way to achieve abstraction and multiple inheritance.

  • Interfaces are declared using the 'interface' keyword.

  • Classes can implement multiple interfaces, but they can only extend one class.

  • Interfaces can have methods without a body, which must be implemented by the class that imp...read more

Add your answer
Share interview questions and help millions of jobseekers šŸŒŸ

Q9. Difference between Assert and verify

Ans.

Assert is used to validate the expected result while verify is used to check the actual result without stopping the execution.

  • Assert is used to validate the expected result in a test case

  • Verify is used to check the actual result without stopping the execution

  • Assert will stop the execution if the validation fails

  • Verify will continue with the test case execution even if the verification fails

Add your answer

Q10. Difference between final and finally

Ans.

final is a keyword used to declare constants in Java, while finally is a block of code used in exception handling to ensure cleanup tasks are always executed.

  • final is used to declare constants in Java

  • finally is a block of code used in exception handling to ensure cleanup tasks are always executed

  • final variables cannot be reassigned, while finally block always executes regardless of exception handling

Add your answer

Q11. Explain Architecture of microservice.

Ans.

Microservice architecture is an architectural style that structures an application as a collection of loosely coupled services.

  • Each service is self-contained and can be deployed independently.

  • Services communicate with each other over lightweight protocols like HTTP or messaging queues.

  • Each service is responsible for a specific business function.

  • Microservices can be developed, deployed, and scaled independently.

  • Examples: Netflix, Amazon, Uber

Add your answer

Q12. What is oops CONCEPT

Ans.

Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.

  • OOP focuses on creating objects that interact with each other to solve problems.

  • Key concepts include encapsulation, inheritance, polymorphism, and abstraction.

  • Encapsulation involves bundling data and methods that operate on the data into a single unit.

  • Inheritance allows a class to inherit properties and be...read more

Add your answer

Q13. What is collision

Ans.

Collision is when two or more objects come into contact with each other, often resulting in a change in their motion or state.

  • Collision can occur in various fields such as physics, engineering, and computer science.

  • In physics, collision refers to the interaction between two or more particles or objects, where momentum and energy are transferred.

  • In engineering, collision may refer to the impact between two vehicles or structures.

  • In computer science, collision can occur in hash...read more

Add your answer

Q14. program for reverse string

Ans.

Program to reverse a string using array of characters

  • Create an array of characters to store the input string

  • Iterate through the input string and store each character in the array

  • Iterate through the array in reverse order to construct the reversed string

Add your answer

Q15. Explain about java

Ans.

Java is a popular programming language known for its platform independence and object-oriented approach.

  • Java is a high-level, class-based, object-oriented programming language.

  • It is designed to have as few implementation dependencies as possible, making it platform-independent.

  • Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM).

  • Java has a rich set of APIs and libraries, making it suitable for a wide range of applications.

  • Popular...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Nasser S. Al Hajri Corporation

based on 19 interviews
3 Interview rounds
Resume Shortlist Round
Technical Round - 1
Technical Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Softwaretest Engineer Interview Questions from Similar Companies

4.3
Ā ā€¢Ā 23 Interview Questions
3.7
Ā ā€¢Ā 16 Interview Questions
3.5
Ā ā€¢Ā 14 Interview Questions
4.0
Ā ā€¢Ā 13 Interview Questions
3.7
Ā ā€¢Ā 13 Interview Questions
3.6
Ā ā€¢Ā 11 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

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