The exercise contains 15 questions. The solution is provided for each question.
Each question contains the necessary skills you need to learn.
I have added tips and required learning resources for each question, which helps you solve the exercise. When you complete each question, you get more familiar with a control structure, loops, string, and list.
Use Online Code Editor to solve exercise questions.
Also, try to solve the basic Python Quiz for beginners
Exercise 1: Given two integer numbers return their product. If the product is greater than 1000, then return their sum
Reference article for help:
Accept user input in Python
Calculate an Average in Python
Given 1:
number1 = 20
number2 = 30
Expected Output:
The result is 600
Given 2:
number1 = 40
number2 = 30
Expected Output:
The result is 70
Explanation:
Answer:
The correct equivalent measure of each amount are;
27. 1 gallon ≡ 4 quart
28. 1 quart ≡ 4 cups
29. 1 quart ≡ 2 pints
30. 1 pint ≡ 2 cups
31. 1 cup ≡ 16 tablespoons
32. 2.5 ounces ≡ 4 tablespoons
33. 1 tablespoon ≡ 3 teaspoons
34. 0.8 pint ≡ 16 ounces
Explanation:
In the imperial units of volume, we have the following equivalent volumes;
27. 1 imperial gallon is equivalent to 4 imperial quart
28. 1 imperial quart is equivalent to 4 imperial cups
29. 1 imperial quart is equivalent to 2 imperial pints
30. 1 imperial pint is equivalent to 2 imperial cups
31. 1 imperial cup is equivalent to 16 imperial tablespoons
32. 2.5 imperial ounces is equivalent to 4 imperial tablespoons
33. 1 imperial tablespoon is equivalent to 3 imperial teaspoons
34. 0.8 imperial pint is equivalent to 16 imperial ounces
Answer:
a. Data link layer
Explanation:
A trailer / footer is the additional data (metadata) which is positioned at the end of the data block being stored or transferred,it may contain information for the processing of the data block or simply placed at the end of the block.
In data transmission, the data is called the payload or body after the end of the header and before the trailer starts.
In Data link layer, it contain three parts-
- Frame header
- Frame data
- Frame footer
It seems that you have missed the necessary options for us to answer this question, but anyway, here is the answer. The advantage of an electronic SPREADSHEET <span>is that the content can be easily edited and updated to reflect changing financial conditions. Hope this answers your question.</span>
Answer:
C. Social Engineering
Explanation:
Social engineering can be defined as an art of manipulating people, especially the vulnerable to divulge confidential information or performing actions that compromises their security.
Basically, it is a manipulative strategy or technique that involves the use of deceptive and malicious activities on unsuspecting victims in order to gain unauthorized access to their confidential or private information for fraud-related purposes. Some examples of social engineering attacks include quid pro quo, spear phishing, baiting, tailgating, water-holing, vishing, pretexting, phishing, etc.
Phishing is an attempt to obtain sensitive information such as usernames, passwords and credit card details or bank account details by disguising oneself as a trustworthy entity in an electronic communication usually over the internet.
Furthermore, phishing is a type of fraudulent or social engineering attack used to lure unsuspecting individuals to click on a link that looks like that of a genuine website and then taken to a fraudulent web site which asks for personal information.
In conclusion, social engineering being a form of cyber attack is not an advantage of a computer network.