Today I attended the zoho written test in chennai. They have changed the written test pattern. Usually I expect a booklet of questions from them. But today I got a single question paper. It has 5 simple programming questions. We asked to write a program for those questions.
They are very simple questions.
We can choose whatever language we want.
We are not allowed to use any collections. like ArrayList, Hashmap, string functions.
Inputs can be hard coded.
We can use print statements.
We have to cover most of the use cases.
These are the questions asked today.
1. Print the sum all the numbers in a given array
example: 2 4 output: 8
-1 3
2. Print the count of non-continuous vowels in a given string:
example: 1) Welcome - output - 3
2) wood - output - 0
3. Count the number of 0's in the 8-bit representation of the given number:
example: 1) 3 - 0000 0011 - output - 2
2) 23 - 0001 0111 - output - 4
4. Print the value in a array if it is a odd number and if it is in a odd index position.
example: 1) [2,5,3,7] - output 5,7
5. Given two unsorted arrays. Merge those two arrays in a single sorted array.
They are very simple questions.
We can choose whatever language we want.
We are not allowed to use any collections. like ArrayList, Hashmap, string functions.
Inputs can be hard coded.
We can use print statements.
We have to cover most of the use cases.
These are the questions asked today.
1. Print the sum all the numbers in a given array
example: 2 4 output: 8
-1 3
2. Print the count of non-continuous vowels in a given string:
example: 1) Welcome - output - 3
2) wood - output - 0
3. Count the number of 0's in the 8-bit representation of the given number:
example: 1) 3 - 0000 0011 - output - 2
2) 23 - 0001 0111 - output - 4
4. Print the value in a array if it is a odd number and if it is in a odd index position.
example: 1) [2,5,3,7] - output 5,7
5. Given two unsorted arrays. Merge those two arrays in a single sorted array.
example:) [5,2] [6,1,3] - output [1,2,3,5,6]
Comments
Post a Comment