• Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard
CSEstack

What do you want to Learn Today?

  • Programming
    • Tutorial- C/C++
    • Tutorial- Django
    • Tutorial- Git
    • Tutorial- HTML & CSS
    • Tutorial- Java
    • Tutorial- MySQL
    • Tutorial- Python
    • Competitive Coding Challenges
  • CSE Subject
    • (CD) Compiler Design
    • (CN) Computer Network
    • (COA) Computer Organization & Architecture
    • (DBMS) Database Management System
    • (DS) Data Structure
    • (OS) Operating System
    • (ToA) Theory of Automata
    • (WT) Web Technology
  • Interview Questions
    • Interview Questions- Company Wise
    • Interview Questions- Coding Round
    • Interview Questions- Python
    • Interview Questions- REST API
    • Interview Questions- Web Scraping
    • Interview Questions- HR Round
    • Aptitude Preparation Guide
  • GATE 2021
  • Linux
  • Trend
    • Full Stack Development
    • Artificial Intelligence (AI)
    • BigData
    • Cloud Computing
    • Machine Learning (ML)
  • Write for Us
    • Submit Article
    • Submit Source Code or Program
    • Share Your Interview Experience
  • Tools

Zoho Interview Coding Questions with Answers

Want to Share your Interview Experience?/13437/3
Placement Interview
YouTube CSEstack

Zoho is one of the leading SAAS firms in the world having its headquarters in Chennai, India. It has more than 30 products for different types of applications like CRM, Sales, Marketing, Support, HR, Payroll, Project management, and much more.

This is one of the very good and well-established product companies in India which hires software engineers freshers and experienced to work on awesome products that solves complex and real life problems.

Zoho Interview Coding Questions

For freshers, they mostly ask programming questions based on an array, string, and Linked lists.

Table of Contents

  • Coding Question 1: Based on String
    • C Program
    • Python Program
  • Coding Question 2: Based on the Array
    • C Program
    • Python Program

Coding Question 1: Based on String

Input: a1b2c3
Output: abbccc
Caution: Don't use inbuilt functions

Explanation:

  • After we have the number 1 so a repeats one time = a
  • After b we have the number 2 so it repeats two times = bb
  • After c we have the number 3 so it repeats three times = ccc
  • Final Output: abbccc

Algorithm:

  • Start the Program
  • Get the input as a single string
  • Loop through the entire string to find the numbers
  • After finding the number, Repeat the previous character the same number of times
  • For example a4 ( So you find the number 4 and print a 4 times)
  • Follow the steps 3,4 for the entire string
  • End the Program

C Program

Prerequisite:

  • basic data types in C
  • loop statement in C

Code:

#include<stdio.h>
int main()
{
  char str[100]="a1b2c4";
  int len=0;
  while(str[length]!='\0')
    len++;
  for(int i=0; i<len; i++)
  {
    if(str[i]>'0' &amp;&amp; str[i]<'9')
    {
      int num=str[i]-'0';
      for(int j=0; j<num; j++)
      {
        printf("%c", str[i-1]);
      }
    }
  }
}

Output:

abbcccc

Python Program

If you know the Python basic syntax, you can implement the same program in Python in very few lines of code. That’s the beauty of Python programming.

Prerequisite:

  • range() function in Python
  • Python for-loop

Code:

msg="a1b2c4"
out = ""

for ind in range(0, len(msg), 2):
  out += (msg[ind] * int(msg[ind+1]))

print(out)

Output:

abbcccc

Coding Question 2: Based on the Array

Input: [2,1,0,-8,-9]
Output: 0.4 , 0.2 , 0.4

Explanation:

  • First, find the total number of elements in the array = 5
  • Find the total number of positive numbers=2
  • Find the total number of neutral numbers=1
    (0 is the only neutral number)
  • Find the total number of negative numbers=2
  • Output = [ (no of positive number/length of array), (no of neutral numbers/length of array), (no of negative numbers/length of array) ]
    =[⅖, ⅕, ⅖]
    =[0.4, 0.2, 0.4]

Algorithm:

  1. Start the Program
  2. Get the input as an array
  3. Find the length of the array
  4. Find the number of positive, neutral, and negative numbers
  5. Divide each one of the above results with the length of the array and print the output as an array( Make sure you print the output in float format and use 0.1f for one precision)
  6. Stop the program

C Program

Here we are using sizeof() operator.

#include<stdio.h>
int main()
{
  int a[]={1,2,4,-8,-1,0};

  int n=sizeof(a)/sizeof(int);
  int np, nz, nn;
  for(int i=0; i<n; i++)
  {
    if(a[i]>0)
    {
      np++;
    }
    else if(a[i]<0)
    {
      ne --;
    }
    else
    {
      nz++;
    }
  }
  printf("%0.1f , %0.1f , %0.1f ", np/n, nz/n, nn/n);
  return 0;
}

Output:

0.6 , 0.2, 0.4

Python Program

Let’s solve the same question in Python programming.

list_data =  [2,1,0,-8,-9]

count_positive = 0
count_neutral = 0
count_negative = 0
length_arr = len(list_data)

for val in list_data:
  if val>0:
    count_positive += 1
  elif val<0:
    count_negative += 1
    else:
      count_neutral += 1

print(
  count_positive/length_arr, 
  count_neutral/length_arr, 
  count_negative/length_arr
)

Output:

0.4 0.2 0.4

There can be multiple types of coding questions asked based on the string, array. If you get the basics, you can solve these coding challenges in C/C++, Java, Python, or any programming languages of your choice.


Editors’ Note: This is all about Zoho interview coding questions and experience shared by R.Manoj Aiyer. We wish him all the best!

If you have any questions, you can ask in the comment section.

Python Interview Questions eBook

interviewZoho
Want to Share your Interview Experience?
This interview questions and experience are shared by one of the readers like you. You can share your interview experience as well. If you want to help new job aspirants to get their dream job, kindly share your experience on CSEstack Portal, by filling this simple form. It will be published on our portal. Thank You!

Your name can also be listed here. Got a tip? Submit it here to become an CSEstack author.

Comments

  • Reply
    Jonathan P B
    October 12, 2020 at 4:24 pm

    Awesome

  • Reply
    Abhimanyu
    January 31, 2021 at 10:22 pm

    but on my side, the code is not accepting the error was showing in the for loop the error is they have do not declare for the int i and the statement missing.

    • Reply
      Aniruddha Chaudhari
      February 1, 2021 at 10:27 am

      From the above list of questions, which coding question you are talking about?

Leave a Reply Cancel reply

100+ Company’s Interview Questions



You can share your interview experience.

Job Preparation Stack

03 Types of IT Engineers in Demand

05 Programming Skills for Jobs

05 Programming for High Paying Jobs

11 Software Developer Skills for Jobs

07 Tips for Standard CV Format

05 Guidelines for Writing Best SoP

13 Aptitude Preparation Tips

07 Steps for Effective Job Search

07 HR Interview Questions

57 Coding Interview Questions

57 Python Interview Questions

Summer Internships 2019

Why Internship?

Apply Internships in IIT, NIT, IIIT

Programming Tutorials

C/C++ Programming

Python Programming

Java Programming

© 2021 – CSEstack.org. All Rights Reserved.

  • Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard