Programming I Fall Semester 2023 Test
35 Questions
7 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is NOT true about cybersecurity?

  • Recent data breaches have released personal information of hundreds of millions of people.
  • Cybersecurity is the protection of computer systems, networks, and data from digital attacks.
  • As we rely more on computing devices to store and send data, we increase our vulnerability to cyber attacks.
  • Cyber attacks can devastate large organizations, but individuals are largely unaffected. (correct)
  • Which of the following devices is not connected to the Internet of Things?

  • An AM/FM radio without any bluetooth or Internet connection capabilities (correct)
  • A wearable device that measures your physical activity and allows you to track your activity through a mobile app
  • A smart thermostat that allows you to remotely control your home’s temperature through a mobile app
  • A digital baby monitor that allows you to stream video and audio of your nursery from the Internet
  • Which of the following is true about the Internet of Things? I. The Internet of Things is the network of devices with the ability to connect and exchange data. II. The Internet of Things increases our vulnerability to cyber attacks. III. The Internet of Things is purely positive–there are no negative consequences to increased connectivity

  • I only
  • I and II (correct)
  • I and III
  • None of the above
  • In cybersecurity, what does CIA stand for?

    <p>Confidentiality, Integrity, Availability</p> Signup and view all the answers

    Alice is buying books from an online retail site, and she finds that she is able to change the price of a book from $19.99 to $1.99.

    Which part of the CIA triad has been broken?

    <p>Integrity</p> Signup and view all the answers

    rue or False. The information about a particular person that exists on the Internet is a result of only a portion of their online activity. Some things don’t matter or are not part of a person’s digital footprint.

    <p>False</p> Signup and view all the answers

    A person’s digital footprint consists of the following:

    I. Comments you leave II. Pictures you post III. Topics you search IV. Apps you use V. Music you download VI. Emails you send

    <p>I - VI all</p> Signup and view all the answers

    Which of the following can help you to maintain your digital footprint? I. Using privacy settings to limit your exposure II. Posting long rants when you are angry about something III. Reviewing posts you are tagged in and taking action if needed IV. Googling yourself on a regular basis

    <p>I, III, and IV</p> Signup and view all the answers

    Which of the following statements are true about cyberbullying: I. Cyberbullying uses electronic communication to bully a person. II. Cyberbullying is a crime in many states. III. Instances of cyberbullying do not affect the digital footprint of the victim. IV. Cyberbullying hurts real people even though we can’t always see their reactions online.

    <p>I, II, and IV</p> Signup and view all the answers

    Victims of cyberbullying may experience which of the following?

    <p>All of the above</p> Signup and view all the answers

    True or False: Cyberbullying can be persistent, permanent and discreet (meaning teachers and parents can’t see or overhear cyberbullying).

    <p>True</p> Signup and view all the answers

    True or false: The internet is a great place to socialize, and because it is completely online, everyone is safe.

    <p>False</p> Signup and view all the answers

    Which of the following describes a credible source?

    <p>The domain is .edu.</p> Signup and view all the answers

    How would I tell Tracy to move forward 100 pixels?

    <p>forward(100)</p> Signup and view all the answers

    When using the circle() command, what value do we put inside the parentheses?

    <p>The radius of the circle</p> Signup and view all the answers

    When Tracy is facing right, from what location does she start drawing her circle?

    <p>The bottom of the circle</p> Signup and view all the answers

    Where does Tracy always start in the grid world?

    <p>At the (0,0) coordinate in the middle of the canvas</p> Signup and view all the answers

    What are the dimensions of Tracy’s world?

    <p>400 pixels x 400 pixels</p> Signup and view all the answers

    Which commands would move Tracy forward 100 pixels? A. forward(100) B. backward(-100) C. forward(-100)

    <p>A and B</p> Signup and view all the answers

    How far does Tracy need to move from the starting position to reach the end of the right side of the canvas?

    <p>200 pixels</p> Signup and view all the answers

    If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?

    <p>penup() forward(100)</p> Signup and view all the answers

    Tracy always starts facing which direction?

    <p>East</p> Signup and view all the answers

    When the following for loop is complete, how many spaces will Tracy have moved?

    for i in range(5): forward(10)

    <p>50 spaces</p> Signup and view all the answers

    Suppose you write a function. How many times can you call the function in your code?

    <p>As many times as you want</p> Signup and view all the answers

    In which of the following situations would it be best to make a function?

    <p>You want Tracy to draw a blue line, and your program requires lots of blue lines.</p> Signup and view all the answers

    Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around.

    <p>forward(30) color(&quot;blue&quot;) left(180)</p> <p>forward(30) color(&quot;green&quot;) left(180)</p> <p>forward(30) color(&quot;orange&quot;) left(180)</p> Signup and view all the answers

    Suppose you want to make Tracy draw a mountain range,with five triangle "mountains" starting from the left side. Which of the following functions would be the most useful function to write in order to solve this problem?

    <h1>Has Tracy draw a single triangle</h1> <p>def make_triangle():</p> Signup and view all the answers

    Which of the following is NOT a command you can give to Tracy?

    <p>turn</p> Signup and view all the answers

    Which of the statements below is true about indentation in Python?

    <p>Indentation always matters in Python. Every statement must be aligned correctly.</p> Signup and view all the answers

    Which of the following is NOT a purpose of using functions?

    <p>Functions let you execute code a fixed number of times.</p> Signup and view all the answers

    What is the difference between defining and calling a function?

    <p>Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.</p> Signup and view all the answers

    What does the number in the parentheses in a forward or backward command represent?

    <p>How far Tracy is supposed to move</p> Signup and view all the answers

    What control structure would be best to use in the following code?

    backward(100) right(90) backward(100) right(90) backward(100) right(90) backward(100) right(90)

    <p>A for loop</p> Signup and view all the answers

    What shape will be drawn with the following command? circle(50, 360, 3)

    <p>A triangle</p> Signup and view all the answers

    How can we use variable to control the size of a circle?

    <p>radius = 50 circle(radius)</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser