IBM interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

IBM
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Algorithms, OOPS, DBMS, OS
Tip
Tip

Tip 1 : Practice lots of competitive programming.
Tip 2 : Understand and learn DSA
Tip 3 : try to solve real problems through any coding platform like LeetCode, HackerRank, etc.

Application process
Where: Other
Eligibility: 7 CGPA, good in programming/DSA
Resume Tip
Resume tip

Tip 1 : Do not put false things and over skills in your resume.
Tip 2 : Put some experience and working projects in your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date8 Jun 2022
Coding problem2

Timing-90 Duration Of Assessment 
Need to attempt the test within next 48 after getting mail.

Test is conducted virtually through IBM test platform. Test contains questions related to DBMS, OOPS concept, programming, SQL, and other questions related to Leadership Principles and workstyles.

1. Questions related to Core subjects

This round is entirely based on MCQ's.
Questions like:-
1) What is the output of the flow chart program.
2) What is the output of below program
3)which unix command is used to redirect the no of characters in a file f1 to a file f2
4)which unix command that creates a file without contend
5)Choose the correct property of foreign key in SQL?
6)which unix command is used to display the line that contains the word 'are'
7)which command is used to return the reverse data of a file in Unix?

Problem approach

Tip 1: Need to revise topics related to assessment test.
Tip 2: Need to choose one option.
Tip 3: Based upon your knowledge you need to answer.

2. Multiply Strings

Moderate
35m average time
55% success
0/80
Asked in companies
FacebookAmazonIBM

You are given two big numbers ‘A’ and ‘B’ as strings. Your task is to find the product of both the numbers.

Note:

There are no leading zeros in both the strings, except the number 0 itself.
Do not use any built-in Big Integer Library.
For Example:
If, A = 123, and B = 456.
So the product of both numbers will be 56088.
Problem approach

string Solution::multiply(string s1, string s2) {

int m1=s1.size();
int m2=s2.size();

if(s1=="0" || s2=="0")
{
return "0";
}

string ans="";
int carry=0;
string temp="";
for(int j=m2-1;j>=0;j--)
{
temp+='0';
string res=temp;
res.pop_back();

carry=0;

int val=s2[j]-'0';

for(int i=m1-1;i>=0;i--)
{
int x= (s1[i]-'0')*val;

x+=carry;

res.push_back('0' + (x%10));

carry=x/10;

}

while(carry>0)
{
res.push_back('0' + (carry%10));
carry=carry/10;
}

reverse(res.begin(),res.end());

if(ans=="")
{
ans=res;
continue;
}

carry=0;

// now add

string t="";

int k1=ans.size();
int k2=res.size();

int a=k1-1;
int b=k2-1;
val=0;
while(a>=0 || b>=0)
{
val=0;
if(a>=0)
{
val+=(ans[a]-'0');
a--;
}

if(b>=0)
{
val+=(res[b]-'0');
b--;
}

val+=carry;

t.push_back('0' + (val%10));

carry=val/10;

}

while(carry>0)
{
t.push_back('0' + (carry%10));
carry=carry/10;
}

reverse(t.begin(),t.end());
ans=t;

}

int i=0;

while(i {
i++;
}

if(i==ans.size())
{
return "0";
}

return ans.substr(i);

}

Try solving now
02
Round
Hard
Face to Face
Duration60 Minutes
Interview date23 Jun 2022
Coding problem2

We need to solve 1 or 2 coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.

Interviewer also asks some other questions as well like your introduction, some core subjects question related to DBMS, OOPS concept, programming, SQL, and other questions related to Leadership Principles and workstyles.

1. Gray Code

Moderate
25m average time
70% success
0/80
Asked in companies
IBMQuikrIBM

Given a number ‘grayNumber’. Find the gray code sequence.

Conditions for a gray code sequence :

1. Gray code sequence contains numbers from 0 to 2^'grayNumber'-1 in bit/binary form.
2. Two consecutive gray code sequence numbers only differ by 1 bit.
3. Gray code sequence must start with 0.

Example :

Given 'grayNumber' : 2.

alt text

As depicted from above image, the gray code sequence is 0,1,3,2.

Note :

1. The output sequence must contain the decimal representation of numbers instead of the binary form.
2. There can be multiple answers print anyone.
Problem approach

Don't know the solution, still i am struggling with this problem

Try solving now

2. Questions related to DBMS, OOPS concept, programming, SQL and Leadership Principles and workstyles.

What is DML and DDL? 
What is OOPS concept and its also explain its types?
Write a query to join 2 tables intersection records?
What is the time complexity of below code?
Do you agree with your seniors whether that guy is correct or not.
Are you open to learn new technology or still want to work on those technologies on which you are familiar.

Problem approach

Tip 1:Need to answer as per your knowledge 
Tip 2:Don't hesitate while giving answers 
Tip 3:Be confident but don't over confident

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by IBM
5069 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by IBM
5175 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by IBM
3223 views
0 comments
0 upvotes
company logo
Staff Engineer
3 rounds | 4 problems
Interviewed by IBM
4678 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7977 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10148 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4448 views
1 comments
0 upvotes