LECTURE 04 Flashcards (24.11.2025)

LECTURE 04 Flashcards (24.11.2025)

Assessment

Flashcard

Engineering

University

Practice Problem

Hard

Created by

fgv fgv

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

True or False: Type hinting in Python helps you know what kind of data a function should use.

Back

True

2.

FLASHCARD QUESTION

Front

Which type hint shows that a function argument should be a word or sentence?

Back

name: str

3.

FLASHCARD QUESTION

Front

True or False: A docstring is a special note under a function that explains what the function does.

Back

True

4.

FLASHCARD QUESTION

Front

Which tool uses docstrings to help make web pages for your code?

Back

Sphinx

5.

FLASHCARD QUESTION

Front

True or False: NumPy broadcasting lets you add a number to every item in an array easily.

Back

True

6.

FLASHCARD QUESTION

Front

True or False: NumPy will give an error if you try to add np.array([1, 2, 3]) + 5.

Back

False

7.

FLASHCARD QUESTION

Front

Which is NOT a reason to use type hints?

Back

Makes code run faster

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?