P1 & P2 Quiz 10.4.19

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which of the following can be used to replace <MISSING CONDITION> so that the code fragment will work as intended? https://assets.learnosity.com/organisations/537/media.academicmerit.com/58c5f943f54fa1978df2ec942c607805/original.png

(num MOD 2) = 1

What is displayed as a result of executing the algorithm in the flowchart? https://assets.learnosity.com/organisations/537/media.academicmerit.com/58a29f8635dc65daa1fb613153ce00a6/original.png

5

Which of the following programs is most likely to benefit from the use of a heuristic?

A program that finds the shortest driving route between two locations on a map

Distributed Denial of Service

An attack in which computers in a botnet are directed to flood a single website server with rapid-fire page requests, causing it to slow down or crash.

Which of the following best describes a Distributed Denial of Service (DDoS) attack?

An attempt to deny users access to a Web site's resources by flooding the Web site with requests from multiple systems

Which of the following is LEAST likely to indicate a phishing attack?

An e-mail from your bank asks you to call the number on your card to verify a transaction

If the variables onTime and absent both have the value false, what is displayed as a result of running the code segment? https://assets.learnosity.com/organisations/537/media.academicmerit.com/8a113f9a9689be188b7199aee3de2b22/original.png

Better late than never.

Metadata

Data that describes other data, serving as an informative label.

Which of the following algorithms can be used to accomplish the programmer's goal? A programmer completes the user manual for a video game she has developed and realizes she has reversed the roles of goats and sheep throughout the text. Consider the programmer's goal of changing all occurrences of "goats" to "sheep" and all occurrences of "sheep" to "goats." The programmer will use the fact that the word "foxes" does not appear anywhere in the original text.

First, change all occurrences of "goats" to "foxes." Then, change all occurrences of "sheep" to "goats." Last, change all occurrences of "foxes" to "sheep."

An author is considering publishing an e-book using a Creative Commons license. In which of the following situations would it be better for the author to use a Creative Commons license instead of a traditional copyright? I. The author wants to make the e-book available as a free download. II. The author wants to prevent people from sharing copies of the e-book on peer-to-peer networks. III. The author wants to allow people permission to use and modify the e-book.

I and III

Which of the following are true statements about digital certificates in Web browsers? I. Digital certificates are used to verify the ownership of encrypted keys used in secured communication. II. Digital certificates are used to verify that the connection to a Web site is fault tolerant.

I only

For which of the following goals would it be more useful to computationally analyze the metadata instead of the data? I. To determine if a caller frequently uses a specific word. II. To estimate the number of phone calls that will be placed next Monday between 10:30 A.M. and noon. III. To generate a list of criminal suspects when given the telephone number of a known criminal.

II and III only

Which of the following statements about security in the network is true? I. Computers A and D need to communicate with at least two additional computers in the network in order to communicate with each other. II. Computers B and C can communicate with each other without additional computers being aware of the communication.

II only

Cybersecurity

Measures taken to protect a computer or computer system against unauthorized access or attack.

What is displayed as a result of running the program? https://assets.learnosity.com/organisations/537/media.academicmerit.com/76ec928e0c95e61100642f62fc24b24b/original.png

November

Which of the following best describes the contents of resultList after the code segment is executed? https://assets.learnosity.com/organisations/537/media.academicmerit.com/c3b7f4085989f8c0b6d6dcce203fad92/original.png

Only elements that appear in both inputList1 and inputList2

A city government is attempting to reduce the digital divide between groups with differing access to computing and the Internet. Which of the following activities is LEAST likely to be effective in this purpose?

Putting all government forms on the city Web site

Which of the following activities poses the greatest personal cybersecurity risk?

Reserving a hotel room by e-mailing a credit card number to a hotel

An algorithm has been developed to compute the sum of all the elements in a list of integers. Which of the following programming structures must be added to the existing algorithm so that the new algorithm computes the sum of only the even integers in the list?

Selection

Historically, it has been observed that computer processing speeds tend to double every two years. Which of the following best describes how technology companies can use this observation for planning purposes?

Technology companies can set research and development goals based on anticipated processing speeds.

A certain computer game is played between a human player and a computer-controlled player. Every time the computer-controlled player has a turn, the game runs slowly because the computer evaluates all potential moves and selects the best one. Which of the following best describes the possibility of improving the running speed of the game?

The game's running speed might be improved by using a process that finds approximate solutions every time the computer-controlled player has a turn.

Which of the following best describes the behavior of the program? https://assets.learnosity.com/organisations/537/media.academicmerit.com/16d5d60f81274fb956e76e0c0780687c/original.png

The program correctly displays the number of times target appears in the list.

Which of the following statements is true?

There exist problems that no algorithm will ever be able to solve for all possible inputs.

For which of the following goals would it be more useful to analyze the data instead of the metadata? The time the message was posted The name of the user who posted the message The names of any users who comment on the message and the times the comments were made

To determine the topics that many users are posting about

Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem?

When the problem cannot be solved in a reasonable time and an approximate solution is acceptable

Using only the database, which of the following can be determined? A retailer that sells footwear maintains a single database containing records with the following information about each item for sale in the retailer's store. Item identification number, Footwear type (sneakers, boots, sandals, etc.), Selling price (in dollars), Size, Color, Quantity available.

Which items listed in the database are not currently in the store

Heuristic

a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible.

Following execution of the algorithm, which of the following expressions indicates that the simulation resulted in an equal number of heads and tails? Step 1: Initialize the variables heads_counter and flip_counter to 0. Step 2: A variable coin_flip is randomly assigned a value of either 0 or 1. If coin_flip has the value 0, the coin flip result is heads, so heads_counter is incremented by 1. Step 3: Increment the value of flip_counter by 1. Step 4: Repeat steps 2 and 3 until flip_counter equals 4.

head_counter = 2

Which of the following shows a possible result of calling the procedure? https://assets.learnosity.com/organisations/537/media.academicmerit.com/1d85d42d294a2b5f0744fa4a01f56c61/original.png https://assets.learnosity.com/organisations/537/media.academicmerit.com/a450133b59bb51750d5d56fb24f33faf/original.png

https://assets.learnosity.com/organisations/537/media.academicmerit.com/ce3e3bd1d234052aecdb259326f9cf68/original.png

Which of the following replacements for <MISSING CONDITION> will result in an infinite loop? https://assets.learnosity.com/organisations/537/media.academicmerit.com/c8d2be24b03021e0e79e04f5629cb685/original.png

j=6

Which of the following code segments will correctly create newList ? https://assets.learnosity.com/organisations/537/media.academicmerit.com/28924af46e0fe50344c1ed589798db54/original.png

newList ← Combine (list1, list2) newList ← Sort (newList) newList ← RemoveDuplicates (newList)

Which of the following pairs of values indicates that a student is eligible to receive an academic award? (numberOfAbsences ≤ 5) AND (gradePointAverage > 3.5)

numberOfAbsences = 5, gradePointAverage = 3.8


Set pelajaran terkait

The Secret Life of Bees Study Guide

View Set

Intro to Latin American Politics Exam 2

View Set

Economics Seminar questions (S2)

View Set

Hiragana in 48 minutes YA-YO (original pictures)

View Set

Algebra II 5.08: Simplify Complex Fractions

View Set