×

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

Correct syntax for creating an array in Scala –

94. Correct syntax for creating an array in Scala -

  1. var array_name : Array[data_type] = new Array[data_type(size)
  2. var array_name: Array[data_tpye] = new Array(size)
  3. var array_name = Array(element1, elmenet2, element3, ...)
  4. All of these

Answer: D) All of these

Explanation:

Read more: How to print an array in Scala?

Comments and Discussions!

Load comments ↻






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