Il 0% ha trovato utile questo documento (0 voti)
4 visualizzazioni

Coding Test

Java coding Test for Beginers selections

Caricato da

Pavan Kumar
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato PDF o leggi online su Scribd
Il 0% ha trovato utile questo documento (0 voti)
4 visualizzazioni

Coding Test

Java coding Test for Beginers selections

Caricato da

Pavan Kumar
Copyright
© © All Rights Reserved
Per noi i diritti sui contenuti sono una cosa seria. Se sospetti che questo contenuto sia tuo, rivendicalo qui.
Formati disponibili
Scarica in formato PDF o leggi online su Scribd
Sei sulla pagina 1/ 2
set-1 1. Supposing two hash maps exist and having common values. Bring the common elements from both of them. 2. AHash map is having ‘n’ number of key-value pairs. Print each key-value on the console 3. vector is having n values, sort them and print on the console, 4, Get a reverse of a given String and Print String and its Reverse of it on console set-2 1. There are two variables a and b holding two integers and swap then using only two variables. 2. Vector is having the following values (Person and Specialty) separated by &. Sachin & Cricket Dhyan Chand & Hockey Milka Singh & Runt e Pele & Football Grahambell & Telephone KCR & Telangana Prepare a Hash map with Key as Specialty and Person as a value. 3. _Ahash map is having duplicate values, identify them and remove from hash map. 4, Write code to remove a character which is having most occurrences in the given String. set-3 1. AVector is stored with no. of integer values.Get the maximum number from it. 2. Ahash map is having ‘n’ number of key-value pairs, Create a second Hash map by using keys from the first map as values and values from the first map are the keys in the second. 3. Write code to get contents of text file and print the contents on the console. 4. Given two arrays like 1, 2,3,4,5 and 1,2,11,9,5, find which number is not present in the second array through java code. ‘Write a java program to check whether given string is a palindrome or not? Note: Palindrome means the string and reverse of it will be same like 101, 303, CIVIC, DAD etc. ‘Write code to get two numbers as inputs from console and print their sum in console. In a given String, identify the number of occurrences of a character and print the character and no. of concurrences? ‘Write code for generate Fibonacci numbers below 50. Fibonacci numbers are having the following series 0,1,1,2,3,5, 8,13..etc Hint: 0,(0+1),(1+1),(1+2),(2+3).....ete ‘A Vector is stored with no. of integer values. Get the maximum number from it. ‘Athash map is having ‘n’ number of key-value pairs. Create a second Hash map by using keys from the first map as values and values from the first map are the keys in the second. ‘Write code to get contents of text file and print the contents on the console. Given two arrays lke 1, 2,3,4,5 and 1,2,11,9,5, find which number is not present in the second array through java code.

Potrebbero piacerti anche