Here is the solution for Crash Course on Pyhton by Google, Practice Quiz: Introduction to Programming solution. Practice Quiz: Introduction to Programming. All question and answers are given below
Question 1
What’s a computer program?
1. A set of languages available in the computer
2. A process for getting duplicate values removed from a list
3. A list of instructions that the computer has to follow to reach a goal
4. A file that gets copied to all machines in the network
Correct
You nailed it! At a basic level, a computer program is a recipe of instructions that tells your computer what to do.
Question 2
What’s the syntax of a language?
1. The rules of how to express things in that language
2. The subject of a sentence
3. The difference between one language and another
4. The meaning of the words
Correct
Right on! In a human language, syntax is the rules for how a sentence is constructed, and in a programming language, syntax is the rules for how each instruction is written.
Question 3
What’s the difference between a program and a script?
1. There’s not much difference, but scripts are usually simpler and shorter.
2. Scripts are only written in Python.
3. Scripts can only be used for simple tasks.
4. Programs are written by software engineers; scripts are written by system administrators.
Correct
You got it! The line between a program and a script is blurry; scripts usually have a shorter development cycle. This means that scripts are shorter, simpler, and can be written very quickly.
Question 4
Which of these scenarios are good candidates for automation? Select all that apply.
1. Generating a sales report, split by region and product type
Correct
Excellent! Creating a report that presents stored data in specific ways is a tedious task that can be easily automated.
2. Creating your own startup company
3. Helping a user who’s having network troubles
4. Copying a file to all computers in a company
Correct
Nice work! A task like copying files to other computers is easily automated, and helps to reduce unnecessary manual work.
5. Interviewing a candidate for a job
6. Sending personalized emails to subscribers of your website
Correct
Great job! Sending out periodic emails is a time-consuming task that can be easily automated, and you won't have to worry about forgetting to do it on a regular basis.
7. Investigating the root cause of a machine failing to boot
Practice Quiz: Introduction to Programming Solution |
|
No comments:
Post a Comment