Code Snippets Interview Questions
Questions Answers Views Company eMail

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.

Cognizant,

1 6301

int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

1 4801

int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 5118

There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

TCS,

1 4388

Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.

Wipro,

3 7870

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

iGate,

3523

is public static void main() work in java?is "String arg[]" needed as argument?

Tech Mahindra,

4 7037

‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }

2 4717

what is software testing

TCS,

1 4233

Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false

Cognizant, lenovo,

1 5188

using friend function find the maximum number from given two numbers from two different classes.write all necessary functions and constructor for the classes.

TCS,

1 17839

write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

Nagarro,

4412

There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

Nagarro,

1 7505

how to concatenate the two strings

1 3625

iam getting keyword or delimiter error while executing ICETOOL,provide me solution.

1386


Un-Answered Questions { Code Snippets }

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2298


plz send code for Ecorps in j2ee frontend:J2EE Backend: DB2 Express

2570


i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.

2320


Write a Program to find the number of words in a sentence.

700


plz send code for feature rich resume builder in j2ee frontend:J2EE Backend: DB2 Express

3434


code to sorting an array of objects

2179


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;

2031


write a c program which takes 20 numbers in an array as input from user and rearrange them in two different array defining even or odd

2835


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

2087


Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?

3151


Beautiful is for 012345678 9 and a code for similar word containing the same alphabets

5933


Write a Program to find whether the given number is a Armstrong number.

641


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

2489


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2953


what is the structure of xml document ?

457