DP-200 Exam QuestionsBrowse all questions from this exam

DP-200 Exam - Question 97


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?

Show Answer
Correct Answer: A

To switch between languages in an Azure Databricks notebook, you use the magic command %<language> at the beginning of a cell. The supported languages include %r for R, %scala for Scala, and %sql for SQL. This allows a single notebook to contain cells with different languages, facilitating multi-language support within the same notebook.

Discussion

2 comments
Sign in to comment
akash0680
Dec 15, 2020

Correct Answer :)

Allapanda
Jul 14, 2021

not exactly. its %%

tanssive
Sep 19, 2021

in Databricks you use just '%' e.g. %scala ... CODE