Consider the following method: public int mystery(int n) { if(n > 6) { return 1 mystery(n - 1); } return n % 3; } What is the value of mystery(10)

Answers

Answer 1

Answer:

Ans1--- The output is 9 Explanation--- mystery(5)=mystery(4)+2 mystery(4)=mystery(3)+2 mystery(3)=mystery(2)+2 mystery(2)=2+1=3


Related Questions

Write the code for a mapping that generates a list of the absolute values of the numbers in a list named numbers.

Answers

Answer (python):

mixednumbers = [49.5,  -2,  -54.5, -87.6,  17.3,  92,  -1.4,  47.7, -27.4, -31.8]

numbers = []

def absolute(num):

 num = abs(num)

 return num

mappednumbers = map(absolute, mixednumbers)

for i in mappednumbers:

 numbers.append(i)

print(numbers)

Explanation (in line numbers):

1 provides the numbers that we will work with in an array called mixednumbers

2 creates an empty array called numbers where we will store the result

4-6 create a function that will take a number, get the absolute value of it, then return it

8 is where we use our function and mixednumbers to create a map named mappednumbers (it contains the numbers in absolute value)

10-11 take each item in the map and append it to our numbers array (printing the map directly will give us a memory address)

12 prints the numbers array, giving us our solution

Output:

[49.5, 2, 54.5, 87.6, 17.3, 92, 1.4, 47.7, 27.4, 31.8]

Why is it important for companies to invest in building a complete data and analytics platform?.

Answers

Companies need to invest in data and analytics platform as it  generates insights by housing data in one place and converting it into easily consumable information at high speed.

Why is it vital to use the analytics of a platform?

Analytics platforms is known to have helped a lot of data scientists as it has help to boast access to a lot of data sources and hardware.

Note that Companies need to invest in data and analytics platform as it  generates insights by housing data in one place and converting it into easily consumable information at high speed.

See options below

It produces cultural support and alignment, a growth mindset, and new ideas and priorities to improve business processes.

It creates awareness of what data can do to improve business processes.

It generates insights by housing data in one place and converting it into easily consumable information at high speed.

It stores large amounts of data that are easily retrievable for future business growth.

Learn more about analytics platform from

https://brainly.com/question/26468036

#SPJ1

Taking control of admin functionality and misusing sensitive data that are unauthorized to access are due to.

Answers

Taking control of admin functionality and misusing sensitive data that are unauthorized to access are due to Broken Access Control.

What leads to broken access control?

The Common access control issues  are:

The Bypass of access control checks via the modification of the URL.Internal application state.The use of custom API attack tool.

Note that Taking control of admin functionality and misusing sensitive data that are unauthorized to access are due to Broken Access Control.

See options below

This is a List of Available Answers Options :

Xml Enternal Entities Injection

SQL Injection

Cross site scripting

Broken Access Control

Learn more about admin from

https://brainly.com/question/26096799

#SPJ1

A network administrator has asked robin, a network engineer, to use ospf (open shortest path first) along with rip (routing information protocol) on an edge router in a network so that it demands more memory and cpu power for calculations but keeps network bandwidth to a minimum with a very fast convergence time. identify and analyze which characteristic of ospf signifies this.

Answers

The option that can be used to  identify and analyze which characteristic of OSPF signifies this is known to be Low overhead, fast convergence.

What is OSPF about?

The OSPF is known to be called an open Shortest Path First protocol.

It belongs to the family of IP Routing protocols as it serves as  Interior Gateway Protocol (IGP) used mainly for the Internet, and the option that can be used to  identify and analyze which characteristic of OSPF signifies this is known to be Low overhead, fast convergence.

See full question below

A network administrator has asked Robin, a network engineer, to use OSPF (Open Shortest Path First) along with RIP (Routing Information Protocol) on an edge router in a network so that it demands more memory and CPU power for calculations but keeps network bandwidth to a minimum with a very fast convergence time. Identify and analyze which characteristic of OSPF signifies this.

Shared data

Low overhead, fast convergence

Stability

Multi-vendor routers

Learn more about OSPF  from

https://brainly.com/question/14604232

#SPJ1

Write a recursive, string-valued method, reverse, that accepts a string and returns a new string consisting of the original string in reverse. For example, calling reverse with the string goodbye returns the string eybdoog.Reversing a string involves:

Answers

The program is an illustration of recursive functions in Python;

Recursive functions are functions executed from within itself

The python program

The program written in python, where comments are used to explain each action is as follows:

#This defines the function

def revStr(myStr):

   #This returns an empty string if the string is empty

   if myStr == "":

       return myStr

   #If otherwise, this returns the reversed string recursively

   else:

       return revStr(myStr[1:]) + myStr[0]

Read more about python recursions at:

https://brainly.com/question/19089783

#SPJ1

