Zoho Interview Questions


In 1996, the Zoho corporations established Zoho as a start-up, and as time passed, it has grown to be a leading and multinational company with more than 9000 people working for them with offices across the globe. Moreover, Zoho is a SAAS company which provides Software as part of its services. This software can produce solutions to solve business problems. Zoho is a product-based company with more than 40 products, 1000 extensions, and more than 60 million users, and these numbers are constantly rising. In this article, we will look at some of the toughest Zoho interview questions that the employer will ask to hire the best talent among the candidates.

Zoho was initially known as the AdveneNet, which was initially used to provide network management software, and within the first 5 years in the market, it met international standards. It expanded the official operations in Japan. Zoho has over 50 applications that sjerve 9 domains: customer service, sales marketing, email and collaboration, human resource, finance, IT management and security, legal business intelligence, and custom solutions.

Know More About Zoho

With the help of Zoho, companies can operate entirely in the cloud or use Zoho with pre-existing on-premises applications. The platform offers a wide range of mobile applications that help businesses stay productive while on the go. Zoho takes pride in being easy to use and powerful to meet the most complex demands of businesses worldwide. Moreover, Zoho offers a cloud-based service, companies and enterprises can sign up and use Zoho without any long-term commitments or paying any upfront costs.

Zoho is a modern, smart, and user-friendly HR software application that offers the best services to help brands worldwide grow. Their popular HR management tools offer a comprehensive suite of business applications and tools for SMBs. Moreover, it is a flexible platform that you can easily deploy out of the box. This HRIS 

Moreover, tools help in automating the entire HR process gamut process. It helps to ensure that the employees’ potential is to the fullest. Additionally, it is best for businesses looking for an HR platform that businesses can easily deploy without additional customization. Businesses can easily create and send the designed financial forms. And since it will make the process quick and easy, one can easily stay at the top of the finances.

When going for the Zoho interview, they will ask you several Zoho interview questions and answers based on the difficulty level of basic to advance. Let us now look at the top interview question and answers.

What is Java?

Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies. It is a fast, secure, and reliable computing platform for application development.

What are the differences between C++ and Java?

C++ uses only a compiler, supports both operator overloading & method overloading and supports manual object management with the help of new and delete keywords whereas Java uses compiler and interpreter both, supports method overloading and has built-in automatic garbage collection.

List the features of Java Programming language.

  • Object Oriented. In Java, everything is an Object.
  • Platform Independent.
  • Simple.
  • Secure.
  • Architecture-neutral.
  • Portable.
  • Robust.
  • Multithreaded

What do you understand about Java virtual machines?

The Java Virtual Machine (JVM) is the runtime engine of the Java Platform, which allows programs written in Java or other languages compiled into Java bytecode to run on any computer that has a native JVM. Also, you can cache the compiled program in the computer for reuse.

How do you develop a program using Java?

Developing a program using Java involves many steps. First, create a class that defines the program. Next, you must write a primary method to execute the program. Finally, you need to compile the program and run it.

Here is a basic outline of the steps you need to follow:

  • Create a class that defines the program.
  • Write a primary method that will execute the program.
  • Compile the program.
  • Run the program.

What is the difference between JDK, JRE, and JVM?

JDK expands as Java Development Kit is a software development kit whereas JRE (Java Runtime Environment) is a software bundle that allows Java programs to run, whereas Moreover, JVM is referred as Java Runtime Environment is an environment for executing bytecode.

What are data structures?

Data structures are an essential part of computer science. They store and organize data in a way that is efficient and easy to access. The most common data structures are arrays, linked lists, trees, and hash tables. Arrays are used to store data in a linear fashion, linked lists are used to store data in that manner which allows for quick insertion and deletion, trees are used to store data in a hierarchical manner, and hash tables are also used to store data in a way that allows for quick access.

What is a JIT compiler?

A just-in-time (JIT) compiler is a compiler that compiles code during program execution, rather than ahead of time. Traditional compilers compiled code, transitioning between code input and machine language, well before runtime. Moreover, a JIT compiler is a way to compile in real time or on the fly as the program executes.

What are Java Packages? What’s the significance of packages?

Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for: Preventing naming conflicts. For example there can be two classes with the name Employee in two packages, college.

How do you implement a stack?

There are two most common ways for stack implementation: an array or a linked list.

If you use an array, you will need to keep track of the top element in the stack. The principal element is the element that will be popped off the stack first. To push an element onto the stack, you will add it to the end of the array. To pop an element off the stack, remove the element from the end of the array.

