Skip to content

Graded Quiz: Building Apps with RAG :Build RAG Applications: Get Started (BM RAG and Agentic AI Professional Certificate) Answers 2025

Question 1

What is the primary purpose of gr.Interface in Gradio?

❌ Manage authentication
Create interactive web interfaces for Python functions
❌ Compile Python code
❌ Optimize ML performance

Explanation:
gr.Interface quickly converts Python functions into shareable UI components.


Question 2

Alex wants to set up a Gradio interface. What steps should he follow?

❌ Manually create a web interface
❌ Use HTML + cloud deployment
❌ Install Gradio + use gr.Textbox
Use Gradio’s Interface class → specify inputs & outputs → launch server → access URL

Explanation:
The standard method is defining a Gradio interface using gr.Interface() and launching it.


Question 3

Jamie needs both text & numeric inputs:

Use gr.Textbox + gr.Number as a list of inputs
❌ Use gr.File
❌ Use only Interface backend
❌ Create custom HTML

Explanation:
gr.Textbox handles text; gr.Number handles numeric input, passed together in the interface.


Question 4

How to ensure Slider outputs integer values?

❌ Only value
❌ Only min/max
❌ Min/max/value
Min, max, value, and step must all be integers

Explanation:
The step parameter determines increments; if it’s an integer, the slider outputs integers.


Question 5

Gradio’s Interface class wraps around:

A function
❌ dict
❌ list
❌ for loop

Explanation:
gr.Interface(fn=...) wraps a function and provides UI for inputs/outputs.


Question 6

Which input type allows selecting multiple values?

❌ Dropdown
❌ Checkbox
CheckboxGroup
❌ Radio

Explanation:
CheckboxGroup allows selecting multiple items at once.


Question 7

Arthur needs users to pick one of three venues (mutually exclusive):

❌ Checkbox
❌ Textbox
Dropdown
❌ SortedList

Explanation:
A dropdown enforces a single selection among several choices.


🧾 Summary Table

Q No. Correct Answer Key Concept
1 Create interactive UI Purpose of gr.Interface
2 Use Interface → configure → launch Gradio setup flow
3 gr.Textbox + gr.Number Multiple input types
4 Integer min/max/value/step Slider integer output
5 Function What Interface wraps
6 CheckboxGroup Multi-select input
7 Dropdown Single required choice