0
0
Prompt Engineering / GenAIml~10 mins

AI governance frameworks in Prompt Engineering / GenAI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a basic AI governance principle.

Prompt Engineering / GenAI
ai_governance = {"principle": "[1]"}
Drag options to blanks, or click blank then click option'
Atransparency
Baccuracy
Cspeed
Dcomplexity
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'accuracy' which is important but not a governance principle here.
2fill in blank
medium

Complete the code to add a governance framework component that ensures fairness.

Prompt Engineering / GenAI
framework = {"fairness": [1]
Drag options to blanks, or click blank then click option'
A"fast processing"
B"user interface"
C"data storage"
D"bias detection"
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unrelated components like 'fast processing'.
3fill in blank
hard

Fix the error in the code to correctly represent an AI governance policy.

Prompt Engineering / GenAI
policy = {"accountability": [1]
Drag options to blanks, or click blank then click option'
A"True"
BTRUE
CTrue
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using quoted "True" which is a string, not a boolean.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that filters AI risks above a threshold.

Prompt Engineering / GenAI
risks_filtered = {risk: level for risk, level in risks.items() if level [1] [2]
Drag options to blanks, or click blank then click option'
A>
B5
C<
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' which would filter lower risks.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps AI principles to their descriptions if the description length is greater than 10.

Prompt Engineering / GenAI
principles_desc = [1]: [2] for [3], [2] in principles.items() if len([2]) > 10}
Drag options to blanks, or click blank then click option'
Aprinciple
Bdescription
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing variable names or using the same name for key and value.