Purpletalk Fresher Interview Questions – Part – I
In this blog we are discussing about Purpletalk Fresher Interview Questions – Part – I in a detailed manner with various examples . Some of them are :
Java Test
1) Java program to count the occurrences of each character
Input : purpletalk
Output :
Number of Occurrence of p is : 2
Number of Occurrence of u is : 1
Number of Occurrence of r is : 1
Number of Occurrence of I is : 2
Number of Occurrence of e is : 1
.
.
.
_______________________________________________________________________________
2) Java program to reverse a number
Input : 8975
Output : 5798
______________________________________________________________________________
3. Write a program to maintain a list of students who are part of a course.
A student can have name, email, course and roll number as its attributes.
The program should take a command line input to perform the following actions on the list.
Store – Add a student into the list.
Remove – Remove a student from the list.
List – Show all the students available in the list.
Modify – Update the students details
_______________________________________________________________________________
4 . Java program to find the number of words in String ?
Input : Hello , how are you
Output : 4
_______________________________________________________________________________
5 . Program to find the common part of the given two strings ?
The common part should contain at least two characters.
Example :
String 1 : yesterday
String 2 : yesteryear
ANSWER : yester
_______________________________________________________________________________
6 . 10 employees joining a company . Among them 5 belong to java , 3 belonging to Android and 2 belonging to the HTML .
The id of the employee is of the format X cube – J – 1 .
Here X cube is login key for X cube systems. J for Java and 1 for employee id same way . Android like X cube – A – 1 and HTML X cube – H – 1 validate the employee if his entering into x cube systems and print a statement like ‘ 1 entered into x cube system ’ and based on their domain assign block J for Java , A for Android block and print statement like “ 2 id entered into Java block ”
If the employee does not have domain print statement “ No domain assigned till now ” and if the employee doesn’t have X cube as their company name print “ Not authorized person to login ”
_____________________________________________________________________________________
|
|