An array is mirrored if one half of the array is a reflection of the other. For example, these are mirrored arrays:

int[] a = {5, 4, 3, 4, 5};
int[] b = {9, 2, 2, 9};

The intent of the following methods is to determine whether an array is mirrored or not.

public boolean isMirrored(int[] array) {
// Add code here
}

private boolean isMirrored(int[] array, int leftIndex, int rightIndex) {
if (leftIndex > rightIndex) return true;
if (array[leftIndex] != array[rightIndex]) return false;
return isMirrored(array, leftIndex + 1, rightIndex - 1);
}

Which of the following statements, when inserted at the comment, “Add code here”, would complete the first isMirrored() method, call the second isMirrored() method, and produce the correct results?
A. return isMirrored(array)
B. return isMirrored(array, 0, 0)
C. return isMirrored(array, 0, array.length - 1);
D. return isMirrored(array, array[leftIndex], array[rightIndex]);


Which of the following is a method of the File class that can return an array of Files in a directory?
A. listFiles()
B. files()
C. getFiles()
D. directory()



Consider the following code.

public static int fileMethod(File dir) {
File[] files = dir.listFiles();
if (files == null) return 0;

int count = 0;
for (File f : files) {
if (f.isFile()) count++;
else count += fileMethod(f);
}
return count;
}

If dir represents a starting directory, which of the following statements best describes the operation of fileMethod()?
A. It counts and returns the number of files and directories inside dir and all subdirectories of dir.
B. It counts and returns the number of files, not counting directories, inside dir and all subdirectories of dir.
C. It counts and returns the number of files and directories only inside dir and inside only the first subdirectory found inside dir.
D. It counts and returns the number of files, not counting directories, but only those found inside dir and not its subdirectories.



Which of the following methods will correctly calculate the factorial of a positive number using iteration?
A.
public static long factorial(int n) {
if (n == 0) return 1;
else return n * factorial(n);
}
B.
public static long factorial(int n) {
if (n == 0) return 1;
else return n * factorial(n - 1);
}
C.
public static long factorial(int n) {
int product = n;
while (n > 0) {
n--;
product *= n;
}
return product;
}
D.
public static long factorial(int n) {
int product = n;
while (n > 1) {
n--;
product *= n;
}
return product;
}

Consider the following code.

public static String display(String s, int c) {
if (c == 0) return s;
else {
if (c > 3) return "-" + display(s, c - 1) + "-";
else return "=" + display(s, c - 1) + "=";
}
}

Which of the following methods most accurately reproduces the behavior of the display() method without using recursion?
A.
public static String d1(String s, int c) {
String retVal = "";
for (int i = 0; i < c; i++) {
if (i > 3) retVal += "-" + s + "-";
else retVal += "=" + s + "=";
}
return retVal;
}
B.
public static String d2(String s, int c) {
String retVal = "";
for (int i = 0; i < c - 3; i++) {
retVal += "-";
}
for (int i = 0; i < Math.min(3,c); i++) {
retVal += "=";
}
retVal += s;
for (int i = 0; i < Math.min(3,c); i++) {
retVal += "=";
}
for (int i = 0; i < c - 3; i++) {
retVal += "-";
}
return retVal;
}
C.
public static String d3(String s, int c) {
String retVal = "";
for (int j = 0; j < c - 3; j++) {
retVal += "-";
}
for (int j = 0; j < 3; j++) {
retVal += "=" + s + "=";
}
for (int j = 0; j < c - 3; j++) {
retVal += "-";
}
return retVal;
}
D.
public static String d4(String s, int c) {
String retVal = "";
for (int i = 0; i < c; i++) {
for (int j = 0; j < c - 3; j++) {
retVal += "-";
}
retVal += "===" + s + "===";
for (int j = 0; j < c - 3; j++) {
retVal += "-";
}
}
return retVal;
}

Answers

Answer 1

Answer:

Sierra Madre Oceandental rangeHURRY

Dr. Khan works for the marketing department of a company that manufactures mechanical toy dogs. Dr. Khan has been asked to assess the effectiveness of a new advertising campaign that is designed to be most persuasive to people with a certain personality profile. She brought four groups of participants to the lab to watch the video advertisements and to measure the likelihood that they would purchase the toy, both before and after watching the ad. The results of Dr. Khan’s study are presented below.

Part A

Explain how each of the following concepts applies to Dr. Khan’s research.

Survey

Dependent variable

Big Five theory of personality

Part B

Explain the limitations of Dr. Khan’s study based on the research method used.

Explain what Dr. Khan’s research hypothesis most likely was.

Part C

Use the graph to answer the following questions.

How did the trait of agreeableness affect how people responded to the new ad campaign?

