100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Crash Course on Python By Google Exam Pack 2020 $2.99   Add to cart

Exam (elaborations)

Crash Course on Python By Google Exam Pack 2020

 761 views  0 purchase
  • Course
  • Institution

Module 1 Graded Assessment 1. Question 1 What is a computer program? 1 point A file that gets printed by the Python interpreter. The syntax and semantics of Python. The overview of what the computer will have to do to solve some automation problem. A step-by-step recipe of...

[Show more]

Preview 3 out of 28  pages

  • January 22, 2021
  • 28
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Module 1 Graded Assessment
TOTAL POINTS 10



1. What is a computer program? 1 point


A file that gets printed by the Python interpreter.

The syntax and semantics of Python.

The overview of what the computer will have to do to solve some automation problem.

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




2. What’s automation? 1 point


The inputs and outputs of a program.

The process of replacing a manual step with one that happens automatically.

The checkout processes at a grocery store.

The process of getting a haircut.




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



Writing a computer program.


Creating a report of how much each sales person has sold in the last month.


Setting the home directory and access permissions for new employees joining your
company.


Designing the new webpage for your company.


Taking pictures of friends and family at a wedding.


Populating your company's e-commerce site with the latest products in the catalog.




4. 1 point

1/3

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


Python programs are easy to write and understand.


The Python interpreter reads our code and transforms it into computer instructions.


It's an outdated language that's barely in use anymore.


We can practice Python using web interpreters or codepads as well as executing it
locally.




5. How does Python compare to other programming languages? 1 point


Python is the only programming language that is worth learning.

Each programming language has its advantages and disadvantages.

It's always better to use an OS specific language like Bash or Powershell than using a
generic language like Python.

Programming languages are so different that learning a second one is harder than
learning the first one.




6. Write a Python script that outputs "Automating with Python is fun!" to the screen. 1 point


1 print("Automating with Python is fun!")

Run

Reset


Automating with Python is fun!




7. Fill in the blanks so that the code prints "Yellow is the color of sunshine". 1 point


1 color = "Yellow"
2 thing = "sunshine"
3 print(color + " is the color of " + thing) Run

Reset


Yellow is the color of sunshine


2/3

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

Note: Your result should be in the format of just a number, not a sentence.

1 seconds=86400*7
2 print(seconds)
Run

Reset


604800




9. Use Python to calculate how many different passwords can be formed with 6 lower case 1 point
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.

1 x=26**6
2 print(x)
Run

Reset


308915776




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

Note: Your result should be in the format of just a number, not a sentence.

1 disk_size = 16*1024*1024*1024
2 sector_size = 512
3 sector_amount = disk_size/sector_size
4 Run
5 print(sector_amount)
Reset


33554432.0




3/3

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller CourseHeroes. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $2.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

74735 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$2.99
  • (0)
  Add to cart