×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

The output of the following block of code is | Scala Question 9

71. The output of the following block of code is -

object Demo {
    def welcome( a: Int = 54, b: Int = 21 ){
        println(a + b);
    }
    def main(args: Array[String]) {
        welcome(5);
    }
}
  1. 75
  2. 59
  3. 26
  4. 10

Answer: C) 26

Comments and Discussions!

Load comments ↻




Copyright © 2025 www.includehelp.com. All rights reserved.