How did the trait of conscientiousness affect how people responded to the new ad campaign?What's the output of a system modeled by the function ƒ(x) = x5 – x4 + 9 at x = 2?

Please Help

A)

24


Related Questions

Which of the following is the term for a device (usually external to a computer) that is plugged into a computer's communication
port or connected wirelessly?
An attachment
A peripheral
A flash drive
A plug-in

Answers

A device, usually external to a computer that is plugged into a computer's communication port or is connected wirelessly. Common peripherals are keyboards, mice, monitors, speakers, and printers

The term for a device (usually external to a computer) that is plugged into a computer's communication  port or connected wirelessly is:

B. A peripheral

According to the given question, we are asked to find the correct term for a device which is plugged to a computer's communication port wirelessly

As a result of this, we can see that a peripheral device is used to connect to a computer wirelessly and some common examples include a keyboard, mouse, joystick, etc.

Therefore, the correct answer is option B

Read more here:

https://brainly.com/question/20488785

No links it’s just a normal question about iPhones.
If you have someone in your contacts you talk with a lot but like everyday you delete the conversation multiple times will you stop receiving texts from that person even if you text them and it says delivered?

Answers

Answer:

You will still get the messages. You are just deleting the messages from YOUR device not the other persons, in order to stop recieving messages from the person you block them. In order to stop receving notifications, you put them on DND. But, if you talk to them everyday I would assume you would not want to stop receiving messages from them.

What is the output? Choose 3 options.

>>>import time
>>>time.localtime()

an indicator of whether or not it is a leap year

the day of the year

the month

the number of seconds after the epoch

the time zone's name

Answers

Answer:

the number of seconds after the epoch

the day of the year

the month

Explanation:

The time() function returns the number of seconds passed since epoch. For Unix system, January 1, 1970, 00:00:00 at UTC is epoch (the point where time begins).The function time. asctime(), present if the time module can be used to return the current date and time.

The output from the information given will be:

the number of seconds after the epochthe day of the yearthe month

It should be noted that input and output are simply the communication between a computer program and its user.

The output refers to the program that's given to the user. In this case, based on the information, the output from the information given will be the number of seconds after the epoch, the day of the year, and the month.

Read related link on:

https://brainly.com/question/23968178

Engineers at Edison Laboratories developed a _____ strip that allowed them to capture sequences of images on film.


kinetoscope

selenium

cotton

celluloid

Answers

The answer: Kinetoscope

Answer:

Celluloid

Explanation:

It is Sis

4. Which of the following is a face-to-face meeting between the hiring party and the applicant?
A. Interview
B. Application
C. Résumé
D. Reference

Answers

Answer:

A. interview

Explanation:

Suggest three ways in which celebrating an occasion influences food choices?

Answers


Celebrating influences food in more than 1 way

Answer:

It can completely show the different flavors that might have influenced the people at the past like their traditional spices and their main ingredients. It also is just a big part of celebrations because usually every single celebration comes with food and drinks.

one day when rahul went to his computer lab and saw that all the computers were connected to a single printer and whoever is giving a command to print, the print out comes from that printer. can you name the concept of communication? class 8 computer one word answer..​

Answers

Explanation:

you can connect multiple PCs to the wireless printer and print your documents from each one of them as long as the printer can be connected to the same network . You need the disc that came with the wireless printer to install the correct drivers on your computers and laptops.

hope it helps ( brainleist please )

Fatima has 3 packs of batteries. Each pack contains 4 batteries. She gives her brother 8 batteries to put in his toy robot. Let b represent the number of batteries Fatima has left. Which equation could be used to find the value of b?

Answers

Answer: See explanation

Explanation:

Let b represent the number of batteries Fatima has left.

The equation that can be used to find the value of b goes thus:

(3 × 4) = b + 8

12 = b + 8

b = 12 - 8

Therefore, based on the above equation, the number of batteries that Fatima has left will be 4.

what is the best wi-fi name you have ever seen?

Answers

Answer:

bill wi the science fi

Explanation:

What does the revolver do?

sends the domain name and requests the IP address

sends the IP address and requests the content of the web page

sends the IP address and requests the domain name

sends the domain name and requests the content of the web page

Answers

Answer:

last one

Explanation:

PLEASE HELPPPPP ASAP, 50 POINT'S + BRAINLIEST

1.) Online crimes causing loss of money: give 5 names and examples to each

2.) Online misconduct or crimes targeting medical offices and services: give 5 names and examples to each

3.) Online misconduct or crimes that you have experienced: give 5 names and examples to each

Answers

Answer:

1. Cybercrimes are online crimes that cause loss of money some examples are: Identity fraud, Cyber bribery, Debit/credit card fr/ud, and Email fr/ud.  

