Build real world applications with Python Microsoft Quiz Answers

Get Build real world applications with Python Microsoft Quiz Answers

Interested in learning to build apps in Python, that you can maintain? You will learn language syntax but also patterns for how to structure your app.

In this learning path, you’ll:

  • Write your first lines of Python code
  • Explore patterns like object orientation
  • Build real apps

Once you complete this learning path, you will have a great foundation to build large applications.

Prerequisites:

None

Enroll on Microsoft

Module 2: Introduction to object-oriented programming with Python

This module will teach you how to model problems by using object-oriented programming (OOP) concepts. You’ll also learn to turn your model into working code by using OOP concepts like classes, attributes, and methods.

Learning objectives:

After completing this module, you’ll be able to:

  • Model problems by using OOP concepts.
  • Describe the basic concepts involved in OOP.
  • Distinguish classes from objects.

Prerequisites:

  • Basic knowledge of Python – syntax, writing and invoking functions, creating variables, reading inputs, and generating outputs from the Python console
  • Familiarity with using a text editor or IDE
  • Knowledge on how to execute a Python program
  • Python keywords
  • Knowing how to raise exceptions in Python

This module is part of these learning paths:

Quiz 1: Knowledge check

Q1. What is the difference between a class and an object?

  • They’re the same thing.
  • A class is a blueprint. An object is the concrete instance you build from the blueprint.
  • A class has data and an object doesn’t.
  • A class has methods and an object doesn’t.

Q2. How does Python implement accessors?

  • It uses prefixes. One underscore, _, at the beginning of the name indicates this variable is protected. Two underscores, __, make the variable private and will raise an exception if assigned.
  • It uses keywords private and public.
  • Everything in a Python class is hidden by default and must be exposed by adding methods that return the variables’ values.
  • Add the decorator @public or @private to make something public or private.

Q3. Choose the best explanation that explains the parameter self.

  • It’s a parameter that refers to the object instance. You can also use this.
  • The self parameter refers to the underlying class of the object.
  • The only time self is used is to refer to members of the object, and it’s passed as a parameter.
  • The self parameter refers to the object instance. Assignment to self means that the attribute ends up on the object instance.

Module 3: Build an AI web app by using Python and Flask

Use Python, Flask, and Azure Cognitive Services to build a web app that incorporates AI

Learning objectives:

In this module, you’ll build a website using Flask and Cognitive Services to translate text.

  • Learn how to set up a Flask development environment
  • Learn how to use Flask to build a form
  • Learn how to use the Translator service to translate text

Prerequisites:

  • An Azure account. Learn how to create a free account in Create an Azure account.
  • Python 3.6 or later and VS code installed on your computer. Follow the steps in the Install Python 3 module. At the top of the article, choose the instructions for your configuration: Windows, Linux, or macOS.
  • Visual Studio Code

This module is part of these learning paths:

Quiz 1: Flask fundamentals

Q1. Flask is a framework for building web apps in which of the following languages?

  • Python and Node.js
  • Python and Java
  • Python only

Quiz 2: Exercise – Create an app

Q1. What is the default port number that Flask uses to service HTTP requests?

  • 80
  • 5000
  • 8080

Q2. In what subdirectory should Jinja template files be stored by default?

  • templates
  • static
  • html

Quiz 3: Exercise – Call Translator service

Q1. What is the name of the HTTP header that carries API keys in calls to Azure Cognitive Services?

  • Ocp-Apim-Cognitive-Key
  • Ocp-Apim-Subscription-Key
  • Ocp-Apim-Auth-Key

Module 4: Get started with testing in Python

Start testing with Python using the unittest module. Get exposed to other testing concepts like functional and integration testing.

Learning objectives:

By the end of this module, you’ll be able to:

  • Write tests using unittest: Python’s standard library testing module
  • Identify and fix failures by reading test failure reports
  • Differentiate between unit, functional, and integration testing types

Prerequisites:

  • Ability to write Python scripts
  • Familiarity with command-line tools and executing scripts
  • Python 3.6 or later installed on your computer. Follow the steps in the Install Python 3 module. At the top of the article, choose the instructions for your configuration: Windows, Linux, or macOS.

This module is part of these learning paths:

Quiz 1: Knowledge check

Q1. What is one common side-effect for functions when there are no tests involved?

  • Functions will run faster because they don’t need to use tests.
  • Functions can grow in complexity and size.
  • Functions will run slower and have more arguments.

Q2. What is a recognizable aspect in functions and methods when testing is involved?

  • They tend to have a single responsibility instead of doing many different things
  • They’re more flexible, allowing more arguments
  • They don’t tend to raise exceptions

Q3. What is the correct Python invocation to use test auto discovery?

  • python -m autodiscovery
  • python -m discovery
  • python -m unittest
Conclusion:

I hope this Build real world applications with Python Microsoft Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

Cognitive Class Answer

CodeChef Solution

Microsoft Learn

Leave a Reply

Your email address will not be published. Required fields are marked *