Programming I Fall Semester 2023 Test

MesmerizedDevotion avatar
MesmerizedDevotion
·
·
Download

Start Quiz

Study Flashcards

35 Questions

Which of the following is NOT true about cybersecurity?

Cyber attacks can devastate large organizations, but individuals are largely unaffected.

Which of the following devices is not connected to the Internet of Things?

An AM/FM radio without any bluetooth or Internet connection capabilities

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 and II

In cybersecurity, what does CIA stand for?

Confidentiality, Integrity, Availability

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?

Integrity

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.

False

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

I - VI all

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

I, III, and IV

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.

I, II, and IV

Victims of cyberbullying may experience which of the following?

All of the above

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

True

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

False

Which of the following describes a credible source?

The domain is .edu.

How would I tell Tracy to move forward 100 pixels?

forward(100)

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

The radius of the circle

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

The bottom of the circle

Where does Tracy always start in the grid world?

At the (0,0) coordinate in the middle of the canvas

What are the dimensions of Tracy’s world?

400 pixels x 400 pixels

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

A and B

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

200 pixels

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

penup() forward(100)

Tracy always starts facing which direction?

East

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

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

50 spaces

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

As many times as you want

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

You want Tracy to draw a blue line, and your program requires lots of blue lines.

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

forward(30) color("blue") left(180)

forward(30) color("green") left(180)

forward(30) color("orange") left(180)

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?

Has Tracy draw a single triangle

def make_triangle():

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

turn

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

Indentation always matters in Python. Every statement must be aligned correctly.

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

Functions let you execute code a fixed number of times.

What is the difference between defining and calling a function?

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.

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

How far Tracy is supposed to move

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)

A for loop

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

A triangle

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

radius = 50 circle(radius)

Test your knowledge of cybersecurity and the Internet of Things with questions about data exchange, vulnerability to cyber attacks, the CIA triad, and digital footprints. Explore concepts related to online connectivity and security.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser