Microsoft

DP-300 practice question 18

Administering Microsoft Azure SQL Solutions · free question 18 of 20

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.

Need the theory? Learn it free in the DP-300 course on Godlike Academy

Practice the whole free set

Answer all 20 free DP-300 questions with instant feedback, or unlock all 373 questions with Learn and Exam modes.