Code Snippets Interview Questions
Questions Answers Views Company eMail

How do you write a program which produces its own source code as its output?

7 11607

how to check whether a linked list is circular.

Microsoft,

11 46692

Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.

Microsoft, Nike, IITR,

5 15829




Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.

Amazon, Microsoft,

5 8324

How to add checkbox to datagrid?

5 10468

Program to find the largest sum of contiguous integers in the array. O(n)

11 26114

how to Scroll a DIV content

1252

how to create Expandable and Collapsible Menus

1740

how to determine which Mouse Button was pressed

965

create a slide show

Genpact,

1 1325

code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

HCL,

876

code to images to rollover

960

code to create a new window

892

write a code that user can choose/alter Body Text Size

788

code to Hide and Show form controls

866







Un-Answered Questions { Code Snippets }

what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }

996


Is there any way to open notepad within php?

811


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

2269


How can you relate the function with the structure? Explain with an appropriate example.

1594


Given a circular list of integers (when you reach the end of the list you come back to the beginning), what is the most efficient algorithm to find the smallest integer in the list? For example: circular_list = [22, 52, 66, 82, 5, 8, 12, 19].

405


code to Hide and Show form controls

866


i want run following code on button click of view. i am trying to retrieve data from isc_order_details table and isc_product table. but after retriaval of data i m getting error like FIELD MUST BE ENTERED!! DECLARE m number; n number; CURSOR order_details IS SELECT PRODUCT_ORDER_QUAN,PRODUCT_ID FROM isc_order_details WHERE order_id=:isc_order_master.order_id; amount NUMBER (8,2):=0.0; alert number; BEGIN go_block('isc_order_details'); first_record; m:=:system.cursor_record; last_record; n:=:system.cursor_record; OPEN order_details; --for i in m..n loop FETCH order_details INTO :ISC_ORDER_DETAILS.PRODUCT_ORDER_QUAN,:ISC_ORDER_DETAIL S.PRODUCT_ID; IF order_details%FOUND THEN SELECT order_value,order_date INTO :ISC_ORDER_MASTER.ORDER_VALUE,:ISC_ORDER_MASTER.ORDER_D ATE FROM isc_order_master WHERE order_id=:ISC_ORDER_MASTER.ORDER_ID; SELECT product_desc,product_price INTO :ISC_ORDER_DETAILS.PRODUCT_DESC,:ISC_ORDER_DETAILS.PROD UCT_PRICE FROM isc_product WHERE product_id=:ISC_ORDER_DETAILS.PRODUCT_ID; next_record; END IF; EXIT WHEN order_details%NOTFOUND; END LOOP; last_record; CLOSE order_details; EXCEPTION when NO_DATA_FOUND then alert:=SHOW_ALERT('ENTER_DATA'); Go_Item('isc_order_master.order_id'); END;

1034


write a program in java to find the moving average of all prime numbers between 2 and 100.

2286


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

537


could you please teach me how to program an income tax using functions

9


What is the functionality of EnumWindows?

291


How can a procedure fetch data from FTP? I need a general code for this..

1164


What is data _null_? ,Explain with code when u need to use it in data step programming ?

1480


U hv to enter a range from a and b and search hw many no. of times a pattern n. occurs between the range a and b. Eg :i/p:enter range :0 100 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 0 to 100:1 Eg :i/p:enter range :100 1000 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 100 to 1000: (in this 13,113,131,132,133…139,213,313,…913 all these will be counted)

1034


how to pass data between pages using Cookies

841