Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    • #772
      Abhishek TyagiAbhishek Tyagi

      Question 1- What is a computer program?

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

      Question 2- What’s automation?

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

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

      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.
      Populating your company’s e-commerce site with the latest products in the catalog.

      Question 4- 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.
      We can practice Python using web interpreters or codepads as well as executing it locally.

      Question 5- How does Python compare to other programming languages?

      Each programming language has its advantages and disadvantages.

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

      print(“Automating with Python is fun!”)

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

      color = 'Yellow'
      thing = 'sunshine'
      print(color + " is the color of " + thing)

      Question 8-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.
      Note: Your result should be in the format of just a number, not a sentence.

      day = 86400
      week = 7*(day)

      Question 9- 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.

      letters = 26
      PasswordLength = 6
      possibilities = letters**PasswordLength

      Question 10-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.

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

      disk_size = 16*1024*1024*1024
      sector_size = 512
      sector_amount = disk_size/sector_size
Viewing 0 reply threads
  • You must be logged in to reply to this topic.