In the late 1980s, computer specialists were concerned that proprietary software had too many ________, so they started working on open source projects.

Answers

They were worried that the software had too many bugs.

pls help will mark as brainliest i need help in html.​

Answers

Answer:

This is how I did it. Try it out and see if it works for you

Which programming best practice does saving code snippets help you achieve?

O using consistent indentation and formatting

O documenting all changes and tracking revisions

O avoiding repetition of the same code in a program

O avoiding having to re-create code that you or another programmer has already written

Answers

Answer:

When it comes to formatting your code (not just strings), the Python programming community has spent a long time establishing and documenting best practice.

Missing: tracking ‎| Must include: tracking

To notify the browser that we have JavaScript code, we should use .............

Answers

Answer:

almost all browsers allow you to type JavaScript code directly into the browser, using something called the “console

Complete the following sentences using each of the words provided ONCE only. KEYBOARD DESKTOP STORE PRINTER COMPUTER MOUSE MONITOR CD Bay PRINTER TOWER CASE CENTRAL PROCESSINGENIT is an electronic device that retrieves, and processes shows you what is going on in the computer. is the first image you see on your screen when the computer is is used for telling the computer what to do. is used for typing documents. is used for putting documents on paper. you can insert a CD or Compact Disc. is is box inside and shaped 1) A 2) The 3) The data. switched on. 4) The 5) The 6) The 7) In the 8) The it​

Answers

Answer:

Explanation:

Monitor is an electronic device that retrieves, and processes shows you what is going on in the computer.

Desktop is the first image you see on your screen when the computer is is used for telling the computer what to do.

keyboard

is used for typing documents. Printer is used for putting documents on paper. CD Bay you can insert a CD or Compact Disc. is is box inside and shaped

Match the Job description with the job titles.

Answers

1) Bricklayer 2) Roofer 3) Architectural drafter 4) landscape architect
number 1 to first box
number 2 to second box
number 3 to third box
number 4 to forth box

write the c programming that takes the input of 25 employees salaries and count the number of employees who are getting salary between 30000 and 400000

Answers

Using the computational language in C++ it is possible to write a code that uses the salary values ​​of the employees of a company dividing between the number of employees.

Writing the code in C++ is possible:

#include<stdio.h>

#inc1ude<conio.h>

void main()

{

int i, n, count = 0;

Long int salary[25];

clrscr();

printf(“\n Input salary of 25 persons:- ");

for(i=0;i<25;i++)

scanf("%ld", &salary[i]);

for(i=0;i<25;i++)

{

if(Salary[i]>30000 && salary[i]<40000)

count++;

}

printf("There are %d persons whose salary is in between 30000 and 40000",count);

getch();

}

See more about C++ code brainly.com/question/17544466

#SPJ1

A malicious actor is preparing a script to run with an excel spreadsheet as soon as the target opens the file. the script includes a few macros designed to secretly gather and send information to a remote server. how is the malicious actor accomplishing this task

Answers

Thay is the malicious actor accomplishing this task is done by using the VBA code.

What is The Visual Basic button?

It opens the Visual Basic Editor, in which you create and edit VBA code. Another button at the Developer tab in Word and Excel is the Record Macro button, which robotically generates VBA code that could reproduce the moves which you carry out withinside the application.

To run VBA withinside the “Microsoft Visual Basic for Applications” window, you could simply press “F5” key button or click on the “Run” icon withinside the toolbar.

Read more about the spreadsheet :

https://brainly.com/question/26919847

#SPJ1

Which is a best practice that can prevent viruses and other malicious code from being downloaded.

Answers

A best practice that can prevent viruses from being downloaded is by not clicking on links in graphic email messages

How to prevent virus or malicious codes?

Virus and malicious codes can be installed on a computer through several ways, which include:

Not using an antivirus on the computerClicking on untrusted links in graphic email messagesInsecure downloads

The above can be prevented by

Installing a genuine antivirusNot clicking on trusted linksAccessing sites with secured downloads

Read more about virus at:

https://brainly.com/question/12543839

#SPJ1

This program has a bug. When the green flag is clicked, nothing happens. How would you fix it?
A. Change the number inside the “Move” block
B. Change the number inside the “repeat” block
C. Make the sound louder with the purple block
D. Connect the event block directly to the “repeat” block

Answers

The correct answer is D, if you connect it, the program will operate properly.

What is the correct syntax for defining an __init__() method that sets instance-specific attributes upon creation of a new class instance

Answers

The right syntax for defining an __init__() method that sets instance-specific attributes upon creation of a new class instance is def __init__(self): pass.

What Is syntax ?

Syntax is known to be the way or arrangement of  any given words and phrases to create a kind of proper sentences.

Note that The correct syntax for defining an __init__() method that sets instance-specific attributes upon creation of a new class instance is def __init__(self): pass.

Learn more about syntax  from

https://brainly.com/question/831003

#SPJ2

2
select the correct answer.
which part connects the cpu to the other internal parts of a computer?
o a.
alu
ob.
bus
o c.
control unit
od.
memory unit
oe.
register

Answers

Answer:

the control center

Explanation:

hope this helps :)