2. In medical offices devices linked to CT scans are able to be h/cked, there is r/nsomw/re that uses their devices. Since medic/l computers are always linked to the internet. it makes it easier for them to be h/cked. They make an employee click on an e-mail carrying m/lw/re, then the cybercrimin/ls encrypt p/tient data then dem/nd p/yment for its decryption.

3. This is a personal question but if you have ever been sc/mmed or witnessed someone being sc/mmed or almost got  sc/mmed it might apply to this question

Choose the expression that belongs in the blank in order to have the output shown.

>>> a = 5
>>> print(_____)
The value is5

"The value is " + str(a)

"The value is" , str(a)

"The value is " , str(a)

"The value is" + str(a)

Answers

Answer:

Option B

Explanation:

Given

a = 5

and if the value allotted to variable a is to be printed, the following command will be used

print "The values is", str(a)

Hence, option B is correct

You are planning a storage solution for a new Windows server. The server will be used for file and print services and as a database server. The new server has five hard disks, all with equal capacity. Your storage solution should meet the following requirements: System files should be on a volume separate from data files. All volumes should be protected so that the server can continue to run in the event of a failure of one of the disks. The data volume should be optimized for improved disk access times. You will use Windows Disk Management to create and manage the volumes. What should you do

Answers

Answer:

Explanation:

The best solution for this scenario would be to first create a mirrored volume for the system volume using two of the available disks and then a single RAID 5 volume with the remaining 3 disks for the data volume. This setup will allow all of the data to be backed up so that if one of the disks fails the server will continue running accordingly. The RAID 5 volume offers error checking and redundancy for the data, therefore, allowing the data to be accessed quickly and efficiently with far greater security and far less chance of data becoming corrupt.

What is the correct HTML for adding a background color?


Question 7 options:


< background>yellow


< body background-color=yellow>


< body bg="yellow">


< body style="background-color:yellow;">

Answers

Answer:

< body background-color=yellow>

Explanation:

This is the correct HTML command that is used for adding a background color of choice.

an option already selected by windows is called____ ( default option/ default selection)​.
this is urgent

Answers

Answer:

default option

Explanation:

Functions of file in computer ​

Answers

[tex]\huge{\textbf{\textsf{{\color{pink}{An}}{\red{sw}}{\orange{er}} {\color{yellow}{:}}}}}[/tex]

File in computers are used to store data, information and commands.

Thanks hope it helps.Pls mark as brainliest.

PLEASE HELP ME!!! Please don't answer if you're just going to guess.

In this line from a data file, what do you call the comma?
dog, 23, 15
The comma is _____
-Choices-
a BOL set of characters,
an EOL set of characters,
a delimiter.

Answers

Answer:

a

Explanation:

Answer:

BOL

Explanation:

PLEASE HELP! Please dont answer if your going to guess
You have three modes for opening a file. You wish to create a new file and write data to

the file. What letter belongs in this line of code?

myFile = open("another.txt", "_____")
r
w
a
d

Answers

Answer:

r

Explanation:

I literally learned this today when trying to make a python server with an html file:)

Answer:

w

Explanation:

HELPPP ME PLEASEEE!!

Answers

It’s the last one! The key to an effective persuasion is to know what you want and be clear about your response.

How does a computer get the server's IP and how does it know which way to the server?

Answers

The browser connects to the domain name server (DNS) and retrieves the corresponding IP address for that specific server. It knows which way to go due to it being programmed to follow the exact instructions given by human interaction, its own hardware, and the software installed onto it.

Which of the following belongs in a website citation? (select all that apply)

the place where the author works

the Internet address or web page address

the person or organization responsible for the website

page numbers

the date when you got the information

Answers

The place where the author works I think

Answer:

the Internet address or web page address

the person or organization responsible for the website

the date when you got the information

Explanation:

You manage the website for your company. The website uses a cluster of two servers with a single shared storage device. The shared storage device uses a RAID 1 configuration. Each server has a single connection to the shared storage and a single connection to your ISP. You want to provide redundancy so that a failure in a single component does not cause the website to become unavailable. What should you add to your configuration to accomplish this

Answers

Answer: Connect one server through a different ISP to the Internet

Explanation:

With RAID 1 configuration, data can be simultaneously copied from one particular disk to another, thereby creating a replica.

Since the person wants to provide redundancy so that a failure in a single component does not cause the website to become unavailable, one server should be connected through a different ISP to the Internet.

what is the most popular monitor​

Answers

Probably a television or a radio I guess

Rachel selected a part of her audio file in the audio editing software and increased its decibel value. Which audio editing effect has Rachel used here?
A.
fade out
B.
normalize
C.
noise Reduction
D.
amplify
E.
compressor

Answers

lmk when someone has an answer

Answer: D. Amplify

