Wipro
10+ Nasser S. Al Hajri Corporation Interview Questions and Answers
Q1. 1.What are C tokens 2.Encapsulation 3.Polymorphism 4.Array 5.Pointers 6.Applet 7.Java 8.Datatype 9.String 10.Dbms
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
Q2. What is the difference between method overriding and method overloading?
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
Q3. Cake puzzle - How do you cake into 8 equal parts using 3 cuts.
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.
Q4. What is difference b/w findelement &find elements
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
Q5. Write a program to count occurnces of charecters of string
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.
Q6. What is programming dovelopment
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
Q7. Write code to navigate back and refresh
Code to navigate back and refresh
Use driver.navigate().back() to navigate back
Use driver.navigate().refresh() to refresh the page
Q8. What is interface in java
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
Q9. Difference between Assert and verify
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
Q10. Difference between final and finally
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
Q11. Explain Architecture of microservice.
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
Q12. What is oops CONCEPT
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
Q13. What is collision
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
Q14. program for reverse string
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
Q15. Explain about java
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
Top HR Questions asked in Nasser S. Al Hajri Corporation
Interview Process at Nasser S. Al Hajri Corporation
Top Softwaretest Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month