get started with python coursera week 1 quiz answers
Test your knowledge: Get started with the course
1. Fill in the blank: Computer _____ refers to the process of giving instructions to a computer to perform an action or set of actions.
- visualizing
- programming
- analyzing
- science
2. In Python, what is a library?
- The words and symbols used to write instructions for computers to follow
- A reusable collection of code
- A sequence of data visualizations
- A chain of transistors
3. Python is a low-level programming language.
- True
- False
Test your knowledge: The power of Python
4. Fill in the blank: Jupyter Notebook is an open source _____ for creating and sharing documents containing live code, mathematical formulas, visualizations, and text.
- web application
- dot notation
- library
- programming language
5. In object-oriented programming, objects can contain both data and useful code that manipulates that data.
- True
- False
6. What are examples of classes in Python? Select all that apply.
- Integers
- Floats
- Strings
- Cells
Test your knowledge: Using Python syntax
7. Variables can only store values of numeric data types.
- True
- False
8. What are best practices when assigning a new variable? Select all that apply.
- Determine the variable’s name
- Determine the variable’s data type
- Determine the variable’s starting value
- Determine the variable’s keyword
9. Fill in the blank: An _____ is a combination of numbers, symbols, or other variables that produce a result when evaluated.
- object
- argument
- expression
- attribute
10. Which data type represents numbers that contain decimals?
- Boolean
- Integer
- String
- Float
Weekly challenge 1
11. Why do many data professionals prefer to use Python? Select all that apply.
- Python has a large and supportive community of users.
- Python is a low-level language.
- Python is a high-level language.
- Python has thousands of open source libraries available for use.
12. What are the benefits of using a Jupyter Notebook for data work? Select all that apply.
- Lets you collaborate on data projects
- Puts all of your code output in one document
- Automatically interprets the results of your data analysis
- Lets you add comments and annotations to your code
13. Fill in the blank: In Python, a _____ is a function that belongs to a class and typically performs an action or operation.
- method
- cell
- string
- keyword
14. Fill in the blank: _____ is the process of storing a value in a variable.
- Assignment
- Expression
- Conversion
- Syntax
15. In Python, variable names must start with which of the following? Select all that apply.
- A parenthesis
- An ampersand
- An underscore
- A letter
16. Which of the following is an effective variable name?
- fun_for_variables
- fun variable$
- fun_with_variables
- fun(variables)
17. In Python, which data type represents a sequence of characters and punctuation that contains textual information?
- String
- Boolean
- Float
- Integer
18. A data professional converts integers into strings using a predefined function. This is an example of what type of conversion?
- Mutable conversion
- Explicit conversion
- Immutable conversion
- Implicit conversion
19. A manager explores which programming language their team can use to perform coding work most effectively. They want a language with thousands of open-source libraries for reference. Ultimately, they select Python. What are some other benefits of using Python for coding? Select all that apply.
- Python has a large and supportive user community.
- Python is versatile.
- Python is a low-level language.
- Python is based on simple syntax.
20. Fill in the blank: The open-source web application _____ enables users to share documents containing live code, mathematical formulas, visualizations, and text. It also puts all output into a single document, which is very useful when first learning about programming.
- Jupyter Notebook
- Dot notation
- Implicit analysis
Dynamic coding
21. Fill in the blank: In Python, an _____ is a value associated with an object or class which is referenced by name using dot notation.
- integer
- assignment
- expression
- attribute
22. In Python, what describes the process of storing a value in a variable?
- Assignment
- Expression
- Conversion
- Syntax
23. A data professional names a variable in Python, then receives an error message. What might they have included in the name incorrectly? Select all that apply.
- More than one number
- Reserved functions
- More than one underscore
- Reserved keywords
24. Which of the following is an effective variable name?
- 5_able_variables
- able_variable
- able(variable)
- _able_int_variable
25. A data professional performs a calculation involving integers and floats. Python automatically converts the integers to floats. This is an example of what type of conversion?
- Immutable conversion
- Explicit conversion
- Implicit conversion
- Mutable conversion
26. In Python, what does assignment refer to?
- A combination of numbers, symbols, or other variables that produce a result when evaluated
- A value associated with an object or class which is referenced by name using dot notation
- A sequence of characters and punctuation that contains textual information
- The process of storing a value in a variable
27. A data professional names a variable in Python. To ensure they follow proper naming conventions, what may the variable name contain? Select all that apply.
- Underscores
- Reserved keywords
- Letters
- Numbers
28. In Python, which data type represents numbers that contain decimals?
- Boolean
- Integer
- String
- Float
29. FIll in the blank: In Python, a _____ is an object’s data type that bundles data and functionality together.
- float
- class
- method
- keyword
30. In Python, which data type represents whole numbers without fractions?
- Float
- Integer
- Boolean
- String