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 aptitute test questions (176)
  • Infosys interview questions (1763)
  • Infosys placement papers (58)
  • Infosys technical test questions (120)



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 6646

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 4848

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 6427

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 11830

Post New Infosys C++ Code Interview Questions



Un-Answered Questions

How to give the answer for Expected CTC for MNC as well as for growing company?

2324


what are the parameters to be considered for evaluating Risk analysis

3887


How are you qualified for the position of Assistant Clinical Director?

1265


All the socket in a room become very hot, the Wall was also became very hot and the earth conductor also became live, what in your view might be the possible causes?

496


why oil lift in screw chiller during change of climate.

1213






sir please provide me the previous technical papers for hpcl writtien exam

771


9. Give me an example of a time when you motivated others, either in your community or place of work.

3038


How can I use bugzilla in my company to track a bug and to allow the client to see the bug report online throughbugzilla. Please explain in detail. I am really need this.

1870


Hi this is jitu here,I have 5 yrs experience in pharma sales,& i have done SAP-SD.I need 1 offer in IT sector,any one help me plz.If u want 2 suggest me then mail me jiturath80@gmail.com

786


Explain about the leakage class of the control valves

901


who are the stake holders in identifying the risk analysis of pure software product development

1434


In any industry when recruitment starts.. how many stages..

1233


How does the company market or plan to market its products or services? - Venture Capitalists

331


What is the journal entry of building rent and TDs payment?

258


What is the main purpose of HDFS fsck command?

679






