Search Header Logo

AEM249 Lecture 5

Authored by Markeith Diamond

Computers

University

Used 5+ times

AEM249 Lecture 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module in Python?

A file containing Python code that can be used by other modules or scripts

A type of variable in Python

A built-in function in Python

A method for importing data into Python

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the math module in Python?

To perform mathematical operations on strings

To provide access to mathematical functions and constants

To generate random numbers

To create visualizations in Python

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a popular Python library for working with numerical data?

Tensorflow

PyTorch

Seaborn

Pandas

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the random() method in the random module return?

A random integer

A random floating-point value

A random string

A random boolean value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using random numbers in engineering?

To generate predictable outcomes

To model uncertainties in simulations

To eliminate uncertainties in simulations

To create static visualizations

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the seed in the random module?

To eliminate randomness in simulations

To generate a random integer

To specify the range of random numbers

To help generate a random number

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ord() function in Python do?

Returns a string of one character for an encoded integer

Returns an encoded integer value for a string of length one

Returns a random floating-point value

Returns a random integer

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?