please make me brainliest\

i hs no life hahahaha

Answers

Answer:

PLEASE ANYONE HELP WITH THIS

Explanation:

Answer:

me too lol

Explanation:

What do you prevent when you use data validation in your database forms?
O code injection
O phishing
O botnet
O denial-of-service

Answers

Answer:

code injection

Explanation:

Validating the data in a database prevents someone from sneaking code to run without permission, aka code injection.

Phishing - this is disguising as a reputable company/person and trying to steal info (passwords, credit card numbers)

Botnet - this is a network of computers (most likely in the network because of a virus) that are used as a group for malicious purposes (like spam)

Denial-of-service - this is an attack which aims to deny users from accessing the content they want. a common example of this is flooding a server with spam requests, rendering it overloaded and unable to handle any user requests

advantages and disadvantages of algorithm​

Answers

Answer:

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Explanation:

It is easy to understand. Algorithm is a step-wise representation of a solution to a given problem. In Algorithm the problem is broken down into smaller pieces or steps hence, it is easier for the programmer to convert it into an actual program

Algorithms are time-consuming. Big tasks are difficult to put in algorithms. Difficult to show branching and looping in algorithms. Understanding complex logic through algorithms can be very difficult.

Suppose you need to create the variable fullname by concatenating the values of firstname, which contains first names, and lastname, which contains last names. what's the best way to remove extra blanks between first names and last names

Answers

The right way to remove extra blanks between first names and last names is

data temp;

set cert.maillist;length FullName $ 40;

fullname=trim(firstname)||' '||lastname;

run;

What is TempData?

This is known to be a term that is used to  transfer data from view to controller and it is one that saves the data temporarily.

Note that The right way to remove extra blanks between first names and last names is

data temp;

set cert.maillist;length FullName $ 40;

fullname=trim(firstname)||' '||lastname;

run;

Learn more about data from

https://brainly.com/question/25639778

#SPJ1


what is a program answer these question
of grade-6​

Answers


a series of coded software instructions to control the operation of a computer or other machine.

The entities on which data are collected are _____.

Answers

The entities on which data are collected is known as variables.

Answer:

The entities on which data are collected is known as variables.

Explanation:


1. The Forever block is present in the
......... block category.

Answers

Answer:

loop or a repeating block. I think it’s this because I like robotics and I have to know a lot of different kinds of blocks.

Explanation:

This is why.

privacy principles need to be balanced against the ___ benefit that comes from the automated collection of private information. select 2 options.

corporate
political
ethical
societal
financial​

Answers

The privacy principles need to be balanced against the corporate

the political benefit that comes from the automated collection of private information.

What is the privateness coverage of the employer?

A privateness coverage is a file that explains how an employer handles any consumer, consumer or worker records accumulated in its operations. Most websites make their privacy guidelines to be had to web website online visitors.

The greater glad clients are, the longer they live with a business enterprise and offer sufficient enterprise to make certain increase and profitability. While setting collectively techniques for higher consumer service, a business enterprise ought to make certain that the stability among consumer expectancies and enterprise desires is maintained sustainably.

Read more about the information:

https://brainly.com/question/25689052

#SPJ1

Northern Trail Outfitters uses a custom object Invoice to collect customer payment information from an external billing system. The Billing System field needs to be filled in on every Invoice record. How should an administrator ensure this requirement

Answers

An administrator should ensure this requirement by creating a process builder to set the field.

What is a billing system?

A billing system is a complex software that enables service providers' order to cash process (O2C) and sends invoices, tracks, and processes payments for different consumers.

It is the process by which a business bills and invoices customers. Billing systems often include payment software that automates the process of collecting payments, sending out recurring invoices, expense tracking, and invoice tracking.

Learn more about billing system here,

https://brainly.com/question/14315763

#SPJ1

Give three reasons why it is important to have hci-based software programs.

need this soon

Answers

The three reasons why it is important to have HCI-based software programs As a result, having a person with HCI capabilities concerned in all levels of any product or machine improvement is vital.

What is HCI and why is it important?

The Role of Human Computer Interaction withinside the Workplace. Human Computer Interaction (HCI) and User Experience (UX) are interdisciplinary fields that draw on human-focused disciplines like psychology and sociology to layout and increase technological merchandise that meet human needs.

As its call implies, HCI includes 3 parts: the user, the pc itself, and the methods they paint together.HCI is vital on account that it'll be important for items to be extra successful, safe, helpful, and functional. It will make the users revel in extra fun withinside the lengthy term. As a result, having a person with HCI capabilities concerned in all levels of any product or machine improvement is vital.

