C#.net Interview Question

A=10
B=5
C=A+B
Print C

The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.



C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline tex..

Answer / murthyknm

public class Sum
{
public static void main(String aaa[])
{
int A=10,B=5,C=0;
C=A+B;
System.out.println(" "+C);
}
}

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More OOPS Interview Questions

is there any choice in opting subjects like 4 out of 7

1 Answers  


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


What is namespace?

15 Answers  


what is ns string? what is ns array?

1 Answers  


What is abstraction encapsulation?

1 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,


Which language is pure oop?

1 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

1 Answers  


What is abstraction in oop?

1 Answers  


what is single inheritance?

18 Answers   IBM,


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

1 Answers   DELL,


Categories