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




TCS Interview Questions
Questions Answers Views Company eMail

What are Storage Classes in C ?

32 96007

What is the difference between Class and Structure?

40 200611

Do you know about Sensex and how you will follow it ?

9 12471

what is a Design Pattern?

5 6060

What is the difference between operator new and the new operator?

3 8272





What is White Box testing and who is responsible for white box testing?

11 12795

What is Black Box testing and who is responsible for Black box testing?

18 13892

What is software development Life Cycle (SDLC)? where exactly the Testing activity begin in SDLC?

12 26319

What is the smoke testing and sanity testing..?what is the difference?

10 12489

What are joins..how many types of joins are there?

29 62608

what are Triggers?

5 8886

what are stored procedures?

6 7170

what are indexes..how many types of index's are there and what are they?

7 12194

what are views?

7 13724

what is the difference between test case and test scenario.Explain with example?

19 43146

Post New TCS Interview Questions



Un-Answered Questions

who among the following is responsible for establishing IS Audit function in the organisation?

252


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

1612


Programming in C JayLQue@hotmail.com 1. Which of the types listed below can be the type of the result value returned by a user-defined function? A) int B) double C) char D) all of the above E) none of the above 2. What is the output from this program? #include void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2 + the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d\n", first, second); return 0; } A) 35 2 B) 1 35 C) 35 7 D) 1 2 E) 0 3. In function apart defined below, how many of the parameters are considered input parameters? void apart(double x, int *wholep, double *fracp) { *wholep = (int)x; *fracp = x - *wholep; } A) 0 B) 1 C) 2 D) 3 E) all 4. Variables that represent neither problem inputs nor problem outputs but are needed for internal computations are called _____. A) problem constants B) prototypes C) results D) formula variables E) program variables 5. This question concerns the following program fragment: char r, x, y, z, w; scanf("%c%c%c%c", &x, &y, &z, &w); if (x < y) r=x; else r=y; if (r>z) r=z; if (r>w) r=w; printf("%c\n", r); The program's effect can best be described as: A) It displays the letter 'r' after comparing it to x, y, and z. B) Of the four input characters, it displays the one that comes first in the alphabet. C) Of the four input characters, it displays the one that comes last in the alphabet. D) Of the four input characters, it displays the one that comes second in the alphabet. E) It displays nothing since characters cannot be compared. 6. In a function that receives a value from the main function via a parameter and then displays the parameter value on the screen, that parameter is considered __________. A) an input parameter B) an output parameter C) an input/output parameter D) a local variable E) a stub 7. What is the complement of the following expression? n||a <= b && c != 100 A) !n || a > b || c == 100 B) !(n && (a > b || c == 100)) C) !n && (a > b || c == 100) D) !(n || (a > b || c == 100)) E) none of the above 8. The if statement: if (13 < 12) printf("never\n"); else printf("always\n"); A) displays never. B) displays always. C) will not compile since 13 is not less than 12. D) causes a run-time error since 13 is not less than 12. E) displays nothing since 13 is not less that 12. 9. How many lines of output will be displayed by the following program fragment? i=0; do { for (j = 0; j < 4; j = j + 1) printf("%d\n", i + j); i=i + 1; } while (i < 5); A) 0 B) 7 C) 9 D) 16 E) 20 10. For what exact range of values of variable x does the following code segment display the letter 'C'? if (x <= 200) if (x < 100) if (x <= 0) printf("A\n"); else printf("B\n"); else printf("C\n"); else printf("D\n"); A) 0 < x < 100 B) x <= 0 C) 100 <= x <= 200 D) x > 200 E) 100 < x <= 200 11. The effect of the following program segment can best be described as __________. if (x > y) z = x; if (x == y) z=0; if (x < y) z = y; A) the smaller of x and y is stored in z. B) the larger of x and y is stored in z. C) the larger of x and y is stored in z unless x and y are equal, in which case z is assigned zero. D) the larger of x and y is stored in z unless x and y are not equal, in which case z is assigned zero. E) none of the above. 12. The expression: x *= i + j / y; is equivalent to ______. A) x = x * i + j / y; B) x = (x * i) + j / y; C) x = (x * i + j) / y; D) x = x * (i + j / y); E) none of the above 13. The facts that a function assumes to be true of the arguments that it receives are called __________. A) function input validations B) local variables C) postconditions D) preconditions E) none of the above 14. How many times is the loop body of the while statement executed? Refer to the following program segment. Assume that all variables are of type int. z=0; g=0; s=0; i=0; while (i < 50) { scanf("%d", &t); s=s + t; if (t >= 0) g=g + 1; else z=z + 1; i=i + 1; } A) once B) never C) 49 times D) 50 times E) until a number 50 or larger is entered 15. A special value that marks the end of a list of input data is called a __________. A) terminal value B) sentinel value C) loop control value D) input value E) loop termination value 16. Here is the prototype of a function: void five (double x, double* yp, int* zp); Given these variable declarations, which calls to five are valid? int m, n double p, q A) five(m, &p, &n); B) q = five(6.2, &p, &m); C) five(p, &q, &m); D) five(7.1, &p, &q); E) a and c only F) a, b, c, and d 17. The ______ of a function take(s) information into the function from the calling statement. A) local variables B) input arguments C) output arguments D) prototype E) purpose 18. If the input to the program segment below is 85, what is its output? scanf("%d", &s); if (s >= 90) printf ("A\n"); else if (s >= 70) printf ("C\n"); else if (s >= 80) printf ("B\n"); else printf ("D\n"); A) A B) B C) C D) D E) None of the above 19. The value stored in variable s at the end of the execution of the loop could best be described as __________. Refer to the following program segment. Assume that all variables are of type int. z=0; g=0; s=0; i=0; while (i < 50) { scanf("%d", &t); s=s + t; if (t >= 0) g=g + 1; else z=z + 1; i=i + 1; } A) the average of the numbers scanned B) the sum of the numbers scanned C) the largest of the numbers scanned D) how many numbers were scanned E) the sentinel value 20. What is displayed by the C statements that follow if the value input is 2? scanf ("%d", &ctl); switch (ctl) { case 0: case 1: printf("red "); case 2: printf("blue "); case 3: printf("green "); case 4: printf("yellow"); } printf("\n"); A) red B) blue C) green D) yellow E) blue green yellow 21. What is displayed by the C statements below if the value input is 3? scanf ("%d", &n); if (n = 5) printf("Equal\n"); else if (n < 5) printf("Less\n"); else printf("Greater\n"); A) Equal B) Less C) Greater D) No output 22. What will be the value of i after the C statements below have been executed? i=3; j=10; if ((3 * i) < j) i=i + 2; i=i+3; A) 5 B) 6 C) 8 D) 10 E) 15 23. Which of the types listed below can be the type of a function output parameter? A) int* B) double* C) char* D) all of the above E) none of the above 24. Which one of the following lines names a constant needed in a program that computes the price per square inch of a round pizza? A) scanf("%lf", &radius); B) pi = 3.14159; C) #define PI 3.14159 D) #include E) none of the above 25. Which one of these is not the name of a C library function? A) printf B) sqrt C) void D) scanf E) log

