Skip to main content

Python and AI Fundamentals assessment

Test what you learned across the Python and AI Fundamentals path. Every answer comes with an explanation, and you can retry as often as you like.

This assessment covers

  • Install Python and run scripts and interactive sessions
  • Use variables, conditions, loops, lists, dictionaries and functions
  • Explain the difference between AI, machine learning and deep learning
  • Describe how a supervised model learns from labelled examples
  • Recognise common risks of AI systems and use AI tools responsibly

Python and AI Fundamentals assessment

8 questions • 70% to pass • Practice only, no certificate

  1. 1.How does Python mark which lines belong to an if block?
  2. 2.What is printed?
    CODE
    nums = [4, 8, 15]
    nums.append(16)
    print(len(nums), nums[-1])
  3. 3.Which data structure maps keys to values?
  4. 4.What does range(1, 5) produce when looped over?
  5. 5.Which statement best describes machine learning?
  6. 6.In supervised learning, what are labels?
  7. 7.Why do we test a model on data it did not see during training?
  8. 8.Which is a responsible way to use a generative AI assistant at work?
0 of 8 answered