Given an array, x of references to objects that implement the Comparable interface, two int variables k and j that contain valid indices to x, write some statements that exchange (or swap) the contents of the elements referenced by the integers.
Answer:
Following are the code to this question:
Comparable t; //defining interface variable t
t = x[k]; //use t variable that holds array value
x[k] = x[j]; //use array to store x[j] value
x[j] = t;//use x[j] to assign value in the t
Explanation:
In the given question it is already defined " x" is an array that is the reference object, that defines the Comparable interface "t", and in the next line, two integer variable "k and j" is defined, that swap the values.
In the above code, the Comparable interface "t" is defined, which uses the t variable to store array x[k] value, and x[k] stores the x[j] value, and x[j] stores t value, and perform the swapping.
Write a method mirror that accepts an ArrayList of Strings as a parameter and produces a mirrored copy of the list as output, with the original values followed by those same values in the opposite order. For example, if an ArrayList variable called list contains the values ["a", "b", "c"], after a call of mirror(list); it should contain ["a", "b", "c", "c", "b", "a"].
Answer:
Here is the JAVA program:
private static void mirror(ArrayList<String> list) { // method mirror that accepts ArrayList of Strings as a parameter
for (int i = list.size() - 1; i >= 0; i--) {//iterates through the array list
list.add(list.get(i)); } //produces a mirrored copy of the list
System.out.println(list); } ///prints the mirrored copy of list
Explanation:
This is the complete program:
import java.util.ArrayList; //to use dynamic arrays
public class MirroredArraylist{
private static void mirror(ArrayList<String> list) { //method to produce mirrored copy of the list
for (int i = list.size() - 1; i >= 0; i--) { /
list.add(list.get(i)); }
System.out.println(list); }
public static void main(String[] args) {
ArrayList<String> list = new ArrayList<String>();//creates a String type array list
//adds values to the Arraylist i.e list
list.add("a"); .
list.add("b");
list.add("c");
mirror(list); }} //calss mirror method passing list to it
The method works as follows:
For loop variable i is initialized to the list.size() - 1 which means 1 less than the size of the ArrayList i.e list. For example the list contains the following values ["a", "b", "c"]. So
i = list.size() - 1
= 3-1
i = 2
so i is set to the last element/value of list i.e. "c"
Then the for loop checks if the value of i is greater than or equals to 0 which is true because i = 2
So the program control enters the body of the for loop
list.add(list.get(i)); This statement has two methods; add() and get()
add() method is used to add the value/element to the ArrayList, list.
get() method is used to get the element/value in list at i-th index
So the element at i=2 means element at 2nd index is "c"
Hence value "c" is added to the list.
Then the value of i is decremented to 1. So i=1
At next iteration
i is set to the second last element/value of list i.e. "b"
Then the for loop checks if the value of i is greater than or equals to 0 which is true because i = 1
So the program control enters the body of the for loop and gets the value of list i.e "b" and adds it to the list. Next the value of "a" is get and added to the list. So the list becomes:
["c", "b", "a"]
In the main() method
list.add("a"); .
list.add("b");
list.add("c");
The above three statements adds the values to list that are "a", "b" and "c". So the list becomes:
["a", "b", "c"]
Next statement mirror(list); calls the method mirror which returns the mirrored copy of the list. So the output is:
["a", "b", "c", "c", "b", "a"].
The screen shot of the program along with its output is attached.
Your friend called and told you that he saw information about the classified XYZ program on the Internet. As a cleared employee who does not work on the XYZ program, is it okay for you to view that information on the Internet since it's already in the public domain?
Answer:
The answer is "Yes, you can access the information because you're a certified employee".
Explanation:
The term "public domain" relates to content that isn't covered by copyright, trademarks, or patents. In other words, it relates to artistic material. Its public, not for the single writer or artist, which can hold these works.
In this, everyone is authorized for using public domain work but no one is ever allowed to use it, but only the certified employee can use it, that's why you can access the details because you're certified.
An algorithm is defined as a well-ordered collection of unambiguous and effectively computable operations that when executed produce a result and halt in a finite amount of time. In one sentence or less, what does it mean to be effectively computable
Answer:
to be effectively computable, the person is definite, explicit and 'mechanical'.
A ________ uses multiple systems to attack one or more victim systems or websites with the intent of denying service to legitimate users wishing to log on or utilize the attacked server.
Answer: Botnet
Explanation:
The #elif and #else directives are provided as shorthand notation for the #if defined(name) and #if !defined(name).
True
False
Answer:
The answer is "False".
Explanation:
The shorthand notation operator is a quick way of expressing something, that can be accessed only in Java. In this, no function within computer programming language was introduced by shorthand procedures. In the given question, else and elif block were used, in which elif block used in python, that's why the given statement is false.
the_______ is a documents , spreadsheet or database that contain personalized information or data base such as name address phone number
Answer:
Is called "data source"
what is the types of the structured programming
Answer:
I guess 1 3 4 options are true.....
With _____, human thinking and problem-solving is performed by a machine, including learning, reasoning, and self-correction. wearable technologies quantum computers artificial intelligence Moore's Law
Answer:
THE ANSWER IS B
Explanation:
Controlling the physical world with sensors and digital devices depends on bandwidth and the ability to analyze data in real time. Select one: True False
Answer:
The answer is "True".
Explanation:
A sensor is a tool, that senses environmental changes, and reacts to the certain activity of the other machine. It converts a physical event through an analog or sometimes an electronic signal, which is translated or displayed for reading and further analysis.
It also controls the bandwidth and also the ability to analyze information in real-time rely mostly on physical universe monitoring with sensors, that's why it is true.
Disk ___________________ helps improve the speed and efficiency of a hard disk.
Answer:
Defragmentation
Explanation:
PLATO - correct answer
The process of checking data for validity and integrity before placing it in a data warehouse is called Group of answer choices reformatting data cleaning data integration viewing
Answer:
data cleaning
Explanation:
Data cleaning exemplifies the process which includes identifying the incorrect, or inaccurate data from the records. It further proceeds its function in correcting and replacing the correct data in the records or database. By adding information, by deleting incorrect information and modifying the incorrect information are some of the ways by which data cleaning is done.
In 3–5 sentences, describe how technology helps business professionals to be more efficient.
Answer:
data visualization
business professionals can use advance visualization to understand what needs to be done
building probabilistic models
business professionals can predict the future outcome of the business or any process by using technology and machine learning
business marketting
marketting uses technology to gain insight into who are the customers and what are the buying pattern to do more sales
Answer:
Business uses technology to gain insight into who are the customers and what are the buying pattern to do more sales. Business professionals can predict the future outcome of the business or any process by using technology and machine learning. Business professionals can use advance visualization to understand what needs to be done. Graphic software used by graphic designers to make what they envision come true.
Explanation:
Which protocol enables the secure transfer of data from a remote PC to a server by creating a VPN across a TCP/IP network
Answer:
"Point-to-Point Tunneling Protocol" is the right choice.
Explanation:
PPTP seems to be a service provider protocol which provides the protected processing of information from some kind of different client to something like an application framework through the creation of a VPN around through TCP/IP databases. It perfectly captures PPP transactions for transmission and storage and perhaps other standard TCP/IP based connections through Ip packets.The network layer of the Internet model uses the _____________ protocol to route messages though the network.
Answer:
Capa de Internet. La capa de Internet, también conocida como capa de red o capa IP, acepta y transfiere paquetes para la red. Esta capa incluye el potente Protocolo de Internet (IP), el protocolo de resolución de direcciones (ARP) y el protocolo de mensajes de control de Internet (ICMP).
Explanation:
If you're under 18 and you receive _____ or more license points in 12 months, you'll be restricted to driving only to school or work for one year.
Answer:
B:6
Explanation:
FLVS :)
Answer: 6 is the correct answer
when two pieces of cui or other unclassified information are posted online together or attached together in an email and result in disclosure or classified information this is known as
The most appropriate word to complete the sentence is: Compilation.
Information can be defined as a set of organized and processed data that has more useful or intelligible meaning to an end user (recipient).
Generally, an information can be grouped into two (2) main categories and these includes;
Unclassified information.Classified information.CUI is an acronym for controlled unclassified information and it can be defined as a type of information that requires safeguarding or dissemination controls which are consistent and compliant with law, standards, governmental policies and regulations.
Hence, a CUI is a federal non-classified information because it is created and possessed by the federal government or possessed on a government's behalf by an entity and as such requires some level of protection or dissemination controls from any unauthorized access and usage.
In this context, when you post two (2) pieces of controlled unclassified information (CUI) or other unclassified information together online or attach them together in an electronic mail (e-mail) and this action results in the disclosure of classified information, it is typically referred to as compilation.
In conclusion, compilation involves the process of combining two (2) pieces of controlled unclassified information (CUI) or other unclassified information together.
Find more information: https://brainly.com/question/3045955
when classified information is in an authorized individuals hands, why should the individual use a classified document coversheet
Answer:
Following are the answer to this question:
To inform holders of the existence of data. To avoid misuse by unapproved employees of confidential information.Explanation:
The classified information is also known as sensitive information, which is access to specific classes of individuals is constrained by rule or policy. It manages the classified documents or accesses the data.
It's also a formal security clearance, that has been required for the satisfying background research that is needed for the screening process.It tells the owners that confidential data is provided and avoid accidental disclosure by the unauthorized staff of classified information.Which definition of AI do you like best? How would you define AI? Let's first scrutinize the following definitions that have been proposed earlier: "cool things that computers can't do" machines imitating intelligent human behavior autonomous and adaptive systems Your task: Do you think these are good definitions? Consider each of them in turn and try to come up with things that they get wrong - either things that you think should be counted as AI but aren't according to the definition, or vice versa. Explain your answers by a few sentences per item (so just saying that all the definitions look good or bad isn't enough). Also come up with your own, improved definition that solves some of the problems that you have identified with the above candidates.
Explain with a few sentences how your definition may be better than the above ones?
Answer:
1. "Cool things that computers can't do"
AI is Artificial Intelligence, which can involve anything from robots to programs on computers/websites. Sure, AI can learn things and adapt in ways unlike computers, but they are still quite similar in the fact that they both are technology.
2. "Machines imitating intelligent human behavior"
This is a bit closer to the definition of AI. However, AI does not necessarily have to imitate humans - rather, it's most known for being able to adapt and learn (which is the part where this definition is correct). Also, our current AI is nowhere near the level of mimicking intelligent human behavior enough to fool us.
3. "Autonomous and adaptive systems"
This is, by far, the best definition given here yet. Most AI are autonomous and/or adaptive systems, used to automate tasks which would take time for us humans. I suppose one thing that could be wrong with it is that not all AI are made to be autonomous systems.
What do we call the time it takes for all of the sub-pixels on the panel to go from pure black to pure white and black again
Answer:
response rate
Explanation:
The term being described in the question is known as the response rate. In other words, this is the amount of time it takes for your monitor to shift from one color to another. This is data tends to be measured in milliseconds with the average response times of typical LCD monitors being ten milliseconds (10ms) and the fastest response times of higher-end displays being as fast as one millisecond (1ms)
Which of the following options allow you to access a computer remotely? Check all that apply.
if lain and Wi-Fi were to go out at the same would the circuit break
Answer:
yes and no because the LAN circuit would stop the connection and the Wi-Fi circuit would fry
The _________ attack exploits the common use of a modular exponentiation algorithm in RSA encryption and decryption, but can be adapted to work with any implementation that does not run in fixed time.
Answer:
The answer is "timing".
Explanation:
The time attack would be a security vulnerability that enables attackers that identify computer systems or network security issues by analyzing the period of the program's reaction to multiple levels. It is used in both RSA encryption and decryption of the modular exponentiation method but could be modified for just about any system not seem running in a fixed period.Measurement consists of:__________
a. the assignment of numbers (representing quantities of attributes) to objects or events according to rules.
b. using a given scale to make comparisons.
c. determining the frequency of a particular attribute.
d. assigning numbers solely for identification purposes.
Answer:
The answer is choice "a".
Explanation:
Measurement is a number allocation in which the entity or event attributes that would be comparable with other objects or events. Its scope and implementation depending on context and discipline.
Its main purposes could be defined as measurements for efficiency, tracking, health, fitness (design, mounting), and solving problems. Its calculation consists of the numerical assignment, representing attribute amounts according to the rules for objects and events.Mention any three features of an antivirus software?
Answer:
Real-time Scanning
Automatic Updates
Protection for Multiple Apps
Auto-Clean
Fights Against All Types of Malware
HOPE I HELPED
PLS MARK BRAINLIEST
DESPERATELY TRYING TO LEVEL UP
✌ -ZYLYNN JADE ARDENNE
JUST A RANDOM GIRL WANTING TO HELP PEOPLE!
PEACE!
The three attributes of antivirus software include auto-cleaning, automatic updates, and real-time scanning.
The information regarding the three attributes of antivirus software is as follows:
The work of the antivirus software discovered malicious software. In the auto-cleaning, it rid of the viruses that could come in the laptops.In real-time scanning, it regularly checks whether there is any malicious software or not due to this the laptop does not damage.The antivirus software required regular updates so that they could track the new threats if any also at the same time it protects your laptops.Therefore we can conclude that the three attributes of antivirus software include auto-cleaning, automatic updates, and real-time scanning.
Learn more about the software here: brainly.com/question/15937118
What is the answer to this A term career is usually applied to a Someone please HEEEEEEEEEELP MEEEEEEE. THX
Answer:
Position that allows for professional growth and advancement
The term career is used in a number of ways but is usually applied to means the same thing: a position that allows for professional growth and advancement. It relates to a person’s occupation or profession and his journey of life, learning (training or formal education) and work.
Answer:
Position that allows for professional growth and advancement
Explanation:
a p e x
Q.No.3. A filling station (gas station) is to be set up for fully automated operation. Drivers swipe their credit card through a reader connected to the pump; the card is verified by communication with a credit company computer, and a fuel limit is established. The driver may then take the fuel required. When fuel delivery is complete and the pump hose is returned to its holster, the driver's credit card account is debited with the cost of the fuel taken. The credit card is returned after debiting. If the card is invalid, the pump returns it before fuel is dispensed. As a software developer if you have to develop a software for the above given scenario, Suggest five possible problems that could arise if a you does not develop effective configuration management policies and processes for your software.
Answer:
Following are the 5 problems, that can arise in this scenario:
Explanation:
When the driver swipes its credit or debit card, its connection with both the card company could not be formed due to the poor or ineffective development, therefore the driver may not put any fuel from its vehicle. It still wants to spend energy even after the card is read as incorrect. So, its total price to just be debited from the credit or debit card shall be much more and less than the real cost as well as the deduction of both the fuel should be overestimated. Its information may not adjust when a driver uses its device because the next driver could no matter how long only use the device. Its fuel limit to also be established when the vehicle has stopped its card would be faulty as well as a certain restriction would not cause its device to be misused.Which of the following statements is true?
1. Computers have only been around since the 1940's
II. One reason computers were first developed was to do mathematical computations faster
III. Some modern computers include laptops, cell phones, and tablets
IV. Computers are able to perform tasks by using logic
Answer: The correct answer is II, III, and IV.
Explanation: The correct answer is 2,3,4. Number 1 is wrong because computers were made in 4000BC. II is right because since the beginning of time. Hand made computers were used more as of caculators. III is right because laptops, cell phones, tablets and even toys all have digital coding that originated since 1940 when the first digital computer was made. IV is right partially. Computers do certain tasks set by humans and use's logic to complete them. (Depends). II, III, IV, are the correct answers
Which of the following is true about STEM education? STEM education is focused on understanding rather than applying scientific concepts. STEM students are told to focus on a subject area and work within a certain specific field. STEM students are encouraged to blend and expand their knowledge of all four subject areas. STEM education prepares students to work in science- and math-related jobs.
Answer:
C). STEM students are encouraged to blend and expand their knowledge of all four subject areas.
Explanation:
STEM education is characterized as a learning and development approach that focuses upon an amalgamation of four subject areas including science(S), technology(T), engineering(E), and Mathematics(M). Thus, each letter stands for a subject domain and this integration of four subjects primarily aims to 'blend and expand the knowledge of the students in these areas' integratively. It helps in developing and sustaining the interests of young learners through this integrated approach which also assists them with unique opportunities. Thus, option C is the correct answer.
The answer is:
D) STEM students are encouraged to blend and expand their knowledge of all four subject areas.
Which best described most television in the 1940s and 1950s? color cable 24 hour black and white
Answer:
The answer is "black and white".
Explanation:
During this period of live TV output in the United States, from the late 1940s to late 1950, the era between the 1940s and 1950s is often regarded as the first Golden Age of Television.
It is the monochrome broadcast tv signal transmission and reception system. At the end of the 1940s, in 50 major cities, there were 98 commercial tv channels. TV sets costs also reduced by 1949.