Explanation:

Correct Plato answer

Ishmael would like to capture a selected potion of his screen and then capture action he performs on that selected portion. What should he do?


Use a video from my PC command

User the insert screen recording control

Create a poster frame

Use an embed code

Answers

Answer: User the insert screen recording control

Explanation:

Since Ishmael wants to capture a selected potion of his screen l, after which he'll then capture the action that he performs on that selected portion, he should use the insert screen recording control.

It should be noted that on most keyboards, there's an "insert screen" button. Also, Ishmael can simply open the window that he wants to screenshot and then click the screenshot button.

Therefore, the correct option is B.

Consider the classes below: Which of the following statements is true? Group of answer choices The value of counter will be different at the end of each for loop for each class. The value of j will be the same for each loop for all iterations. Both The value of counter will be different at the end of each for loop for each class and The value of j will be the same for each loop for all iterations are true. Neither The value of counter will be different at the end of each for loop for each class nor The value of j will be the same for each loop for all iterations is true.

Answers

Answer:

probly

Explanation:

Both The value of counter will be different at the end of each for loop for each class and The value of j will be the same for each loop for all iterations are true.

Which connection type is a wireless method of sending information using radio waves?
O Cable
O Wi-Fi Fiber
Otic cable
O Broadband
please i need help but dont put up a wed site​

Answers

Hoped that helped lol, but yeah, the rest of them need wires

Edit: CAN I HAVE BRAINLIEST.

True or False

Operating systems control the loading of software applications onto a computer

All OSs offer user preferences allowing you to customize your computer

Answers

I used this from a other.

False

Software is the collection of large program or instruction of codes, which is used to perform some task. It is of two types of system software and application software.

The system software is used as a container for the application software and it is used to handle all other software it is used to operate the system.

Application software is used to perform any operation. This type of software can be used by the user if it is installed on the local machine on any system software

The operating system is also the part of the system software because it is used to operate the system and it is also the soul of the computer system which is also the function of the system software but the above question states that the operating system is not the part of the system software which is not correct. Hence false is the correct answer to the above question.

20 Points and Brainliest!!!!!!
Select the correct answer.
Amara is designing a website to encourage people in a city to vote in local elections. She wants to include a web page that shows first-time voters the steps to follow to register and vote in the elections. How can Amara best use multimedia to show the voting process on the web page?

A.
by providing a paragraph of instructions with pictures
B.
by providing an audio file along with downloadable pictures
C.
by creating a brief animation with optional text instructions
D.
by creating a static slideshow of the steps showing just pictures
E.
by adding automatically playing audio with text instructions

Answers

Answer:

I think E, sorry if I'm wrong.

Answer:

I think it might be C

Explanation:

so i just went to play forge of empires and when i logged on to it all of my progress was gone and i was so far in to it

Answers

Answer:

That's tough...

Explanation:

Answer:

ok and?

Explanation:

This is not a question

Other Questions
renaissance individualism emphasized On January 1, 2021, Nana Company paid $100,000 for 8,000 shares of Papa Company common stock, which represents 10% ownership. Papa reported net income of $52,000 for the year ended December 31, 2021. The fair value of the Papa stock on that date was $45 per share. What amount will be reported in the balance sheet of Nana Company for the investment in Papa at December 31, 2021 Find the surface area of the above solid NEED THE ANSWER PLEASE Use details from the text to write two or three sentences summarizing what Brave Orchid thinks and feels about her children. For example, do ythink she trusts them? Name the solid figure formed by the net.1A CubeB Cuboidc CylinderDCone compare the population density of central america to the caribbean islands Dividing fractions 7/10 2 Each outer wall of the Pentagon in Washington D.C , measures 921 feet .What is the measure of each angle made by the Pentagons outer walls? Roberto debe leer un libro que contiene 340 pginas en 4 das por lo cual planea la siguiente distribucin: el primer da 1/5 de las pginas del libro, el segundo 1/4 de lo que queda por leer y el tercero 1/6 del resto. Cuntas pginas le quedan por leer a Roberto en el cuarto da? Find the circumference of the given circle. Round your answer to the nearest whole number. What shows a example of symmetry? Estimate: 587 is about what percent of 1,012? En una progresion geometrica el primer termino es 4 cual debe de ser la razon para que la suma de sus infinitos sea 5? Ill mark brainliest if correct Select the correct answer.Derek works in the software quality assurance department. Which tools or process should Derek use to monitor and measure changes?A.software engineering processB.software quality metricsC. SQA auditsD.reviews Why when you get out of the pool, the cement pavement is hot compared to the pool water? Find you equation of the line shown Which of the following is an accurate statement about Western Europe? Some one help will give brain Who was the first European to reach India by sailing around africa