Add office photos
o9 Solutions logo
Employer?
Claim Account for FREE

o9 Solutions

3.8
based on 222 Reviews
Video summary
Filter interviews by
Fresher
Clear (1)

o9 Solutions Interview Questions and Answers for Freshers

Updated 9 Sep 2024

Q1. Angle between hour hand and minute hand at 3:15

Ans.

The angle between the hour hand and minute hand at 3:15 is 7.5 degrees.

  • At 3:00, the hour hand is at the 3 o'clock position, which is 90 degrees.

  • In 15 minutes, the minute hand moves 90 degrees (360 degrees divided by 4).

  • The hour hand also moves slightly in 15 minutes, covering 7.5 degrees (30 degrees divided by 4).

  • Therefore, the angle between the hour hand and minute hand at 3:15 is 7.5 degrees.

Add your answer
right arrow

Q2. Factorial code using recursion

Ans.

Factorial code using recursion

  • Recursion is a technique where a function calls itself

  • Factorial of a number is the product of all positive integers less than or equal to that number

  • To calculate factorial using recursion, the base case is when the number is 0 or 1

  • The recursive step is to call the factorial function with the number decremented by 1 and multiply it with the number itself

Add your answer
right arrow

Q3. For what purpose trim used in sql?

Ans.

Trim is used in SQL to remove leading and trailing spaces from a string.

  • Trim function is used to remove leading and trailing spaces from a string

  • It is commonly used to clean up data before performing comparisons or concatenations

  • Syntax: TRIM([LEADING | TRAILING | BOTH] [characters] FROM [string])

  • Example: SELECT TRIM(' hello ') as trimmed_string

Add your answer
right arrow

Q4. Reverse the String Problem Statement

You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

Example:

Input:
STR = "abcde"
Output:
"edcba"

Input...read more

Ans.

The task is to reverse a given string that may contain lowercase letters, uppercase letters, digits, and special characters.

  • Iterate through the string from the last character to the first character and append each character to a new string.

  • Alternatively, you can use built-in string reversal functions or methods available in your programming language.

  • To solve the follow-up question with O(1) space complexity, you can use a two-pointer approach. Swap the characters at the start...read more

View 1 answer
right arrow
Discover o9 Solutions interview dos and don'ts from real experiences
Q5. How would you fetch data from two given tables with a common column without using the WHERE keyword?
Ans.

Fetch data from two tables with a common column without using WHERE keyword.

  • Use JOIN keyword to combine the two tables based on the common column.

  • Specify the common column in the ON clause of the JOIN statement.

  • This will retrieve all the rows where the common column values match in both tables.

Add your answer
right arrow

Q6. Factorial Calculation Problem Statement

Develop a program to compute the factorial of a given integer 'n'.

The factorial of a non-negative integer 'n', denoted as n!, is the product of all positive integers les...read more

Ans.

Develop a program to compute the factorial of a given integer 'n'.

  • Create a function to calculate factorial using a loop or recursion

  • Handle edge cases such as negative input or input exceeding constraints

  • Return 'Error' if factorial is undefined

  • Example: For input 5, output should be 120

Add your answer
right arrow

Q7. Angle Calculation Between Clock Hands

Given a specific time in hours and minutes, your task is to calculate the smallest possible angle between the hour hand and the minute hand of a clock.

Example:

Input:
T = ...read more
Ans.

Calculate the smallest angle between the hour and minute hands of a clock for a given time.

  • Calculate the angles of the hour and minute hands based on the input time.

  • Find the absolute difference between the angles of the hour and minute hands.

  • Return the smaller angle between the two possible angles.

  • Ensure to handle cases where the smaller angle is greater than 180 degrees.

Add your answer
right arrow
Q8. Write an SQL query to find students with scores above a particular threshold and sort them according to their scores and then by their names.
Ans.

SQL query to find and sort students with scores above a threshold

  • Use the SELECT statement to retrieve the required data

  • Use the WHERE clause to filter students with scores above the threshold

  • Use the ORDER BY clause to sort the results by score and then by name

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

Interview Process at o9 Solutions for Freshers

based on 2 interviews
Interview experience
4.5
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

HSBC Group Logo
3.9
 • 245 Interview Questions
Atos Logo
3.9
 • 185 Interview Questions
KPIT Technologies Logo
3.4
 • 171 Interview Questions
Hindalco Industries Logo
4.2
 • 155 Interview Questions
Quest Global Logo
3.6
 • 146 Interview Questions
Visa Logo
3.5
 • 143 Interview Questions
View all
Recently Viewed
SALARIES
Samsung Research
INTERVIEWS
Microsoft Research
No Interviews
INTERVIEWS
Huron
No Interviews
INTERVIEWS
Hindustan Unilever
No Interviews
INTERVIEWS
Huron
No Interviews
SALARIES
Texas Instruments
SALARIES
Samsung Research
SALARIES
Samsung Research
INTERVIEWS
Microsoft Research
No Interviews
SALARIES
Gartner
Top o9 Solutions Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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