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 11348

how to check whether a linked list is circular.

Microsoft,

11 44703

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 15391

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 7955

How to add checkbox to datagrid?

5 10093

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

11 25287

how to Scroll a DIV content

1216

how to create Expandable and Collapsible Menus

1702

how to determine which Mouse Button was pressed

928

create a slide show

Genpact,

1 1198

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

HCL,

833

code to images to rollover

927

code to create a new window

865

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

760

code to Hide and Show form controls

826



Un-Answered Questions { Code Snippets }

Pls provide basic funtionality Winrunner scripts for Health care domain and Phishing

1099


What is the functionality of SetForegroundWindow?

271


write a program to convert temperature from fa height into celcius and vise versa,use modular programming

1263


How can i know that how many user are visited to my page in php?

770


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

1871


code to keep a page Out of the browser history

694


How can I Draw an ellipse in 3d space and color it by using graph3d?

1053


How to add a value from textBox over an existing certain column in SQL Server

1310


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

1387


Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.

2312


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

928


how to get the User's Time of Day

815


can everyone explain this code Private Sub DrawRect(rectSource As RECT, lngColour As Long) Line (rectSource.Left, rectSource.Top)-(rectSource.Left, rectSource.Bottom), lngColour Line (rectSource.Left, rectSource.Top)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Left, rectSource.Bottom), lngColour End Sub

1448


output for printf("printf");

704


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

1481