Crash Course on Python Coursera all Week Answers

In this post, you will get all weeks quiz answers of Crash Course on Python – Coursera.

Enroll Here: Crash Course on Python – Coursera (If you want this cost at free of cost then apply for financial aid)

Shortcut to Search any random question:

Desktop users: ctrl + F
Mobile users: Click on 3 dots ( ⋮ visible on top left of browser) -> Go to “Find in Page” -> Enter question

Course overview (All weeks quizzes answers link)

  • Week 1: Crash Course on Python Coursera Quiz answers
  • Week 2: Crash Course on Python Coursera Quiz answers
  • Week 3: Crash Course on Python Coursera Quiz answers
  • Week 4: Crash Course on Python Coursera Quiz answers
  • Week 5: Crash Course on Python Coursera Quiz answers
  • Week 6: Crash Course on Python Coursera Quiz answers
  • Week 7: Crash Course on Python Coursera Quiz answers
Crash Course on Python Coursera Quiz answers

Now, let’s start with Week 1 quiz answers which is a part of Crash Course on Python – Coursera

Week 1: Crash Course on Python Coursera Quiz answers

Below you’ll find all practice quiz answers of different topics/sections in Crash Course on Python Coursera Quiz answers and end quiz exam answers under week 1.

Practice Quiz: Introduction to Programming Quiz Answers Coursera – 5 questions

Q1: What’s a computer program?

a) A set of languages available in the computer
b) A process for getting duplicate values removed from a list
c) A list of instructions that the computer has to follow to reach a goal
d) A file that gets copied to all machines in the network

Answer: c) A list of instructions that the computer has to follow to reach a goal

Q2. What’s the syntax of a language?

a) The rules of how to express things in that language
b) The subject of a sentence
c) The difference between one language and another
d) The meaning of the words

Answer: a) The rules of how to express things in that language

Q3. What’s the difference between a program and a script?

a) There’s not much difference, but scripts are usually simpler and shorter.
b) Scripts are only written in Python.
c) Scripts can only be used for simple tasks.
d) Programs are written by software engineers; scripts are written by system administrators.

Answer: a) There’s not much difference, but scripts are usually simpler and shorter.

Q4. Which of these scenarios are good candidates for automation? Select all that apply.

a) Generating a sales report, split by region and product type
b) Creating your own startup company
c) Helping a user who’s having network troubles
d) Copying a file to all computers in a company
e) Interviewing a candidate for a job
f) Sending personalized emails to subscribers of your website
g) Investigating the root cause of a machine failing to boot

Answer: a), d), f)

Q5. What are semantics when applied to programming code and pseudocode?

a) The rules for how a programming instruction is written
b) The difference in number values in one instance of a script compared to another
c) The effect the programming instructions have
d) The end result of a programming instruction

Answer: c) The effect the programming instructions have

Practice Quiz: Introduction to Python Quiz Answers Coursera – 5 questions

Q1. Fill in the correct Python command to put “My first Python program” onto the screen.

___("My first Python program")

Answer: print(“My first Python program”)

Q2. Python is an example of what type of programming language?

a) Client-side scripting language
b) Machine language
c) Platform-specific scripting language
d) General purpose scripting language

Answer: d) General purpose scripting language

Q3. Convert this Bash command into Python:

echo Have a nice day

Answer: print(“Have a nice day”)

Q4. Fill in the correct Python commands to put “This is fun!” onto the screen 5 times.

for i in __:
  ___("This is fun!")

Answer: for i in range(5):
                     print(“This is fun!”)

Q5. Select the Python code snippet that corresponds to the following JavaScript snippet:

for (let i = 0; i < 10; i++) {
        console.log(i);
    }

Answer: d)

for i in range(10):
  print(i)

Practice Quiz: Hello World Quiz Answers Coursera – 5 questions

Q1. What are functions in Python?

a) Functions let us to use Python as a calculator.
b) Functions are pieces of code that perform a unit of work.
c) Functions are only used to print messages to the screen.
d) Functions are how we tell if our program is functioning or not.

Answer: b) Functions are pieces of code that perform a unit of work.

Q2. What are keywords in Python?

a) Keywords are reserved words that are used to construct instructions.
b) Keywords are used to calculate mathematical operations.
c) Keywords are used to print messages like “Hello World!” to the screen.
d) Keywords are the words that we need to memorize to program in Python.

