ItTechGenie
ChoiceQuestions
Home
C#
Azure
.NET Core
React
Azure DevOps
Docker
Terraform
DataStorage
DataBricks
AzureServiceFabrics
Practice Questions
MCQ'S
Privacy
ItTechGenie
Home
Azure
Azure DevOps
AzureServiceFabrics
C#
DataBricks
DataStorage
Docker
.NET Core
React
Selenium
Terraform
Practice Questions
MCQ'S
Privacy
☰ ChoiceQuestions Items
Navigate here to Learn
MCQ Topics
▶
Question 1 of 50
Which of the following is a valid way to define a function in Scala?
A. function myFunc(x: Int) = x * 2
B. def myFunc(x: Int): Int = { x * 2 }
C. function myFunc(x): Int { return x * 2; }
D. fun myFunc(Int x): Int = x * 2
Next ➡