1799


I have 440v power coming to facility,( not being used ) can I buy large generator, (gas) to sell power back to electrical co.

1297


Please give me example of " at command , contrab command " how to use

1716






plz help how can i operate my n/w support system through ,help me by providing complete soln

753


WHATE ARE THE QUETION ASKED IN INTERVIEW OF HUMAN ERESOURCE MANAGEMENT

1013


What is the difference between temporary change control and deviation?

1106


How the PF control while running DG set with load

911


What is the pros and cons between QTP and Rational Robot

2653


what is tower earthing and what for it is required

863


Explain the DH5alpha transformation ?

1197


What is producser for Anti collosion protection for DUMER 220Ton in Minse

960


what is cmm level 5 company? like that cmm level 4, 3....

1157


how to convise to ladies in us visa section.she is so crul?

1270






TCS Interview Questions
  • Software (1)
  • C (271)
  • STL (1)
  • OOPS (58)
  • C++ General (41)
  • MFC (10)
  • ATL (2)
  • COM DCOM (2)
  • VC++ AllOther (3)
  • PHP (25)
  • Programming Languages AllOther (36)
  • ASP (12)
  • CGI Perl (4)
  • JavaScript (16)
  • VB Script (17)
  • JSP (9)
  • Shell Script (6)
  • Ruby on Rails (2)
  • AngularJS (1)
  • Scripts AllOther (1)
  • SNMP (2)
  • TCP IP (10)
  • Protocols AllOther (11)
  • Networking Administration (19)
  • Networking Security (1)
  • Networking AllOther (8)
  • Visual Basic (14)
  • C Sharp (66)
  • ASP.NET (105)
  • VB.NET (9)
  • ADO.NET (19)
  • IIS (13)
  • Dot Net Framework (16)
  • Dot Net Remoting (10)
  • Dot Net WindowsForms (1)
  • Dot Net General (25)
  • Dot Net AllOther (6)
  • Exchange Server (2)
  • WCF (2)
  • Microsoft Related AllOther (2)
  • Oracle General (51)
  • Architecture (4)
  • Database Management (9)
  • Forms Reports (9)
  • Oracle AllOther (9)
  • SQL Server (75)
  • MySQL (5)
  • Sybase (1)
  • DB Administration (11)
  • DB Development (3)
  • SQL PLSQL (108)
  • Databases AllOther (11)
  • SDK (4)
  • Windows Threads (1)
  • Windows General (1)
  • Windows AllOther (10)
  • Linux Commands (5)
  • Linux IPC (1)
  • Linux Socket Programming (1)
  • Linux System Calls (1)
  • Linux General (5)
  • Linux AllOther (2)
  • Unix Commands (16)
  • Unix Threads (2)
  • Unix IPC (1)
  • Unix General (3)
  • Unix AllOther (15)
  • Solaris Commands (5)
  • Solaris General (3)
  • Solaris AllOther (9)
  • RTOS AllOther (2)
  • Operating Systems General Concepts (15)
  • Data Structures (15)
  • Operating Systems AllOther (5)
  • WinRunner (11)
  • Load Runner (36)
  • QTP (169)
  • Test Director (8)
  • Rational TestSuite (2)
  • Silk Test (1)
  • Automation Testing AllOther (15)
  • Manual Testing (262)
  • QA Concepts (22)
  • Mobile Testing (4)
  • Test Cases (32)
  • Test Documents Reporting (3)
  • Testing AllOther (61)
  • Tomcat (1)
  • Apache (1)
  • Servers AllOther (4)
  • COBOL (118)
  • JCL (53)
  • CICS (11)
  • DB2 (32)
  • IMS (2)
  • IDMS (1)
  • Natural (4)
  • ADABAS (2)
  • REXX (1)
  • Assembler (2)
  • QMF (1)
  • MVS (1)
  • OS390 (1)
  • VSAM (8)
  • Sysplex (1)
  • IBM MainFrame AllOther (6)
  • RPG400 (28)
  • COBOL400 (2)
  • DB400 (4)
  • COOLPLEX (1)
  • IBM AS400 AllOther (8)
  • Core Java (158)
  • Advanced Java (20)
  • Swing (5)
  • EJB (4)
  • Servlets (20)
  • Struts (31)
  • JDBC (11)
  • SunOne (1)
  • J2EE (7)
  • Weblogic (28)
  • Java Networking (2)
  • Java J2EE AllOther (3)
  • J2ME (3)
  • Java Related AllOther (8)
  • Orbix (1)
  • MQSeries (1)
  • Middleware AllOther (2)
  • HTML DHTML (2)
  • XML XSLT RSS (1)
  • SOAP (3)
  • Web Related AllOther (2)
  • Teradata (23)
  • Business Objects (129)
  • Cognos (83)
  • Informatica (273)
  • Actuate (5)
  • Ab Initio (17)
  • Data Stage (90)
  • SAS (38)
  • Micro Strategy (5)
  • ETL (6)
  • Data Warehouse General (22)
  • HR Questions (80)
  • Design Patterns (5)
  • UML (6)
  • OOAD (3)
  • Software Design Tools (1)
  • Requirements Management (2)
  • Project Planning (1)
  • Project Management (3)
  • Software Design AllOther (1)
  • CTC (1)
  • Debugging AllOther (1)
  • Clear Case (2)
  • Version Control AllOther (1)
  • Telecom Routers Switches (2)
  • Telecom Protocols (1)
  • VoIP IP Telephony (1)
  • GSM (2)
  • BlueTooth (2)
  • Telecom General (4)
  • SAP Basis (55)
  • SAP ABAP (165)
  • SAPScript (9)
  • SAP SD (126)
  • SAP MM (23)
  • SAP QM (1)
  • SAP PP (7)
  • SAP PM (2)
  • SAP PS (1)
  • SAP FI CO (111)
  • SAP HR (55)
  • SAP CRM (67)
  • SAP SRM (1)
  • SAP APO (1)
  • SAP Business Warehouse (48)
  • SAP Security (30)
  • SAP Netweaver (1)
  • SAP ALE IDocs (7)
  • SAP B1 (9)
  • SAP Business Objects BO BOBJ (1)
  • SAP AllOther (3)
  • Siebel (10)
  • ERP General (2)
  • Oracle Apps Technical (49)
  • Oracle Apps Financial (68)
  • Oracle Apps Manufacturing (3)
  • Oracle Apps HRMS (3)
  • Oracle Apps SCM (5)
  • 86 Family (3)
  • VLSI (1)
  • Embedded Systems AllOther (2)
  • Client Server Architecture (1)
  • Client Server General (3)
  • Client Server AllOther (2)
  • AI Algorithms (1)
  • AI Neural Networks (1)
  • AI AllOther (1)
  • Digital Certificates (1)
  • Encryption Decryption (1)
  • WebMethods (17)
  • TIBCO (8)
  • EAI AllOther (1)
  • 3D Animation (2)
  • Requirement Management (4)
  • Estimation Analysis (1)
  • Software Quality Analysis (3)
  • Change Request Management (1)
  • Quality Analysis (3)
  • Program Management (2)
  • Configuration Management (1)
  • Micro Biology (1)
  • Bio Technology (1)
  • Bio Informatics (2)
  • Botany (1)
  • Nuclear Physics (1)
  • Organic Chemistry (1)
  • General Chemistry (2)
  • Chemistry AllOther (1)
  • Pharmacy (1)
  • Health Pharma AllOther (1)
  • Cardiology (1)
  • Mathematics (1)
  • General Science (2)
  • Sciences AllOther (3)
  • Civil Engineering (16)
  • Mechanical Engineering (34)
  • Electrical Engineering (137)
  • Electronics Communications (137)
  • Chemical Engineering (3)
  • Aeronautical Engineering (1)
  • Industrial Engineering (4)
  • Instrumentation (12)
  • Automobile Engineering (1)
  • Power Plant Engineering (1)
  • Engineering AllOther (70)
  • Business Administration (8)
  • Marketing Sales (18)
  • Banking Finance (22)
  • Human Resources (31)
  • Personnel Management (1)
  • Industrial Management (2)
  • IT Management (2)
  • Non Technical (5)
  • Business Management AllOther (4)
  • Audit (6)
  • CompanyAffairs CS (2)
  • Taxation (35)
  • Accounting General (37)
  • Accounting AllOther (45)
  • Advertising Media AllOther (1)
  • Call Centre AllOther (80)
  • Fashion Modelling AllOther (1)
  • UPSC General Studies (3)
  • UPSC AllOther (5)
  • SSC Political Science (1)
  • SSC General Science (1)
  • SSC General Studies (4)
  • SSC AllOther (1)
  • RRB (3)
  • CDS (2)
  • NDA (2)
  • POs (2)
  • BSRB Clerical (5)
  • BSRB AllOther (1)
  • Group I (5)
  • Group II History (1)
  • Group II AllOther (2)
  • APPSC AllOther (14)
  • General Knowledge_Current Affairs (47)
  • Government AllOther (7)
  • Law AllOther (5)
  • Tourism Hotel AllOther (1)
  • Funny Interview Questions (5)
  • Everything Else AllOther (14)
  • English (21)
  • General Aptitude (282)
  • Puzzles (41)
  • Placement Papers (67)
  • CCNA (14)
  • Microsoft Certifications (13)
  • Sun Certifications (3)
  • Oracle Certifications (3)
  • ISTQB Certification (2)
  • Certifications AllOther (8)
  • H1B Visa (18)
  • USA Student Visa F1 Visa (6)
  • L1 Visa (17)
  • USA Visitor Visa B2 Visa (1)
  • USA Business Visa B1 Visa (2)
  • USA Dependent Visa H4 Visa (3)
  • UK Visa (5)
  • Germany Visa (1)
  • C Code (20)
  • C++ Code (8)
  • J2SE Code (2)
  • J2EE Code (2)
  • ASP.NET Code (7)
  • VB.NET Code (1)
  • C Sharp Code (2)
  • PHP Code (2)
  • JavaScript Code (7)
  • GATE (7)
  • CAT (2)
  • MAT (1)
  • GMAT (4)
  • OPENMAT (4)
  • C C++ Errors (6)
  • DotNet Errors (2)
  • Oracle Errors (10)
  • SQLServer Errors (4)
  • Scripts Errors (4)