Infosys C++ Code Interview Questions
  • Software (1)
  • C (95)
  • STL (3)
  • OOPS (27)
  • C++ General (22)
  • MFC (3)
  • VC++ AllOther (2)
  • Delphi (4)
  • Python (2)
  • PHP (10)
  • Programming Languages AllOther (12)
  • ASP (2)
  • JavaScript (8)
  • VB Script (2)
  • JSP (1)
  • Shell Script (2)
  • AJAX (1)
  • SNMP (1)
  • SS7 (1)
  • Networking Administration (9)
  • Networking Security (2)
  • Networking AllOther (3)
  • Visual Basic (11)
  • C Sharp (6)
  • ASP.NET (33)
  • VB.NET (7)
  • ADO.NET (6)
  • IIS (3)
  • Dot Net Framework (6)
  • Dot Net General (5)
  • Dot Net AllOther (3)
  • SharePoint (1)
  • Microsoft Related AllOther (1)
  • Oracle General (14)
  • OCI (1)
  • Database Management (3)
  • Forms Reports (1)
  • Oracle AllOther (3)
  • SQL Server (19)
  • MySQL (3)
  • DB Architecture (1)
  • DB Administration (1)
  • DB Development (1)
  • SQL PLSQL (19)
  • Databases AllOther (4)
  • SDK (1)
  • Windows General (1)
  • Windows AllOther (5)
  • Linux Commands (2)
  • Linux IPC (1)
  • Linux Socket Programming (1)
  • Linux System Calls (1)
  • Unix Commands (27)
  • Unix IPC (2)
  • Unix General (1)
  • Unix AllOther (3)
  • Solaris Commands (2)
  • Solaris General (1)
  • Solaris AllOther (2)
  • RTOS AllOther (1)
  • Operating Systems General Concepts (7)
  • Data Structures (5)
  • Operating Systems AllOther (1)
  • WinRunner (5)
  • Load Runner (6)
  • QTP (44)
  • Test Director (3)
  • Rational TestSuite (1)
  • Silk Test (1)
  • Selenium (1)
  • Automation Testing AllOther (3)
  • Manual Testing (93)
  • QA Concepts (11)
  • Mobile Testing (2)
  • Test Cases (10)
  • Test Documents Reporting (2)
  • Testing AllOther (11)
  • Servers AllOther (1)
  • COBOL (9)
  • JCL (10)
  • CICS (1)
  • DB2 (9)
  • Assembler (1)
  • VSAM (5)
  • IBM MainFrame AllOther (1)
  • DB400 (1)
  • COOLPLEX (1)
  • Core Java (54)
  • Advanced Java (6)
  • Swing (1)
  • EJB (2)
  • Servlets (5)
  • Struts (7)
  • JDBC (5)
  • JMS (1)
  • J2EE (3)
  • Weblogic (3)
  • Websphere (1)
  • Java J2EE AllOther (2)
  • Java Related AllOther (2)
  • HTML DHTML (1)
  • Teradata (7)
  • Business Objects (14)
  • Cognos (10)
  • Informatica (14)
  • Crystal Enterprise Suite (1)
  • Ab Initio (2)
  • Data Stage (8)
  • SAS (2)
  • Micro Strategy (3)
  • ETL (7)
  • Data Warehouse General (1)
  • HR Questions (16)
  • Design Patterns (6)
  • UML (3)
  • OOAD (2)
  • Project Planning (9)
  • Technical Writer (1)
  • Software Design AllOther (1)
  • GDB (1)
  • Debugging AllOther (3)
  • Telecom Routers Switches (1)
  • VoIP IP Telephony (1)
  • BlueTooth (1)
  • Telecom General (2)
  • SAP Basis (19)
  • SAP ABAP (122)
  • SAPScript (1)
  • SAP SD (29)
  • SAP MM (11)
  • SAP QM (1)
  • SAP PP (1)
  • SAP PS (1)
  • SAP FI CO (48)
  • SAP HR (6)
  • SAP CRM (52)
  • SAP Business Warehouse (6)
  • SAP Security (8)
  • SAP B1 (1)
  • SAP Business Objects BO BOBJ (2)
  • PeopleSoft Financials (4)
  • PeopleSoft Tools (1)
  • Oracle Apps Technical (9)
  • Oracle Apps Financial (7)
  • Oracle Apps SCM (2)
  • Oracle Install Base (1)
  • ERP CRM AllOther (1)
  • 86 Family (2)
  • VLSI (3)
  • Client Server Architecture (1)
  • Client Server General (2)
  • AI General (2)
  • AI AllOther (1)
  • TIBCO (1)
  • JCAPS (1)
  • Image Processing Algorithms (2)
  • Micro Biology (1)
  • Bio Informatics (2)
  • Botany (1)
  • General Physics (2)
  • Geo Physics (1)
  • Organic Chemistry (1)
  • Inorganic Chemistry (2)
  • General Chemistry (1)
  • Mathematics (1)
  • General Science (2)
  • Sciences AllOther (1)
  • Civil Engineering (13)
  • Mechanical Engineering (14)
  • Electrical Engineering (40)
  • Electronics Communications (61)
  • Instrumentation (3)
  • Automobile Engineering (1)
  • Engineering AllOther (24)
  • Business Administration (7)
  • Marketing Sales (10)
  • Banking Finance (24)
  • Human Resources (20)
  • Infrastructure Management (1)
  • Non Technical (3)
  • Business Management AllOther (4)
  • Audit (5)
  • CompanyAffairs CS (3)
  • Taxation (14)
  • Accounting General (35)
  • Accounting AllOther (37)
  • Call Centre AllOther (108)
  • Designing (1)
  • UPSC Political Science (1)
  • UPSC History (1)
  • UPSC General Studies (3)
  • SSC Political Science (3)
  • SSC General Studies (1)
  • SSC AllOther (1)
  • RRB (2)
  • CDS (3)
  • NDA (3)
  • BSRB Clerical (3)
  • Group I (4)
  • Group II History (2)
  • Group II AllOther (1)
  • Group II Political Science (1)
  • APPSC AllOther (8)
  • General Knowledge_Current Affairs (42)
  • Government AllOther (6)
  • Law AllOther (3)
  • Chefs (1)
  • Tourism Hotel AllOther (1)
  • Teaching (1)
  • Funny Interview Questions (8)
  • Everything Else AllOther (13)
  • English (18)
  • General Aptitude (118)
  • Puzzles (49)
  • Placement Papers (58)
  • CCNA (16)
  • Microsoft Certifications (3)
  • Sun Certifications (3)
  • Oracle Certifications (3)
  • ISTQB Certification (1)
  • Certifications AllOther (1)
  • H1B Visa (5)
  • USA Student Visa F1 Visa (3)
  • L1 Visa (9)
  • USA Business Visa B1 Visa (4)
  • USA Dependent Visa H4 Visa (3)
  • UK Visa (3)
  • C Code (12)
  • C++ Code (4)
  • MFC Code (1)
  • J2SE Code (2)
  • ASP.NET Code (1)
  • C Sharp Code (3)
  • Visual Basic Code (1)
  • JavaScript Code (4)
  • VB Script Code (1)
  • Scripts_Markup Code AllOther (1)
  • GATE (5)
  • IIT JEE (1)
  • CAT (2)
  • ICET (5)
  • C C++ Errors (1)
  • DotNet Errors (1)
  • SQLServer Errors (1)
  • Scripts Errors (1)