Question
You are creating a new notebook in Azure Databricks that will support R as the primary language but will also support Scala and SQL.
Which switch should you use to switch between languages?
- A. \\[<language>]
- B. %<language> Correct
- C. \\[<language>]
- D. @<language>
Explanation
In a Databricks notebook, a cell runs in the notebook's default language unless you override it, and the language magic command %<language> at the start of a cell does that. The supported commands are %python, %r, %scala and %sql, so this R notebook would use %scala and %sql for its other cells. The backslash and @ forms are not Databricks notebook syntax.