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 4 No

Post New Answer

More OOPS Interview Questions

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

2 Answers  


what is the application of oops?

8 Answers   IBM,


What is encapsulation in oop?

0 Answers  


what is ltti

1 Answers   Unisys,


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

0 Answers   DELL,


Do you know about multiple inheritance?

1 Answers   Motorola,


What is object-oriented programming? Webopedia definition

0 Answers  


What is multilevel inheritance in oop?

0 Answers  


What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile

4 Answers  


What is the real time example of inheritance?

0 Answers  


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

0 Answers  


When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,


Categories