Choose the correct answer: def s(n1): print(n1) n2=4 s(n2) Statement A : n1 and n2 have same memory Address Statement B : both n1 and n2 are referring to the same value, so they have same identity

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Choose the correct answer:
def s(n1): 
      print(n1) 
n2=4 
s(n2) 

Statement A : n1 and n2 have same memory Address
Statement B : both n1 and n2 are referring to the same value, so they  have same identity

1.Statement A is True and Statement B is False

2. Statement A is False and Statement B is True

3.Both the statements are True

4.Both the statements are False


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!