GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

TCS C


TCS C

Questions: 87
Comments: 284
 TCS C Tags
 Showing Questions 41-50 of 87 Questions
<< Previous 1 2 3 4 [5] 6 7 8 9 Next >>
 Sponsored Links

 
 TCS C
Sorting Options :  

Consider the following structure:struct num nam{int no;char name[25];}struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};..........printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);What does the above statement print?A. 8,9B. 9,9C. 8,8D. 8,unpredictable value

Identify the in correct expressionA. a=b=3=4B. a=b=c=d=0C. float a=int b= 3.5D. int a; floatb; a=b=3.5;

Regarding the scope of the variables. Identify the incorrect statement:A. automatic variables are automatically initialized to 0B. static variables are automatically initialized to 0C. the address of a register variable is not accessibleD. static variables cannot be initialized with any expression

Cond 1?cond 2?cond 3? exp 1:exp 2:exp 3:exp 4; is equivalent to which of the following?A. if cond 1     exp 1;     else if cond 2     exp 2;     else if cond 3     exp 3;     else exp 4;B. if cond 1     if cond 2     if cond 3     exp 1;     else exp 2;     else exp 3;    

Latest Answer:  the answer is D. ...

Latest Answer: The Answer is D. Because **= is not an operator.  But the remaining three are assignment operators. ...

Latest Answer: absolutely ans is 5 b'coz defaultly y is initialised to 5.........as x==10 os true then it never enters into another loops below of tht and the value is 5........... ...

What does the following code do?fn(int n, int p, int r){static int a=p;switch(n)  {   case 4:a+=a*r;   case 3:a+=a*r;   case 2:a+=a*r;   case 1:a+=a*r;   }}A. computes simple interest for one yearB. computes amount on compound interest for 1 to 4 yearsC. computes simple interest for four yearD. computes compound interest for 1 year

A=0;while(a<5)printf("%d\n", a++);How many times does the loop occurs?A. infiniteB. 5C. 4D. 6

How many times does the loop iterated?for(i=0;i=10;i+=2)printf("Hi\n");A.10B. 2C. 5D. None of these

View page << Previous 1 2 3 4 [5] 6 7 8 9 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
Sponsored Links

 
Free White Papers & Software


Vulnerability Management
for Dummies eBook

 


 

Request Your Copy
 



Free: 60-Day Trial
Microsoft Office Project

 


 

Request Now
 



The 7 Things that
IT Security Professionals
MUST KNOW!

 


 

Request Your Free eBook

 
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape