All Coursera Quiz Answers

Test your knowledge: Core Python components Quiz Answer

In this article i am gone to share Coursera Course: Automate Cybersecurity Tasks with Python Week 1 Practice Quiz | Test your knowledge: Core Python components Quiz Answer with you..

Enroll Link:ย  Automate Cybersecurity Tasks with Python

About this Course: In this course, you will be introduced to the Python programming language and apply it in a cybersecurity setting to automate tasks. You’ll start by focusing on foundational Python programming concepts, including data types, variables, conditional statements, and iterative statements. You’ll also learn to work with Python effectively by developing functions, using libraries and modules, and making your code readable. In addition, you’ll work with string and list data, and learn how to import, parse and debug files.


Also visit:ย  Test your knowledge: Introduction to Python programming in cybersecurity Quiz Answer


 

Test your knowledge: Core Python components Quiz Answer

Question 1)
Which of the following data items are float data? Select all that apply.

  • 15.0
  • 8
  • “5.2”
  • -2.11

Question 2)
What code displays the data type of the variable username?

username = [“elarson”, “bmoreno”, “tshah”]
type(username) = data_type
print(data_type)

username = [“elarson”, “bmoreno”, “tshah”]
data_type = type()
print(data_type)

username = [“elarson”, “bmoreno”, “tshah”]
data_type = username
print(data_type)

  • username = [“elarson”, “bmoreno”, “tshah”]
    data_type = type(username)
    print(data_type)

Question 3)
In the following code, what is the data type of login_success?

login_success = [“success”, “success”, “fail”, “success”]

  • List
  • String
  • Boolean
  • Integer

Question 4)
What is the output of the following code?

failed_attempts = 3
failed_attempts = 4
print(failed_attempts)

  • 3, 4
  • 4
  • 3
  • 7