IBM
Company
Programming
Program
please post the IBM GBS interview programming Questions (JAVA) for Associate Systems Engineer 2016 and 2017
Read Solution (Total 9)
-
- WAP to convert the alternate characters of the string to upper case . The first letter of the string has to be Capital.
I/P:We are the worlD
O/P: We ArE tHe WoRlD
I/P: this is some code
O/P: ThIs Is SoMe CoDe - 7 years agoHelpfull: Yes(10) No(0)
- hii can anyone plz send me aptitude questions and java pograms with coding to my mail:ramyasri.r1995@gmail.com. plz plz i need to be selected in this interview and im very much thankful to u.
- 7 years agoHelpfull: Yes(6) No(0)
- i) WAP to print next to the last word of a sentence
ii) WAP to remove the vowels from the input string
iii) WAP to convert uppercase to lowercase and vice versa of
a given string or sentence
iv) WAP to print the reverse
v) WAP to print the desired character from a string or search a
char in a string - 7 years agoHelpfull: Yes(5) No(0)
- WAP to print next to the last word of a sentence
-------------------------------------------------------------------
import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
String str=sc.nextLine();
String s[] = str.split(" ");
System.out.println(s[s.length-2]);
}
} - 6 years agoHelpfull: Yes(2) No(0)
- hii can anyone plz send me aptitude questions and java pograms with coding to me also anandesiakshay@gmail.com.
- 7 years agoHelpfull: Yes(0) No(0)
- Are they asking to write array programs in java coding round?
- 7 years agoHelpfull: Yes(0) No(0)
- WAP to remove the vowels from the input string
----------------------------------------------------------------------------------------
import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
String strOrig, strNew;
strOrig = sc.nextLine();
strNew = strOrig.replaceAll("[aeiouAEIOU]", "");
System.out.println(strNew);
}
} - 6 years agoHelpfull: Yes(0) No(0)
- WAP to convert uppercase to lowercase and vice versa of
a given string or sentence
---------------------------------------------------------------------------------------------
import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
int i,len;
char ch;
String str=sc.nextLine();
len=str.length();
for(i=0;i - 6 years agoHelpfull: Yes(0) No(3)
- WAP to print the reverse a String
-------------------------------------------------------------------
import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
String original, reverse = "";
Scanner sc=new Scanner(System.in);
original = sc.nextLine();
int length = original.length();
for ( int i = length - 1 ; i >= 0 ; i-- )
reverse = reverse + original.charAt(i);
System.out.println(reverse);
}
} - 6 years agoHelpfull: Yes(0) No(0)
IBM Other Question