• 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 2022
  • 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
    • IDE
    • CV Builder
    • Other Tools …
  • Jobs

Zoho Interview Coding Questions with Answers

Want to Share your Interview Experience?/68520/18
Placement Interview

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 solve complex and real-life problems.

If you are applying for Zoho, make sure you have your resume created in a standard format and with ATS compliance. Most of the candidates get shortlisted through the ATS (Applicant Tracking System) tool.

Once your profile gets shortlisted, you will be asked for further interviews.

Zoho Interview Coding Questions

For freshers, they mostly ask programming questions based on an array, string, and Linked lists. To crack this round, check data structure and interview coding questions. Practicing these coding questions helped me to crack this round.

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 step 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' && 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 the array), (no of neutral numbers/length of the array), (no of negative numbers/length of the 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 language of your choice.

Also, check the technical interview coding questions asked in Zoho for freshers (based on experience shared by the candidate).


Editors’ Note: This is all about Zoho interview coding questions and experiences 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?

  • Reply
    Guna
    April 23, 2021 at 3:22 pm

    Whether we can choose Python for the level 2 coding test or we must do it only in C?
    I’m having my level2 coding test tomorrow pls help me out.

    • Reply
      Aniruddha Chaudhari
      April 24, 2021 at 8:31 am

      As per I know, you can choose the programming language of your choice. If the job requirement is for a specific programming language (let’s say Python) specialist, then it is recommended you use that language (Python) for competitive coding.

    • Reply
      Mayank
      October 22, 2021 at 6:45 pm

      Yes, I asked the interviewer shall I use java? He said NO. They only wanted to do in C.

  • Reply
    Rathika E
    June 19, 2021 at 4:16 pm

    Can I use Python in the 3rd level advanced programming round?

    • Reply
      Aniruddha Chaudhari
      June 20, 2021 at 7:58 pm

      Yeah. You can.

  • Reply
    Mandip
    August 30, 2021 at 9:52 pm

    In case a13 means it prints a in 13 times but it won’t print 13. Bro help please.

    • Reply
      SATHISH KUMAR S
      November 2, 2021 at 8:37 pm

      I have code. If you want, please ping me or contact me @ .

      • Reply
        Aniruddha Chaudhari
        December 20, 2021 at 5:29 pm

        You can always share your code. Feel free and help others.

      • Reply
        Riebikshanaa M
        October 20, 2022 at 1:16 am

        I need coding questions with answers for Zoho preparation sir. Kindly share with me.

  • Reply
    Yamuna
    September 5, 2021 at 8:48 am

    Can we use Python language coding for the 2022 batch passed outs in Zoho on-campus drive?

    • Reply
      Aniruddha Chaudhari
      September 12, 2021 at 11:16 am

      Yes, you can use any programming language unless they have not specified explicitly in their job description.

    • Reply
      Nadim
      November 12, 2021 at 8:54 am

      yes you can

  • Reply
    Vanita P
    December 3, 2021 at 1:06 pm

    Thank you for writing this.

  • Reply
    Siva
    July 24, 2022 at 5:42 pm

    For Zoho L2 and L3 tests they will watch the candidates or proctored?

  • Reply
    riyaz
    August 2, 2022 at 6:14 pm

    Hey Bro for 2nd program if the input is kinda like this “a10b20” how would you separate 10 and 20?

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 2022

Why Internship?

Apply Internships in IIT, NIT, IIIT

Programming Tutorials

C/C++ Programming

Python Programming

Java Programming

© 2022 – 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