Answer: a) Keywords are reserved words that are used to construct instructions.

Q3. What does the print function do in Python?

a) The print function generates PDFs and sends it to the nearest printer.
b) The print function stores values provided by the user.
c) The print function outputs messages to the screen
d) The print function calculates mathematical operations.

Answer: c) The print function outputs messages to the screen

Q4. Output a message that says “Programming in Python is fun!” to the screen.

Answer: print(“Programming in Python is fun!”)

Q5. Replace the ___ placeholder and calculate the Golden ratio: \frac{1+\sqrt{5}}{2}21+5​​.

Tip: to calculate the square root of a number xx, you can use x**(1/2).

ratio = ___
print(ratio)

Answer: ratio = (1+5**(1/2))/2
print(ratio)

WEEK 1 QUIZ

Module 1 Graded Assignment Week 1 Quiz Answers Coursera – 10 questions

This is the end quiz of week 1 in Crash Course on Python Coursera Quiz answers. It is necessary to complete with 80% or higher.

Q1. What is a computer program?

a) A file that gets printed by the Python interpreter.
b) The syntax and semantics of Python.
c) The overview of what the computer will have to do to solve some automation problem.
d) A step-by-step recipe of what needs to be done to complete a task, that gets executed by the computer.

Answer: d) A step-by-step recipe of what needs to be done to complete a task, that gets executed by the computer.

Q2. What’s automation?

a) The inputs and outputs of a program.
b) The process of replacing a manual step with one that happens automatically.
c) The checkout processes at a grocery store.
d) The process of getting a haircut.

Answer: b) The process of replacing a manual step with one that happens automatically.

Q3. Which of the following tasks are good candidates for automation? Check all that apply.

a) Writing a computer program.
b) Creating a report of how much each sales person has sold in the last month.
c) Setting the home directory and access permissions for new employees joining your company.
d) Designing the new webpage for your company.
e) Taking pictures of friends and family at a wedding.
f) Populating your company’s e-commerce site with the latest products in the catalog.

Answer: b), c), f)

Q4. What are some characteristics of the Python programming language? Check all that apply.

a) Python programs are easy to write and understand.
b) The Python interpreter reads our code and transforms it into computer instructions.
c) It’s an outdated language that’s barely in use anymore.
d) We can practice Python using web interpreters or codepads as well as executing it locally.

Answer: a), b), d)

Q5. How does Python compare to other programming languages?

a) Python is the only programming language that is worth learning.
b) Each programming language has its advantages and disadvantages.
c) It’s always better to use an OS specific language like Bash or Powershell than using a generic language like Python.
d) Programming languages are so different that learning a second one is harder than learning the first one.

Answer: b) Each programming language has its advantages and disadvantages.

Q6. Write a Python script that outputs “Automating with Python is fun!” to the screen.

Answer: print(“Automating with Python is fun!”)

Q7. Fill in the blanks so that the code prints “Yellow is the color of sunshine”.

color = ___
thing = ___
print(color + " is the color of " + thing)

Answer: color = “Yellow”
thing = “sunshine”
print(color + ” is the color of ” + thing)

Q8. Keeping in mind there are 86400 seconds per day, write a program that calculates how many seconds there are in a week, if a week is 7 days. Print the result on the screen.

Answer: print( 86400*7)

Q9. Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, there would be 26 possibilities. For a 2 letter password, each letter is independent of the other, so there would be 26 times 26 possibilities. Using this information, print the amount of possible passwords that can be formed with 6 letters.

Answer: print(26**6)

Q10. Most hard drives are divided into sectors of 512 bytes each. Our disk has a size of 16 GB. Fill in the blank to calculate how many sectors the disk has.

disk_size = 16*1024*1024*1024
sector_size = 512
sector_amount = ___

print(sector_amount)

Answer: disk_size = 16*1024*1024*1024
sector_size = 512
sector_amount = disk_size/sector_size
print(sector_amount)


>> Next: WEEK 2: Java Programming: Solving Problems with Software Coursera Quiz answers

Explore! Artificial Intelligence Foundations Exams answers – SkillUp

NPTEL answers: NPTEL Operating System Fundamentals Assignment solutions

The above question set contains all the correct answers. But in any case, you find any typographical, grammatical or any other error then kindly inform us.

Thanks in advance.

For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.

Leave a Comment

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