Add office photos
Employer?
Claim Account for FREE

Barclays

3.9
based on 2.2k Reviews
Filter interviews by

Zones Corporate Solutions Interview Questions and Answers

Updated 6 Jan 2025
Popular Designations

Q1. How you will find the smallest of 4 numbers without using >.< and min function using java

Ans.

Finding smallest of 4 numbers without using >.< and min function in Java.

  • Initialize a variable with the first number

  • Compare it with the remaining numbers using if-else statements

  • If a smaller number is found, update the variable

  • Repeat until all numbers are compared

  • The final value of the variable will be the smallest number

View 1 answer

Q2. Swap two number without using temperory variable

Ans.

Swap two numbers without using a temporary variable.

  • Use addition and subtraction to swap the values

  • Use XOR operator to swap the values

  • Use multiplication and division to swap the values

Add your answer

Q3. How you will add 2 table

Ans.

To add 2 tables, we need to use a join operation on a common column.

  • Identify the common column between the tables

  • Choose the appropriate join type (inner, outer, left, right)

  • Write the SQL query to join the tables

  • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column

Add your answer

Q4. Difference between union and union all

Ans.

Union combines and removes duplicates, Union All combines all rows including duplicates.

  • Union is used to combine the result sets of two or more SELECT statements and remove duplicates.

  • Union All is used to combine the result sets of two or more SELECT statements and includes all rows, including duplicates.

  • Union is slower than Union All as it has to remove duplicates.

  • Union requires the same number of columns in all SELECT statements, while Union All does not.

  • Example: SELECT col...read more

Add your answer
Discover Zones Corporate Solutions interview dos and don'ts from real experiences

Q5. Write a code for palindrome

Ans.

Code for palindrome checking

  • Convert the input to lowercase to ignore case sensitivity

  • Use two pointers, one at the start and one at the end of the string

  • Compare the characters at both pointers and move them towards each other

  • If all characters match, it's a palindrome

View 2 more answers

Q6. Write any javascript code

Ans.

Javascript code to display 'Hello World!' on the webpage

  • Create a new HTML file

  • Add a script tag with 'type' attribute set to 'text/javascript'

  • Inside the script tag, use document.write() to display 'Hello World!'

Add your answer

Q7. How does polymorphism work?

Ans.

Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • Polymorphism allows for methods to be called on objects of different classes that share a common superclass.

  • It enables flexibility and extensibility in object-oriented programming.

  • Examples include method overriding in inheritance and interfaces in Java.

Add your answer

Q8. Sort an array rotated at some pivot

Ans.

Sort an array that has been rotated at some pivot point.

  • Find the pivot point where the array is rotated.

  • Split the array into two subarrays based on the pivot point.

  • Sort each subarray individually.

  • Merge the sorted subarrays back together to get the final sorted array.

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

Interview Process at Zones Corporate Solutions

based on 5 interviews in the last 1 year
Interview experience
4.6
Excellent
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.8
 • 22 Interview Questions
4.2
 • 17 Interview Questions
4.0
 • 14 Interview Questions
3.5
 • 12 Interview Questions
3.9
 • 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