Courseiva
easyMultiple ChoiceObjective-mapped

PL-900 Practice Question: Refer to the exhibit

Exhibit

{
  "liquids": [
    {
      "name": "CurrentUser",
      "snippet": "{% if user %}<p>Welcome, {{ user.fullname }}!</p>{% else %}<p>Welcome, guest!</p>{% endif %}"
    }
  ]
}

Refer to the exhibit. A Power Pages developer uses the Liquid snippet shown in a web template. What will be displayed to an unauthenticated user viewing the page?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Welcome, guest!

The 'user' object is null for unauthenticated users, so the else branch executes, showing 'Welcome, guest!'.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • An empty paragraph.

    Why it's wrong here

    The else branch outputs text.

  • Nothing; the page will error.

    Why it's wrong here

    Liquid handles null gracefully.

  • Welcome!

    Why it's wrong here

    The snippet includes 'guest'.

  • Welcome, guest!

    Why this is correct

    The else branch displays this message.

About these practice questions

One of 904 original PL-900 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PL-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PL-900 exam.