The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);
1 13156b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720
1 8526Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
2 7504int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }
3 8737Post New HCL C Interview Questions
sir my exam is on 19/6/2013 under electrical branch pls send me sample aptitude questions as well as sample technical questions for jindal steel and power company
Can you define build tool?
What are the leadership qualities you have?
Do you know our CEO? How do you pronounce his name?
Why can it be said that the enzymatic action is highly specific?
What is event loop?
What is the Full form of SWIFT and what are the features and benefits?
What does chmod +x filenamedo?
What do you mean by Bill of Exchnage.How to manage ? Explain
Which language is best for learning data structures and algorithms?
Is class Group is necessary to create work object?
What is PE ratio formula ?
Is binary tree a bst?
What is the default port of weblogic admin server?
What is Minimum savings bank interest and who fixes it?