If you use a linked list, you will need to keep track of the head and tail of the list. The head is the element that will be popped off the stack first. To push an element onto the stack, you will add it to the front of the list. To pop an element off the stack, remove the element from the front of the list.

Can we declare a class as Abstract without having any abstract method?

Yes, we can declare an abstract class without any abstract method. The purpose of declaring a class as abstract is not to instantiate the class. Declaring an abstract class means that it cannot be instantiated on its own and can only be subclassed.

What’s the difference between an Abstract Class and Interface in Java?

The Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. An abstract class is used to define a contract, method implementations for the subclass, whereas an interface is used to define a contract for subclasses.

Tell me the pros and cons of using SQL Server over Oracle?

There are a number of advantages and disadvantages to using SQL Server over Oracle. Some of the advantages include the following:

  • SQL Server are more user friendly than Oracle
  • SQL Server is less expensive than Oracle
  • SQL Server is more widely used than Oracle

Some of the disadvantages of SQL Server include:

  • SQL Server is less scalable than Oracle
  • SQL Server is less secure than Oracle
  • SQL Server is less stable than Oracle

How an object is serialized in java?

To serialize an object means to convert its state to a byte stream so that the byte stream can be reverted back into a copy of the object. A Java object is serializable if the class or any of its superclasses implements java.

How do you implement an array?

There are several ways of array implementation. The more frequent method is to use an array index to store data in a contiguous block of memory. This means that data is stored next to each other in memory. Another way to implement an array is to use a linked list. This is a data structure where each element is stored in a node, and nodes are linked together.

When should we use serialization?

Serialization in Java allows us to convert an Object to a stream that we can send over the network or save it as file or store in DB for later usage. Its main purpose is to save the state of an object in order to be able to recreate it when needed.

Find the longest increasing subsequence in the array.

Sub-sequence is defined as a set of elements in the array such that they are in increasing order and are consecutive to each other. For example, in the array {3, 4, -1, 0, 6, 2, 3}, the longest increasing sub-sequence is {-1, 0, 2, 3}.

When is the constructor of a class invoked?

Each time an object is created using a new() keyword, at least one constructor is invoked to assign initial values to the data members of the same class. A constructor is invoked at the time of object or instance creation.

How do you ensure data integrity in your database?

Data integrity refers to the accuracy and consistency of your data. There are a number of ways to ensure data integrity in your database. Firstly, you should design your database in such a way that it is resistant to changes in data. Also, done by using data validation rules and ensuring that your data is stored in a consistent format. Secondly, you should have procedures in place to regularly check and verify the accuracy of your data. These procedures might include running data quality checks or auditing your data. 

Is String a data type in java?

A String in Java is actually a non-primitive data type, because it refers to an object. The String object has methods that are used to perform certain operations on strings.

Why are Strings in Java called Immutable?

String is Immutable in Java because String objects are cached in the String pool. Since cached String literals are shared between multiple clients there is always a risk, where one client’s action would affect all another client.

What is multi-threading?

Multithreading in Java is a process of executing two or more threads simultaneously to maximum utilization of CPU. Its applications execute two or more threads concurrently. Hence, it is also known as Concurrency in Java. Each thread runs parallel to each other.

What is the Key difference between a thread and a process?

23 What is the Key difference between a thread and a process?

A thread is a single sequence of execution within a process. A process can have multiple threads, all of which are executed concurrently. The main difference between a thread and a process is that a thread shares the same memory space as the process, while a process has its own memory space. This means that threads can communicate with each other more easily than processes.

Why is the Runnable Interface used in Java?

The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread. The class must define a method of no arguments called run. It is designed to provide a common protocol for objects that wish to execute code while they are active.

Write a program to sort the elements in odd positions in descending order and elements in ascending order

Eg 1: Input: 13,2 4,15,12,10,5

Output: 13,2,12,10,5,15,4

Eg 2: Input: 1,2,3,4,5,6,7,8,9

Output: 9,2,7,4,5,6,3,8,1

