1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nookie1986 [14]
3 years ago
12

Consider the following method.

Computers and Technology
1 answer:
Sergio [31]3 years ago
3 0

Answer:

int[] arr = {50, 40, 30, 20, 10};

System.out.println(getValue(arr, 1, 2));

Explanation:

I found the answer using somebody's quizlet.

You might be interested in
Wich is the correct process for selecting an entire row in a spreadsheet?
umka21 [38]
CTRL - (select sentence) - ALT

4 0
3 years ago
Design a kernel module that iterates through all task in the system using the for_each_process() macro. In particular, output th
aleksley [76]

Answer:

#include <linux/kernel.h>

#include <linux/module.h>

#include <linux/init.h>

#include <linux/sched/signal.h>

#include <linux/sched.h>

 

 

struct task_struct *task;        /*    Structure defined in sched.h for tasks/processes    */

struct task_struct *task_child;        /*    Structure needed to iterate through task children    */

struct list_head *list;            /*    Structure needed to iterate through the list in each task->children struct    */

 

int iterate_init(void)                    /*    Init Module    */

{

   printk(KERN_INFO "%s","LOADING MODULE\n");    /*    good practice to log when loading/removing modules    */

     

   for_each_process( task ){            /*    for_each_process() MACRO for iterating through each task in the os located in linux\sched\signal.h    */

       printk(KERN_INFO "\nPARENT PID: %d PROCESS: %s STATE: %ld",task->pid, task->comm, task->state);/*    log parent id/executable name/state    */

       list_for_each(list, &task->children){                        /*    list_for_each MACRO to iterate through task->children    */

 

           task_child = list_entry( list, struct task_struct, sibling );    /*    using list_entry to declare all vars in task_child struct    */

     

           printk(KERN_INFO "\nCHILD OF %s[%d] PID: %d PROCESS: %s STATE: %ld",task->comm, task->pid, /*    log child of and child pid/name/state    */

               task_child->pid, task_child->comm, task_child->state);

       }

       printk("-----------------------------------------------------");    /*for aesthetics*/

   }    

     

 

   return 0;

 

}                /*    End of Init Module    */

     

void cleanup_exit(void)        /*    Exit Module    */

{

 

 

   printk(KERN_INFO "%s","REMOVING MODULE\n");

 

}                /*    End of Exit Module    */

 

module_init(iterate_init);    /*    Load Module MACRO    */

module_exit(cleanup_exit);    /*    Remove Module MACRO    */

 

MODULE_LICENSE("GPL");

MODULE_DESCRIPTION("ITERAT

5 0
3 years ago
What kind of heat we feel from the sun
ivolga24 [154]

Is it solar heat? ultraviolet heat? UV?
6 0
4 years ago
Read 2 more answers
Select the correct answer.
Shtirlitz [24]

Answer:

The right answer is text. we just need to just mention the date inside the text, and also mention the cell number, where you want that to be printed. The formula is Text(B1, "MM-DD-YY").

The other mentioned are a detailed information, and contains a mixed blend of information. The table, chart, flowchart and the shapes contains different data type. However, text is a data type, and date can be converted into text date type through the above formula. Hence, we are converting the date data type to text data type.

Explanation:

The answer is self explanatory.

6 0
3 years ago
Which command would you use to have a workstation stop using an ip address?
Arada [10]
SSH and Telnet!!!! :)
7 0
3 years ago
Other questions:
  • A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve
    5·1 answer
  • A knowledge and skills test is a tool support managers use when selecting new employees; it measures an applicant's understandin
    13·1 answer
  • If you have a long title for a table and need it to span several cells, you can use A. Merge Cells. B. Split Cells. C. Insert Co
    5·1 answer
  • Which keywords identify a column that , if it contains a value, it must match data containded in another table?
    14·1 answer
  • Why should the ISO be adjusted when taking a picture of a child blowing out candles in a darkened room?
    10·1 answer
  • What does CRM stand for?
    10·1 answer
  • Under which menu option of a word processing program does a callout appear?
    7·2 answers
  • You must. place a child in a federally approved child restraint device. if the child is
    5·2 answers
  • What type of error occurred??
    10·1 answer
  • What do you call the processing of converting an image to binary?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!