Programming Languages Interview Questions
Questions Answers Views Company eMail

what r the vc++ components

3 13797

List out the parameters of WinMain Function.

Mphasis,

2 7299

What is a message map?

Mphasis,

1 7271

List out the basic features of MFC.

Mphasis,

4 13677

int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?

HCL, Mphasis,

11 15928

what is woransient key word? how it is used in java

Convergys,

1790

write a c program in such a way that if we enter the today date the output should be next day's date.

1672

I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

2197

What is exception in php?

4 5958

Why we use NEW operator when we create Object,While in C++ we donot ?

1 3283

What is the difference between Home and $Home?

TCS,

2 4500

write a program to print largest number of each row of a 2D array

1860

1. Write a program to reverse every second word in a given sentence.

1 5221

what is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me

1 3895

difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help

1 3808


Un-Answered Questions { Programming Languages }

What is the tag property useful for?

1409


p*=(++q)++*--p when p=q=1 while(q<=6)

1258


what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?

1504


Why json is used in php?

532


what is Member Functions in Classes?

608






What is a php web application?

487


What are the steps should be followed for installing wordpress?

118


What is a token method in a csrf attack?

332


What are policies classes?

417


What is an Anonymous Function In Scala? What is a Function Literal in Scala? What are the advantages of a Anonymous Function/Function Literal in Scala?

7


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

777


Explain the concepts and capabilities of garbage collection feature of Ruby?

5


Which is best linux os?

548


How will do the core upgrade in drupal?

73


What is meta class in ooad?

324