Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z




IBM C++ Code Interview Questions
Questions Answers Views Company eMail

What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }

3 6945

write a c program, using for loop, that accepts and odds two numbers. The output must be the sum and the addens. This should be repeated 5 times while the first number is decremented by one and the second number is incremented by 1.

2 6667

1.program to add any two objects using operator overloading 2.program to add any two objects using constructors 3.program to add any two objects using binary operator 4.program to add any two objects using unary operator

2 20043

Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.

4 12219

. Write a program using two-dimensional arrays that computes the sum of data in tows and the sum of data in columns of the 3x3 (three by three) array variable n[3][3].

2 14964





write a program to sort 'n' elemnts using bubble sort

1 6751

Write code for the multiplication of COMPLEX numbers?

2729

Post New IBM C++ Code Interview Questions




IBM C++ Code Interview Questions





Un-Answered Questions

State how to produce a constant rotating field by application of alternating currents to stator armature of a three-phase squirrel-cage induction motor

1399


what is the weight of 10mm,20mm,40mm aggregate

1378


From health and safety point what are things to be taken care while warehouse transportation?

21


What is cloudera and why it is used?

19


What do you know about Clarks Shoes?

59






what will happend if i fire this command in linux " rm -r / "

769


What is the enzyme that catalyzes the production of rna?

15


What is component-managed sign-on ?

19


IF I RECD ANY BILL TOWARDS PRINTING OF FORMS, VOUCHERS AND ON SAME VAT IS CHARGED 5%, IS TDS IS ALSO APPLICABLE FOR THE SAME.

860


Which are the different tags that are required to create reusable user interface that include the layout?

15


Mention some action filters which are used regularly in ASP.Net MVC?

29


Explain dns?

1


How to get the userid of all the currently logged in users using apex code?

1


How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

36


Explain jsp?

11