Scala framework/Scala Multiple-Choice Questions Set 2 MCQs :- multiple choice questions and answers. e.g Scala framework MCQS,Scala framework Mock Tests , Scala framework Practice Papers ,Scala framework Sample Test,Scala framework Sample questions

Your Session ID :-Guest1124513

Question 1: The output of the following block of code is - class Student{ var roll = 43; def printTotal(){ var totalMarks = 500 println(roll) } } object MyClass{ def main(args:Array[String]) { var s1 = new Student println(s1.totalMarks) } }

500

300

Error

None of these

Total MCQS Questions are 50 in this paper Scala Multiple-Choice Questions Set 2