Code Snippets Interview Questions
Questions Answers Views Company eMail

Can we change the validator-rules.xml for our own validations in struts??

Mastek,

2342

#include int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }

3 5615

Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4448

PROBLEM #8 The cashier at the counter of a Super Store, Mr. Khazaanchi has the following bundles of rupee cash notes with him: Rs. 1, 2, 5, 10, 50, 100, 500, 1000 A customer comes at his counter with various items that he has shopped. Mr. Khazaanchi totals the item prices and tells the customer his total amount payable. The customer gives Mr. Khazanchi some amount of cash. Find the total number of rupee notes of each denomination (i.e. 1, 2, 5, 10, 50, 100, 500, 1000) Mr. Khazaanchi will have to give to the withdrawer ensuring that the total number of rupee notes are minimum.

AR, ARJ,

1 5774

what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

Wipro,

3 5264

void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 4690

x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);

2 5418

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

HCL, SRCASW,

3954

write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

HCL,

2397

create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

HCL,

2218

how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

Mbarara University of Science and Technology,

2141

c# code to Count number of 1's in a given range of integer (0 to n)

4299

How to find the list of users who have two codes su01 and pfcg? thank in advance all.

1695

find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.

2019

Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.

1933


Un-Answered Questions { Code Snippets }

Please give me the vb.net codes for deadlock(like detecting,& avoiding) in any version of vb.net.

3168


What is the functionality of GetWindowText?

542


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

2256


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; }

2063


What are the basic rules while writing XML?

321






What is XML DOM Document?

339


What is the output, suppose list1 is [1, 3, 2], what is list1 * 2 ?

942


Write a function that takes as input a binary tree, and prints out each level of the tree on a newline. For example: a / b c / / d e f will output: a b c d e f

1325


Write a python program to count the number of digits in a number?

499


create Drop-Down Navigation Menus

1705


determine which Element received an Event

1907


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3120


What is the functionality of EnumWindows?

536


Given a N by N matrix of both negative and positive integers. Write an efficient algorithm to find the sub-matrix with the largest sum of all the contained elements.

1291


How to Print Asp.net GridView Data on Button Click using Javascript?

680