Programming Languages Interview Questions
Questions Answers Views Company eMail

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

ME,

4 15245

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

ME, pspl,

3 28605

main() { int i=400,j=300; printf("%d..%d"); }

ME,

13 23209

main() { char *p; p="Hello"; printf("%c\n",*&*p); }

ME,

2 17332

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

ME,

3 13646

void main() { int i=5; printf("%d",i++ + ++i); }

ME,

21 37326

void main() { int i=5; printf("%d",i+++++i); }

ME,

17 17898

#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

ME,

6 17297

class A{ void me(){s.o.p("");} class B extends A{ void me() {s.o.p(" ");} class M{ A a=new B(); B b=new A(); a.me(); b.mne();} what is the output of this, how?

Cosmos, HyTech Pro, WinSoft,

2 6924

what is polymorphism in java.

Atos Origin,

3 5339

what is web service in java? have u use before.

1618

what is the maximum no. of bytes calloc can allocate

Mphasis,

4 8524

how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

RMSI,

19 19357

what is the use of using linked list and array?

Infosys, TCS,

10 12302

What is the diffences between Windows XP and Windows Visa

Aricent, FHF,

1 6936


Un-Answered Questions { Programming Languages }

Tell me what are blocks and procs?

1


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

5


What is docstring? How to define it?

493


What is the output of print str + “test” if str = ‘hello world!’?

487


What is white noise sound?

195






What is return value in php?

509


What is c++ hash?

605


How to split a string into a list?

470


How to Change the Windows wallpaper in code?

1445


What is ofstream c++?

581


Explain what is meant by pear in php?

525


What is the difference between global int and static int declaration?

397


Explain the difference between strcpy() and memcpy() function?

582


Is overloading possible in php?

509


What is a white noise model and how can you simulate it using r?

59