Read more about the software programs:

https://brainly.com/question/1538272

#SPJ1

Question an administrator of a linux network is writing a script to transfer a list of local host names, contained in a file called hostnames, directly into the syslog file. predict the cli command the admin is likely to use to accomplish this. a.

Answers

The Linux command to be used by this administrator in transferring a list of local host names, directly into the syslog file is "logger -f hostnames."

What is a Linux command?

A Linux command simply refers to a software program that is designed and developed to run on the command line, in order to enable an administrator of a Linux network perform both basic and advanced tasks by entering a line of text.

In this scenario, the Linux command to be used by this administrator in transferring a list of local host names, directly into the syslog file is "logger -f hostnames."

Read more on Linux commands here: https://brainly.com/question/25480553

#SPJ1


in which part of the scratch interface does a programmer combine code blocks to build the program?

a. sprite info pane
b. block palette
c. stage
d. scripts area

Answers

Answer:

D

Explanation:

The sprite info pane is for an overview over your sprites and their visibility, coordinates, etc.

The block palette is where you select blocks from.

The stage is where your figures move and do stuff.

The scripts area is where you combine blocks from the palette together.

What type of hacker is primarily motivated by an ideology, epitomizing "the ends justify the means" mentality?.

Answers

The type of hacker that is primarily moved by an ideology, epitomizing "the ends justify the means" mentality is Hacktivism.

What type of hackers are motivated by social or political issues?

Hacktivism is known to be an act of the wrong use a computer system or network for a socially or politically motivated  aim or reason.

The type of hacker that is primarily moved by an ideology, epitomizing "the ends justify the means" mentality is Hacktivism and they are called hacktivist.

Learn more about Hacktivism from

https://brainly.com/question/5483494

#SPJ1

Other Questions
Mark the statements that are true. A. An angle that measures /4 radians also measures 45. B. An angle that measures 180 also measures radians. C. An angle that measures 60 also measures /3 radians. D. An angle that measures /3 radians also measures 30. A winery has a vat with two pipes leading to it. The inlet pipe can fill the vat in 3 hours, while the outlet pipe can empty it in 10 hours. How long will it take to fill the vat if both pipes are left open? 4. Study the table below. Which feature(s) do the hummingbird and lion share?Limbs are arms, legs, and wings. Mammary glands are used for feeding offspring with milk.LungsLimbsHoovesMammary Glands Ahmed and Babar share 240g of sweets in the ration 7:3. Calculate the amount Ahmed receives 4. In what way might Antigone be considered a tragic hero? I'm struggling on finding a step-through for this question, can anyone help? (x+5)(2x+3)-3(x-2)(6x+5) 3) The following reaction produces chlorine molecules:Energy + HCl (g) + CINO3 (8) Cl (8) + HNO3 (8)a) Describe 4 ways you could increase the concentration of chlorine molecules.b) How would cooling shift the equilibrium of this reaction? a question using quien Question 5 of 5Select the correct answer from each drop-down menu.The area of this rectangle is 54 square inches. Create an equation to find the value of n.3(n-1)54 square inches n+2r tint = 0 Your teacher just bought a new aquarium that is a rectangular prism. If his/her aquarium has a length 48 inches, a width of 36 inches and a height of 30 inches, what is the aquariums volume? Zion company sells merchandise on credit to brc, inc. in the amount of $1,200. the entry to record this sale would include a: (check all that apply.) A southern slave owner who wanted no restrictions to slavery in the west would have most likely voted for which of the following candidates in the election of 1860?Select one:a.Stephen Douglasb.John C. Breckinridgec.Abraham Lincolnd.John Bell Solve-2x6x + 9.A. x > -3B. x < -5OC. x>-5D. x 17. select the correct answer what is the equation of the problem shown with its focus on this graph? Options are in photo! When a motherboard fails, you can select and buy a new board to replace it. Suppose the motherboard in your computer has failed and you want to buy a replacement and keep your repair costs to a minimum. Try to find a replacement motherboard on the web that can use the same case, power supply, processor, memory, and expansion cards as your current system. If you cannot find a good match, what other components might have to be replaced (for example, the processor or memory) what are the impact of the religion conflict in the pacific What does a bank do with people's money? (4 points) aBuys computers with it to help run the bank bStores it in small boxes until the individual requests it cLends it to other people and charges interest dGives it back right away and pays interest In the Galapagos Island finches, the variation in the beak shape correspond to which finch characteristic? 8. Ella wants to replace old bulbs of her home with new LED bulbs. She buys LED bulb that has inbuilt AC to DC converter of output 5V and 2.5A. a. If the LED is 75% efficient, what would be the power dissipated? b. Find the work done by the LED when it is connected to the power supply and left for 1hour 15 minutes. Find the solution to:y=0.5+1y=2x-2