nerdexam
Microsoft

DP-203 · Question #185

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?

The correct answer is A. %<language>. To change the language in Databricks’ cells to either Scala, SQL, Python or R, prefix the cell with ‘%’, followed by the language. %python //or r, scala, sql maintenance-with-azure-databricks

Submitted by brentm· Mar 30, 2026Develop data processing

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?

Options

  • A%<language>
  • B@<Language >
  • C\[<language >]
  • D\(<language >)

How the community answered

(31 responses)
  • A
    77% (24)
  • B
    13% (4)
  • C
    3% (1)
  • D
    6% (2)

Explanation

To change the language in Databricks’ cells to either Scala, SQL, Python or R, prefix the cell with ‘%’, followed by the language. %python //or r, scala, sql maintenance-with-azure-databricks

Topics

#Azure Databricks#magic commands#multi-language notebook#language switching

Community Discussion

No community discussion yet for this question.

Full DP-203 Practice