void bitonicGenerator(int arr[], int n)
{
// Your code goes here
vector<int>odd;
vector<int>even;
for(int i=0;i<n;) {="" even.push_back(arr[i++]);="" if(i<n)="" odd.push_back(arr[i++]);="" }="" sort(odd.begin(),odd.end());="" sort(even.begin(),even.end());="" reverse(odd.begin(),odd.end());="" even.insert(even.end(),odd.begin(),odd.end());="" for(int="" i="0;i<n;i++)" arr[i]="even[i];" }="">
26 Write a program to print the following output for the given input. You can assume the string is of odd length
Eg 1: Input: 12345
Output:
1       5
  2   4
    3
  2  4
1      5
Eg 2: Input: geeksforgeeks
Output:
g                         s
  e                     k
    e                 e
      k             e
        s         g
          f      r
             o
          f     r
        s         g
      k             e
    e                 e
  e                      k
g                          s
// CPP program to print cross pattern
#include<bits/stdc++.h>
using namespace std;
// Function to print given string in
// cross pattern
void pattern(string str, int len){
    // i and j are the indexes of characters
    // to be displayed in the ith iteration
    // i = 0 initially and go upto length of
    // string
    // j = length of string initially
    // in each iteration of i, we increment
    // i and decrement j, we print character
    // only of k==i or k==j
    for (int i = 0; i < len; i++)
    {
        int j = len -1 - i;
        for (int k = 0; k < len; k++)
        {
            if (k == i || k == j)
                cout << str[k];
            else
                cout << " ";
        }
        cout << endl;      
    }
} 
// driver code
int main ()
{
    string str = "geeksforgeeks";
    int len = str.size();
    pattern(str, len);
    return 0;
}
//
27 . Find if a String2 is a substring of String1. If it is, return the index of the first occurrence. else return -1.
Eg 1:Input:
        String 1: test123string
         String 2: 123
Output: 4
Eg 2: Input:
        String 1: testing12
        String 2: 1234 
Output: -1
#
python code:
class Solution:
   def isSubSequence(self, A, B):
       #code here
       i = 0
       j = 0
       while i < len(A) and j < len(B):
           if A[i] == B[j]:
               i += 1
           j += 1
       if len(A) == i:
           return True
       return False

Given two sorted arrays, merge them such that the elements are not repeated

Eg 1: Input:

        Array 1: 2,4,5,6,7,9,10,13

        Array 2: 2,3,4,5,6,7,8,9,11,15

Output:

Merged array: 2,3,4,5,6,7,8,9,10,11,13,15

Gap algorithm implemented using pointers C++

void swap_func(long long* cur1, long long* cur2){
    long long tmp = *cur1;
    *cur1 = *cur2;
    *cur2 = tmp;
}
void merge(long long arr1[], long long arr2[], int n, int m) { 
    long long gap = (n + m) / 2 + (n + m) % 2;
    while(gap >= 1){
        long long it1 = 0, it2 = gap;
        while(it2 < n + m){
            long long *cur1, *cur2;           
            if(it1 >= n)    cur1 = &arr2[it1++ - n];
            else    cur1 = &arr1[it1++];
            if(it2 >= n)    cur2 = &arr2[it2++ - n];
            else    cur2 = &arr1[it2++];   
            if(*cur1 > *cur2)   swap_func(cur1, cur2);
        }
        if(gap == 1)    break;
        gap = (gap / 2) + (gap % 2);
    }
}

Using Recursion reverse the string such as

Eg 1: Input: one two three

Output: three two one

Eg 2: Input: I love india

Output: india love I

string reverseWords(string S) 
    { 
     int left=0;
     int right=S.length()-1;
     string temp="";
     string ans="";
     int count=0; // to handle test case of having single word
       while(left<=right)
        {
         // if char is not '.' then store char in temp
         if(S[left]!='.') 
         {
             temp+=S[left];
         }
 //if char is '.' then initialize count=1 indicates that at     least one '.' is present
 //ans is used to strong final result by concatenate with string store in temp         
         else if(S[left]=='.')
         {
             count =1;
             if(ans!="")
                 ans=temp+"."+ans;
             else
                 ans=temp;
             temp="";
         }
             left++;
        }
  //case when we are at last word and also if string contains only one word       
        if(temp!="" && count==1)
        ans=temp+"."+ans;
        else
        ans=temp;
           return ans;  
    }

How Might I Enable Cookies In My Browser?

Generously utilize the accompanying strategy to empower the treats in your program : 

Web Explorer 

In Internet Explorer, click Tools at the highest point of the window. 

Select Internet Options. 

Snap the Privacy tab. 

In the focal point of the Privacy tab screen, there ought to be an Advanced catch. Snap this catch. 

Guarantee that “Supersede programmed treat taking care of” is checked. 

First-and outsider treats ought to be set to “Acknowledge.” 

Check “Consistently permit meeting treats.” 

Snap “alright.” 

Leave Internet Explorer and restart your program 

Drama 

From the File menu, pick Preferences. 

Snap the Privacy class. 

Check Enable Cookies. 

From the Normal Cookies drop-down menu, select “Naturally acknowledge all treats.” 

From the Third Part drop-down menu, select “Naturally acknowledge all treats.” 

Snap OK. 

Mozilla Firefox 

Select Tools | Options… from the primary menu. 

Select Privacy from the left board of alternatives. 

Grow the Cookies alternatives on the right. 

Select “Empower Cookies.” 

Select “for the starting site as it were.” 

Safari 

From the Safari Menu, pick Preferences. 

Snap the Security symbol. 

In the Accept Cookies: choice box, picked Always or Only from locales you explore to. 

Google Chrome 

Snap “Settings” button (Customize and control Google Chrome) 

Snap “Alternatives” – > “In the engine” tab – > “Content Settings” 

Pick “Permit nearby information to be set” 

Leave the “Square all outsider treats no matter what” unchecked

What Are Zoho Reports?

Zoho Reports is an on-request revealing and business knowledge arrangement that causes you to get new bits of knowledge on your business data through its ground-breaking and adaptable online business insight motor. You get incredible reports in minutes, with no IT help. 

Zoho Reports offers the accompanying significant abilities: 

Complete Online Reporting and Business Intelligence administration available whenever and anyplace! 

Simple to embrace ‘Spreadsheet-like’ interface for information expansion and report creation. 

Ground-breaking drag and drop based announcing highlights for speedy report creation. 

Visual Analysis ability for inside and out investigation and to cut and shak your information. 

Supports Charts, Pivot Tables, Summary, Tabular reports and Dashboards. 

Supports information import from an assortment of document designs including Excel, Open Office, CSV, TSV, HTML, JSON and other distributed storage gadgets. Additionally bolsters planning import at intermittent intervals. 

Push information from customary in-house applications and databases with clump instruments or API (application programming interface) to Zoho Reports. 

Offers coordination with other Zoho administrations like Zoho CRM, Creator, Projects, BugTracker and Recruit to empower amazing detailing and examination on the information gathered in these administrations. 

Supports relating information with one another through look-into sections (as you have in a social database) to empower joining of informational collections for revealing. 

SQL (Structured Query Language) driven questioning for incredible report creation. Compose SQL inquiries in any of the natural database tongues, including Oracle, SQL Server, IBM DB2, MySQL, PostgreSQL, Informix and ANSI SQL.

Who Should Use Zoho Reports?

Reports can be utilized across different useful territories and by a wide scope of clients for their announcing and diagnostic needs. Peruse progressively about who can profit by Zoho Reports.

What Is The Difference Between Spreadsheets And Zoho Reports?

Zoho Reports is a predominant BI and Reporting apparatus when contrasted with Spreadsheets 

The spreadsheet, particularly Microsoft Excel, is the most broadly utilized business insight and revealing device over any undertaking (little or large). It acts both as an information assortment/mix apparatus just as a decent revealing and investigation device. It has been the true device for both business investigation and detailing. 

Notwithstanding, in the new period of on-request business programming and the requirement for a synergistic and constantly associated business arrangement, there are territories in which spreadsheets are restricted as your business knowledge device.

Who Is Behind Zoho?

It is the division of ZOHO Corporation which is a US-based organization that has been making and selling cutting-edge software arrangements since 1996. Zoho has a vast number of clients around the world, is secretly held and beneficial.

What Is The Difference Between Zoho Reports and Spreadsheets?

The spreadsheet, particularly Microsoft Excel, is the most broadly used business intelligence and detailing tool over any enterprise (big or small). It acts both as the data integration/collection tool and also a good reporting and investigation tool. It has been the accepted tool for both business reporting.

Zoho Reports then again is an unrivaled BI and Reporting tool when contrasted with Spreadsheets.

Nonetheless, in the new time of on-demand business software and a requirement for communitarian and associated continuous business setup, there are zones in which spreadsheets are restricted as your business knowledge device.

What do you know about The “Account Administrator”?

An Account Administrator is a person who buys into the Zoho Reports account. The Admin has the specialist to play out every conceivable task accessible. This incorporates:

  • Share Reports and Data to Users
  • Add and erase Reporting Databases
  • Create, adjust and erase Reports and Dashboards
  • Add, update and also delete data
  • Upgrade or downsize Zoho Reports account
  • Add and erase Users and Database Owners

Does Zoho Reports Support Creating Dashboards?

Indeed, Zoho Reports supports dashboard creation. Zoho Reports gives a simple to utilize intuitive interface for making custom dashboards in minutes. Utilizing the dashboard you can show an assortment of reports in a solitary page, giving a speedy initial perspective on your Key Business Information for simple examination and perception. 

Could Zoho Reports Be Used as An Online Database?

Zoho Reports is an Online Reporting and Business Intelligence administration, in this manner yes it tends to be utilized as an online database. The highlights offered by Zoho Reports practice on giving an inside and out – amazing and adaptable detailing capacities. It contains an in-assembled scientific database matrix, which is improved for announcing and questioning something other than filling in as a continuous online value-based database. 

Clarify how CRM can be useful in taking care of emails from clients?

 CRM can be useful in:

  •   Sorting messages from clients by work process empowered email handling capacities.
  •   Automatically route emails to proper clients given work process rules
  •   Manage various attachments in the emails
  •   Sending answers to the client automatically
  • Associating messages with separate clients and occurrences

Tell us what are the essential modules in CRM?

The most vital modules in CRM include:

  • Marketing
  • Inventory
  • Sales
  • Service Desk

What Are The Browsers Supported By Zoho Reports?

Zoho Reports underpins the accompanying programs: 

Google Chrome – Latest 3 forms 

Firefox – Latest 3 renditions 

Safari – Latest 3 variants 

Web Explorer – variant 9 or more 

Microsoft Edge – Latest rendition 

The above programs have been tried in the accompanying stages: 

Windows XP, Windows Vista, Windows 7, Windows 8 and Windows 10 

Macintosh OS 

Ubuntu and Linux OS 

Systems administration Tutorial

Tell a few elements that can impede CRM (Customer Relationship Management/Manager) accomplishment to an association?

The hindrance for CRM accomplishment to an association incorporate

  •   The absence of a reasonable transitional process
  •    The fundamental spotlight is on item sale and topographical division of market
  •   Key execution estimations are not followed
  •   Weak functional part of the organization
  •   Lack of reaction to clients input and suggestions
  •   Introducing other technology without actualizing the essential structure

What Is The Best Viewed Screen Resolution For Zoho Reports?

Zoho Reports is best seen in 1280 * 720 screen goals or more. 

What Are the Languages Supported by Zoho Reports User Interface?

Zoho Reports UI is accessible in nine distinct dialects. 

English 

Chinese 

French 

German 

Italian 

Japanese 

Portuguese 

Portuguese 

Spanish 

Dutch 

Russian

How Do I Change The Language Of My Zoho Reports User Interface?

The Zoho Reports User interface language choice depends on the area setting in the client’s program. On the off chance that you have an alternate language setting in your program, you can transform it from the Zoho Accounts page. You may need to hang tight for 10 minutes, or logout and login once more, for the language change to impact in the UI.

How Is The “quantity Of Rows” Stored Counted?

The quantity of lines (records) is the aggregate of all lines put away over the entirety of your database in your Zoho Reports account. i.e., when you have 2 databases with 3 tables in every one of them. Furthermore, each table contains 100,000 columns. At that point the all out number of lines in your Zoho Reports account is determined as 6,00,000 (1,00,000 columns * 6 tables).

The amount Zoho Reports Cost?

The evaluating for Zoho Reports begins at $50/month (bolsters 5 clients, 500,000 columns and boundless announcing databases in the record). There are different plans running till $495 every month (50 clients, 25 million columns and boundless detailing databases). Zoho Reports additionally offers a Free Plan ($0) directed at little end announcing prerequisites. It bolsters 2 clients, 5 revealing databases and 100,000 lines in your record. 

How Do You Define A “Client” By Zoho Reports Pricing Model?

Anybody to whom at any rate one view in the Zoho Reports account is secretly shared is viewed as a User in the Zoho Reports evaluating model. These private clients are required to have a record in Zoho Reports and they have to login with their client name and secret key to get to the perspectives shared to them in that comparing Zoho Reports account. Clients are distinguished by their interesting email address, to which the perspectives in Zoho Reports account are shared. 

Record Administrator is additionally considered as a User. At the point when you buy in an arrangement with 5 clients, at that point you secretly share the information/reports in your record with 4 different people for joint effort. Presently your Zoho Reports account is said to have 5 clients (Admin + 4 clients). 

By adding new clients to your record, you could without much of a stretch team up with them. The Administrator has the full oversight on who can get to the perspectives. The manager can allow consent to perform activities, for example, include, change and erase information, make new reports and offer perspectives inside a gathering, aside from simply seeing the common reports. Mutual clients will have the option to perform just the activity that the administrator has allowed.

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:

C

#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:

Python

msg="a1b2c4"

out = ""

for ind in range(0, len(msg), 2):

 out += (msg[ind] * int(msg[ind+1]))

print(out)


Output:
abbcccc

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 the 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.

Python

Python

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