Code Snippets Interview Questions
Questions Answers Views Company eMail

How to maintain session in Jsp?

IBM,

4 5568

I have this code in leftmenu.ascx page..now on leftmenu.ascx.cs page i want to access id values. but i dont want to check manually like Accommodation,Arts etc.. In cs file my code is like string str[]; //this array contains some values say 10 strings for(i=0;i<100;i++) { if(str[i]==id id.visible=true } i.e.i want to travel for each element of str and each value of id.if they match then id.visible=true how to do?

3817

I have string str="Arts And Props" now i want to replace space in string with null. means i want result as str="ArtsAndProps"

1 3388

How can I create connection two blue-tooth mobile in j2me. please urgent

1921

Code for 1>"ascii to string" 2>"string to ascii"

Aricent, Global Logic,

1 4713

Here's the programm code: int magic(int a, int b) { return b == 0 ? a : magic(b, a % b); } int main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", magic(a, b)); return 0; } on input stream we have integers 4, 45 What's the output integer? How many times will be initiated "magic" function?

1 3313

given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit

8 28677

Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik

Mind Tree,

1 6838

Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string

Mind Tree,

2 5316

Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.

Mind Tree,

3989

program to reverse the order of words in a string.

Mind Tree,

2 9695

program to reverse the order of digits in a given number of any length.

Mind Tree,

1 6537

program to check if a number is "perfect number".

Mind Tree, SoftSol,

1 8820

program for addition of fraction(M/N + P/Q = Y/Z)

Mind Tree,

1 4960

program for string reverse(eg:- i am boy -> boy am i)

Black Pepper, Infosys, Mind Tree,

8 16761


Un-Answered Questions { Code Snippets }

Can someone please explain more about how the XML Gateway works and what its purpose is?

2003


how to get the User's Time of Day

1673


What is the meaning of version in XML?

389


code to sorting an array of objects

1987


What output does the following code generate? Why? What output does it generate if you make A::Foo() a pure virtual function? class A { A() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; class B : public A { B() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; int main(int, char**) { A objectA; B objectB; return 0; }

639






What are the disadvantages of XML?

299


What is full form of PEPSI

1865


Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

2188


Hi All, Do anyone have a solution/script for Uploading the Excel file in Local drive to QC Resources folder..?? TIA Dwaraka.

1178


Which keyword is alias for count keyword in php?

1679


What is xml schema?

342


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2684


Design an implement of the inputs functions for event mode

2959


how to Auto Scroll the page

1633


How to run the Result Intemation System project in java for collage student in which result of internal exam marks send on parents mobile using SMS? what software required to run this project? please reply immediately...

2598