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

Infosys 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 7353

Min-Max Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and calculate its complexity T(n).

1 5285

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 6955

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 12758

Post New Infosys C++ Code Interview Questions




Infosys C++ Code Interview Questions


Un-Answered Questions

What do you mean by checkpoints in qtp?

122


What is a Patch in QTP?

140


What are top seo ranking factors?

107


What are the advantages of cluster?

142


What is granite?

120






Upps..., sorry my email id is this : preet405p@yahoo.com Thanks in advanced.

1044


Give a brief overview of Hadoop history?

11


 How do we start and stop Apps Server?

603


How can customize the appearance o f forms generated by zend_form?

152


It is not possible to create an abap/4 program, which contains only subroutines. State true or false. : abap modularization

138


what is biological hydrogen production? 0 7 Hai friends, Can someone guide me..Am a postgraduate(m.tech) in biotechnology and am thinking of doing pg diploma course through distance mode. are they worth doing? if so which is better pg diploma in bioinfo or pg diploma in Intellectual property rights..am awaiting ur suggestions 0 20 hey i am doin bsc biotech and i want to do research on stem cells.....plz tell me how to go about?????? 0 32 in the lcmv what type of effect onm the mhc class i molecule 0 18 WHAT IS MEAN BY GENETIC ALGORITHM 1 56 Can I get a working model on petro plants ? 0 76 if i m doing bsc in biotechnology now.. are there any chances that i can do b.tech nw?? 0 59 what is multicolour biotechnology? what are the applications of multicolour biotechnology? 4 275 will i get f1 visa to pursue masters in US, if i have many backlogs and more than 2 yrs gap in btn my graduation. 0 85 suppose if u have gone through any biotech industry, what are the environmental conditions that u r expecting in quality control? Shanta-Biotech 2 598 suppose if u have gone through any biotech industry, what are the environmental conditions that u r expecting? Shanta-Biotech 1 261 what is the process of chees preparation 1 240 how biodiesel helps in reducing co2 1 313 what is multi colour bio technology? 1 200 i m doing bsc in biotechnology n i m confuse what to do in future...whether i shall do msc in biotechnology or any otyer course?in future which field will have greater oppurtunity?

1247


Described ternary conditional operator in PHP?

18


Can you name the different elements with the collaboration diagram?

143


How do I know what startup programs to disable?

90


What is RAID? What are the different types of RAID configurations?

151