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 6595

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 4814

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 6388

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 11759

Post New Infosys C++ Code Interview Questions



Un-Answered Questions

What the types of breaking systems in circuit breakers? Why we use CT with fuse in series trip circuit breaker(HT), though we don't use fuse normally in CT output?

1143


I Want To Know Quantity of Cement Conc. & Sand in Column of 9"x9"x10'

882


Suppose there are two requests for 2 different pages of same site and from 2 different browsers, How Web server recognise the different request and send result to the exact sender browsers.

772


General Ledger Process flow

3021


purchase from interstate as applicable f form given to supplier & selling in local state as applicable local vat guide me as per law

638






what is the purpose of checked Menu options

1258


Why is not creat swap partition in my system.

626


can i get all books inrpidshare

682


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

652


WHat is execution in manual testing and when will we start execution and what language we use in execution

783


how to select fuse rating for a 3-phase motor ???

589


Panel interview; how do handle different issues coming from different workloads or multiple responsibilities i.e troubleshooting of browser, billing, cable TV, and phone?

615


where are the log files generally stored.Can you change the path of the file.what can the path be?

1101


Matching Logic in Jcl not in cobol.Could any one please answer this question

2937


while creating requisitions i am unable to see the list of organisation can anyone help me out ?

840






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)